Skip to main content
Participant
May 8, 2019
Question

Links to chapters in PDF

  • May 8, 2019
  • 1 reply
  • 3433 views

Hi,

https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf has some explanation for opening a PDF file with parameters. On page 8, there are some examples for URLs. The first one is:

http://example.org/doc.pdf#Chapter6 (so to make one thing clear, before anybody complains that there are no Chapters in pdf, this is in a public document by adobe, I'm just referring to their choice of words).

And this works like a charm, at least in Chrome. The link https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf#Parameters opens the same document, but on page 5, where the chapter named "Parameters" is located as of now.

Now I have two questions:

1. How would I link to chapter "Who should read this guide?"

So far I have tried clanks in the URL, underscores, double quotation marks and square brackets, but to no avail.

2. If there are multiple chapters with the same name (e.g. "Conclusion" at the end of every larger section), how would I address these?

Thanks

Ole

    This topic has been closed for replies.

    1 reply

    try67
    Community Expert
    Community Expert
    May 8, 2019

    That should not have worked. You can't link to bookmarks (what you call "Chapters"). Only to pages, named destinations or specific views.

    Maybe Chrome's viewer does allow that, but it's not a part of the official open parameters API.

    jolusAuthor
    Participant
    May 8, 2019

    try67  wrote

    Maybe Chrome's viewer does allow that, but it's not a part of the official open parameters API.

    Unless it is part of the official "Parameters for Opening PDF Files​" found on Acrobat DC SDK Documentation​. On page 8, it says:

    URL examples

    http://example.org/doc.pdf#Chapter6

    (This changed somewhen between Version 7.0.5 and Version 8.1. In 7.0.5, it read "http://example.org/doc.pdf#nameddest=Chapter6".)

    It might well be that you are right after all, in which case somebody at Adobe should correct the documentation.

    try67
    Community Expert
    Community Expert
    May 8, 2019

    I think that if you don't specify the parameter name it defaults to "nameddest".