是否可以使用URL参数链接到PDF中的书签?

是否可以使用URL参数链接到PDF中的书签?,url,pdf,hyperlink,bookmarks,Url,Pdf,Hyperlink,Bookmarks,当在网站上提供指向PDF文件的链接时,是否可以在URL请求参数中包含信息,这将使PDF浏览器插件在使用时跳转到特定书签,而不只是在开始时打开 比如: 如果不是书签,是否可以转到特定页面 我假设如果有答案,它可能是特定于Adobe的PDF reader插件或其他东西,并且可能有版本限制,但我最感兴趣的是该技术是否存在。是,您可以通过数字或命名位置链接到特定页面,如果用户的浏览器使用Adobe Reader作为查看PDF文件的插件,这将始终有效 对于按编号显示的特定页面: <a href="h

当在网站上提供指向PDF文件的链接时,是否可以在URL请求参数中包含信息,这将使PDF浏览器插件在使用时跳转到特定书签,而不只是在开始时打开

比如:

如果不是书签,是否可以转到特定页面


我假设如果有答案,它可能是特定于Adobe的PDF reader插件或其他东西,并且可能有版本限制,但我最感兴趣的是该技术是否存在。

是,您可以通过数字或命名位置链接到特定页面,如果用户的浏览器使用Adobe Reader作为查看PDF文件的插件,这将始终有效

对于按编号显示的特定页面:

<a href="http://www.domain.com/file.pdf#page=3">Link text</a>
对于命名位置目标:

<a href="http://www.domain.com/file.pdf#nameddest=TOC">Link text</a>
要使用Acrobat在PDF中创建目的地,请执行以下操作:

在PDF中手动导航到所需位置 转到查看>导航选项卡>目的地 在选项下,选择扫描文档 完成后,从“选项”菜单中选择“新建目的地”,并输入适当的名称 指定可与PDF文件(包括NamedTest和page)一起使用的片段标识符。

记录可使用的可用URL片段。

值得添加的内容也适用于:

自v。14从2011年起,有关在v。87和v。44, Firefox在v。84.0.1和v。40, 歌剧在v。73和v。31, Safari在v。14.0.2,它在v上不起作用。8.
更新为2021年1月的当前版本。

可以处理多个查询参数。 完整列表如下:


