是否可以超链接到外部 pdf 选择?

发布于 2024-10-09 08:16:18 字数 285 浏览 0 评论 0原文

我想创建对外部 PDF 文档中的文本选择或偏移量的超链接引用,就像定义了锚点一样。例如,http://lib.extern.org/doc1.pdf?page=3&paragraph=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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

墨离汐 2024-10-16 08:16:18

看来它适用于页码< /a>

编辑:还有 检查这个(它应该在第 8 页打开)

It appears it works for page numbers

EDIT: And also check this (it should open on page 8)

风吹雪碎 2024-10-16 08:16:18

插件的命令行参数没有标准。

但是,如果您每次都可以渲染一个新的 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...).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文