是否可以超链接到外部 pdf 选择?
我想创建对外部 PDF 文档中的文本选择或偏移量的超链接引用,就像定义了锚点一样。例如,http://lib.extern.org/doc1.pdf?page=3¶graph=4
,以便当用户点击浏览器中的链接时,PDF 文档将在偏移位置打开指定的。我正在寻找任何粒度,例如页面、段落、行、单词、字符甚至像素em或英寸偏移量都是可以接受的。如果可以指定一个选择范围,那将是理想的,目的是突出显示并直接链接到外部 PDF 文档中的引用(应用程序对其具有只读访问权限)。似乎很基本,但我还没有找到一个解决方案。有想法吗?
I'd like to create hyperlink references to a text selection or offset in an external PDF document, as if there were an anchor defined. E.g., http://lib.extern.org/doc1.pdf?page=3¶graph=4
so that when the user follows the link in their browser, the PDF document opens positioned at the offset specified. I'm looking for any granularity, e.g. page, paragraph, line, word, character or even pixel em or inch offset would be acceptable. If a range for a selection could be specified that would be ideal, the purpose being to highlight and link directly to quotes in external PDF docs (to which the app has read-only access.) Seems so basic, but I haven't found a solution. Ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看来它适用于页码< /a>
编辑:还有 检查这个(它应该在第 8 页打开)
It appears it works for page numbers
EDIT: And also check this (it should open on page 8)
插件的命令行参数没有标准。
但是,如果您每次都可以渲染一个新的 PDF(通过某些 PDF 操作 API 制作副本并放入新对象),则可以包含一个跳转到相关页面的 OpenAction。您甚至可以设置更多查看器参数(或进行一些其他个性化、水印等......)。
There are no standards for commandline parameters for the plugins.
But if you can render a fresh PDF each time (make a copy and put in a new object via some PDF manipulation API), you can include an OpenAction that jumps to the page in question. You can even set more viewer parameters (or do some other personalization, watermarks, whatever...).