重要提示:指定的目的地不是书签。您可以使用AdobeAcrobatFull而不是reader添加命名目的地!以及它的导航面板目的地。我不知道如何直接链接到书签。没有文档化的url参数。我知道这是一个老问题。但我想知道,在.net代码中构建pdf时,是否有人知道如何将命名目的地添加到pdf中。我们正在使用组件DynamicPDF在.net中创建pdf:s。动态pdf不支持添加命名目标。它不适用于相对引用,例如somedir/my.pdfpage=3,以及通过另存为从my.docx创建的pdf XChange查看器。。MS Office Professional Plus 2010/14.0.7116.5000的pdf似乎一个简单的锚定标记适用于书签,至少适用于chrome v57。所以像文本这样的链接适用于chrome v57或更高版本,我想你有关于IE如何处理pdf深度链接的任何信息吗?没有,我的机器上没有IE来测试它,抱歉@TeeJaay。很高兴你找到了这方面的完整文档,@Matas。但是没有新的文件吗?这一个大约有10年了…@GregDubicki嗨Greg,我不认为会有新的,如果他们会发布像pdfx这样的新型pdf,可能会有一个。。。我想这取决于处理url的机制在哪里。。。。
+-------------------------+----------------------------------------------------------------------------------------------+------------------------------------------------------+
| Syntax                  | Description                                                                                  | Example                                              |
+-------------------------+----------------------------------------------------------------------------------------------+------------------------------------------------------+
| nameddest=destination   | Specifies a named destination in the PDF document                                            | http://example.org/doc.pdf#Chapter6                  |
+-------------------------+----------------------------------------------------------------------------------------------+------------------------------------------------------+
| page=pagenum            | Specifies a numbered page in the document, using an integer                                  | http://example.org/doc.pdf#page=3                    |
|                         | value. The document’s first page has a pagenum value of 1.                                   |                                                      |
+-------------------------+----------------------------------------------------------------------------------------------+------------------------------------------------------+
| comment=commentID       | Specifies a comment on a given page in the PDF document. Use                                 | #page=1&comment=452fde0e-fd22-457c-84aa-             |
|                         | the page command before this command.                                                        | 2cf5bed5a349                                         |
+-------------------------+----------------------------------------------------------------------------------------------+------------------------------------------------------+
| collab=setting          | Sets the comment repository to be used to supply and store                                   | #collab=DAVFDF@http://review_server/Collab           |
|                         | comments for the document. This overrides the default comment                                | /user1                                               |
|                         | server for the review or the default preference. The setting is of the                       |                                                      |
|                         | form store_type@location, where valid values for store_type are:                             |                                                      |
|                         | ● DAVFDF (WebDAV)                                                                            |                                                      |
|                         | ● FSFDF (Network folder)                                                                     |                                                      |
|                         | ● DB (ADBC)                                                                                  |                                                      |
+-------------------------+----------------------------------------------------------------------------------------------+------------------------------------------------------+
| zoom=scale              | Sets the zoom and scroll factors, using float or integer values. For                         | http://example.org/doc.pdf#page=3&zoom=200,250,100   |
| zoom=scale,left,top     | example, a scale value of 100 indicates a zoom value of 100%.                                |                                                      |
|                         | Scroll values left and top are in a coordinate system where 0,0                              |                                                      |
|                         | represents the top left corner of the visible page, regardless of                            |                                                      |
|                         | document rotation                                                                            |                                                      |
+-------------------------+----------------------------------------------------------------------------------------------+------------------------------------------------------+
| view=Fit                | Set the view of the displayed page, using the keyword values                                 | http://example.org/doc.pdf#page=72&view=fitH,100     |
| view=FitH               | defined in the PDF language specification. For more information,                             |                                                      |
| view=FitH,top           | see the PDF Reference.                                                                       |                                                      |
| view=FitV               | Scroll values left and top are floats or integers in a coordinate                            |                                                      |
| view=FitV,left          | system where 0,0 represents the top left corner of the visible                               |                                                      |
| view=FitB               | page, regardless of document rotation.                                                       |                                                      |
| view=FitBH              | Use the page command before this command.                                                    |                                                      |
| view=FitBH,top          |                                                                                              |                                                      |
| view=FitBV              |                                                                                              |                                                      |
| view=FitBV,left         |                                                                                              |                                                      |
+-------------------------+----------------------------------------------------------------------------------------------+------------------------------------------------------+
| viewrect=left,top,wd,ht | Sets the view rectangle using float or integer values in a                                   |                                                      |
|                         | coordinate system where 0,0 represents the top left corner of the                            |                                                      |
|                         | visible page, regardless of document rotation.                                               |                                                      |
|                         | Use the page command before this command.                                                    |                                                      |
+-------------------------+----------------------------------------------------------------------------------------------+------------------------------------------------------+
| pagemode=bookmarks      | Displays bookmarks or thumbnails.                                                            | http://example.org/doc.pdf#pagemode=bookmarks&page=2 |
| pagemode=thumbs         |                                                                                              |                                                      |
| pagemode=none           |                                                                                              |                                                      |
+-------------------------+----------------------------------------------------------------------------------------------+------------------------------------------------------+
| scrollbar=1|0           | Turns scrollbars on or off                                                                   |                                                      |
+-------------------------+----------------------------------------------------------------------------------------------+------------------------------------------------------+
| search=wordList         | Opens the Search panel and performs a search for any of thewords in the specified word list. | #search="word1 word2"                                |
|                         | The first matching word ishighlighted in the document.                                       |                                                      |
|                         | The words must be enclosed in quotation marks and separated byspaces.                        |                                                      |
|                         | You can search only for single words. You cannot search for a string of words.               |                                                      |
+-------------------------+----------------------------------------------------------------------------------------------+------------------------------------------------------+
| toolbar=1|0             | Turns the toolbar on or off.                                                                 |                                                      |
+-------------------------+----------------------------------------------------------------------------------------------+------------------------------------------------------+
| statusbar=1|0           | Turns the status bar on or off.                                                              |                                                      |
+-------------------------+----------------------------------------------------------------------------------------------+------------------------------------------------------+
| messages=1|0            | Turns the document message bar on or off.                                                    |                                                      |
+-------------------------+----------------------------------------------------------------------------------------------+------------------------------------------------------+
| navpanes=1|0            | Turns the navigation panes and tabs on or off.                                               |                                                      |
+-------------------------+----------------------------------------------------------------------------------------------+------------------------------------------------------+
| highlight=lt,rt,top,btm | Highlights a specified rectangle on the displayed page. Use the                              |                                                      |
|                         | page command before this command.                                                            |                                                      |
|                         | The rectangle values are integers in a coordinate system where                               |                                                      |
|                         | 0,0 represents the top left corner of the visible page, regardless of                        |                                                      |
|                         | document rotation                                                                            |                                                      |
+-------------------------+----------------------------------------------------------------------------------------------+------------------------------------------------------+
| fdf=URL                 | Specifies an FDF file to populate form fields in the PDF file beingopened.                   | #fdf=http://example.org/doc.fdf                      |
|                         | Note: The fdf parameter should be specified last in a URL.                                   |                                                      |
+-------------------------+----------------------------------------------------------------------------------------------+------------------------------------------------------+