简体   繁体   English

如何使用URL和go到PDF书签页

[英]how to use URL and go to PDF bookmark page

For example, the pdf( https://datasheets.raspberrypi.com/rpi4/raspberry-pi-4-datasheet.pdf ) has many bookmark.例如,pdf( https://datasheets.raspberrypi.com/rpi4/raspberry-pi-4-datasheet.pdf ) 有很多书签。

I'd like to go to the specific page with a URL. The #page=10 can be used, but it is not accurate.我想用URL go 到具体的页面。 #page=10 可以用,但是不准确。

Is it possible to go to the bookmark page with a URL?是否可以用URL go 到书签页?

Thanks a lot非常感谢

There is no guarantee that any viewer will support bookmarks nor where they will open a page, since often it is the same as the page number so try but expect page 6 OR 7 depending on viewers page number interpretation.不能保证任何查看者都支持书签,也不能保证他们将在何处打开页面,因为它通常与页码相同,因此请尝试,但根据查看者对页码的解释,请期待第 6 或 7 页。

https://datasheets.raspberrypi.com/rpi4/raspberry-pi-4-datasheet.pdf#nameddest=interfaces https://datasheets.raspberrypi.com/rpi4/raspberry-pi-4-datasheet.pdf#nameddest=interfaces

However some viewers may on occasion do better if using other methods such as comment number or two commands combined such as scroll to.但是,如果使用其他方法(例如评论编号)或组合使用两个命令(例如滚动到),某些观众有时可能会做得更好。

The sample you nominated above does not seem to respond to named destinations as well as other pdfs can, but does at least open that interfaces page.您在上面指定的示例似乎不像其他 pdf 那样响应指定的目的地,但至少会打开该界面页面。 so trying a more complex所以尝试更复杂的

https://datasheets.raspberrypi.com/rpi4/raspberry-pi-4-datasheet.pdf#nameddest=Electrical%20Specification https://datasheets.raspberrypi.com/rpi4/raspberry-pi-4-datasheet.pdf#nameddest=Electrical%20Specification

It seems not to work in my Edge that's just page 1) which is why the advice is keep PDF bookmark corners a single unique word, never write them as War and (another) Piece.它似乎在我的 Edge 中不起作用,它只是第 1 页),这就是为什么建议将 PDF 书签角保留一个唯一的单词,永远不要将它们写成 War 和(另一个) Piece。 Pages are the most likely to work well, but not like a ToC in the frontispiece, unless you can fully control the viewers input/response.页面最有可能运作良好,但不像卷首插画中的目录,除非您可以完全控制观众的输入/响应。

Also beware还要小心

PDF view settings PDF 查看设置

Search result match: Open PDFs to last viewed location when you reopen files搜索结果匹配:当您重新打开文件时,将 PDF 打开到上次查看的位置

Since by default that was on during my testing, my result was often skewed.由于在我的测试期间默认情况下它是打开的,所以我的结果经常出现偏差。 Edge and Safari are usually the worst for applying URL Bookmarks, if at all. Edge 和 Safari 通常最不适合应用 URL 书签,如果有的话。

However an offline viewer such as the one I support will usually allow driving from bookmark to bookmark via a program (here using the Win11 Cmd line for proof of ability, but can be via DDE etc.)然而,我支持的离线查看器通常允许通过程序从一个书签驱动到另一个书签(这里使用 Win11 Cmd 行来证明能力,但可以通过 DDE 等) 在此处输入图像描述

You enquired can the internal links be used as named destinations like the TOC unfortunately the full list of destinations is as set in this list.您询问是否可以将内部链接用作命名目的地,如 TOC 不幸的是,完整的目的地列表已在此列表中设置。

Introduction; goto:{6; XYZ; 12; 72.000; 733.890}
Features; goto:{7; XYZ; 12; 72.000; 733.890}
    Hardware; goto:{7; XYZ; 12; 72.000; 711.439}
    Interfaces; goto:{7; XYZ; 12; 72.000; 543.295}
    Software; goto:{8; XYZ; 12; 72.000; 733.890}
Mechanical Specification; goto:{8; XYZ; 12; 72.000; 553.757}
... continues below
3 extras ADDED BY ME MANUALLY
Figure 1\: Mechanical Dimensions; goto:{8; XYZ; 12; 0.000; 481.852}
Table 2\: Absolute Maximum Ratings; goto:{9; XYZ; 12; 0.000; 789.684}
Table 3\: DC Characteristics; goto:{9; XYZ; 12; 0.000; 465.650}
... continued from above
Electrical Specification; goto:{8; XYZ; 12; 72.000; 196.355}
    Power Requirements; goto:{10; XYZ; 12; 72.000; 733.890}
Peripherals; goto:{10; XYZ; 12; 72.000; 662.151}
    GPIO Interface; goto:{10; XYZ; 12; 72.000; 625.595}
        GPIO Pin Assignments; goto:{10; XYZ; 12; 72.000; 548.239}
        GPIO Alternate Functions; goto:{11; XYZ; 12; 72.000; 733.890}
        Display Parallel Interface (DPI); goto:{12; XYZ; 12; 72.000; 733.890}
        SD/SDIO Interface; goto:{12; XYZ; 12; 72.000; 663.378}
    Camera and Display Interfaces; goto:{12; XYZ; 12; 72.000; 585.863}
    USB; goto:{12; XYZ; 12; 72.000; 494.400}
    HDMI; goto:{12; XYZ; 12; 72.000; 416.487}
    Audio and Composite (TV Out); goto:{12; XYZ; 12; 72.000; 338.574}
    Temperature Range and Thermals; goto:{12; XYZ; 12; 72.000; 240.336}
Availability; goto:{13; XYZ; 12; 72.000; 733.890}
Support; goto:{13; XYZ; 12; 72.000; 671.773}

To convert the TOC to destinations is an editor function, rarely found, also you may see from my manual additions, I did not set the area well thus they need manual correction of those settings.将 TOC 转换为目的地是一个编辑器 function,很少找到,您也可以从我的手动添加中看到,我没有很好地设置区域因此他们需要手动更正这些设置。 Adding bookmarks for tables or figures is chiefly a GUI task.为表格或图形添加书签主要是一项 GUI 任务。

I have listed all available bookmarks and shown the 3 extras I attempted for ToC entries whilst exporting, however they are not URL accessible until saved as outline entries, the best method using an external go to list is '#page=X #zoom=##% and #fit=something see https://pdfobject.com/pdf/pdf_open_parameters_acro8.pdf but they are not supported/available in all viewers (so I support SumatraPDF that uses command line -page # -zoom ### -scroll <x,y>我已经列出了所有可用的书签,并显示了我在导出时为 ToC 条目尝试的 3 个额外内容,但是在保存为大纲条目之前,它们无法访问 URL,使用外部 go 列出的最佳方法是 '#page=X #zoom=# #% 和 #fit=something 请参阅https://pdfobject.com/pdf/pdf_open_parameters_acro8.pdf但并非所有查看器都支持/提供它们(因此我支持使用command line -page # -zoom ### -scroll <x,y>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM