Link to a PDF bookmark
Onra
-
denisgrugeon Posted messages 31 Status Member -
denisgrugeon Posted messages 31 Status Member -
Hello everyone,
I need to open a PDF document directly to a chapter on a web page.
This operation is easily done in HTML by placing an anchor and pointing as follows:
http://www.site.fr/page.html#chapitre1
I would like to do the same thing with a PDF file. Does anyone know if it's possible and how to do it?
I need to open a PDF document directly to a chapter on a web page.
This operation is easily done in HTML by placing an anchor and pointing as follows:
http://www.site.fr/page.html#chapitre1
I would like to do the same thing with a PDF file. Does anyone know if it's possible and how to do it?
8 answers
For a command line execution or from any programming language:
C:\PathToAcrobatReader\AcroRD32.exe /A "page=469=OpenActions" W:\PathToFile\File.pdf"
or
C:\PathToAcrobatReader\AcroRD32.exe /A "nameddest=BookmarkName=OpenActions" W:\PathToFile\File.pdf"
For execution via a WEB browser:
http:\URLPath\File.pdf#page=469
or
http:\URLPath\File.pdf#nameddest=BookmarkName
All the details are in http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf at Adobe.
However, does anyone know how to obtain the list of bookmarks present in a PDF document?
(this is to be able to address them without previously knowing a document)
Thank you.
C:\PathToAcrobatReader\AcroRD32.exe /A "page=469=OpenActions" W:\PathToFile\File.pdf"
or
C:\PathToAcrobatReader\AcroRD32.exe /A "nameddest=BookmarkName=OpenActions" W:\PathToFile\File.pdf"
For execution via a WEB browser:
http:\URLPath\File.pdf#page=469
or
http:\URLPath\File.pdf#nameddest=BookmarkName
All the details are in http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf at Adobe.
However, does anyone know how to obtain the list of bookmarks present in a PDF document?
(this is to be able to address them without previously knowing a document)
Thank you.
Hello,
I’m following up on the unanswered question... I have the same issue, I need to create links to PDF bookmarks and I can't find the correct syntax to point to those bookmarks anywhere.
Does anyone have the answer??
Thanks
I’m following up on the unanswered question... I have the same issue, I need to create links to PDF bookmarks and I can't find the correct syntax to point to those bookmarks anywhere.
Does anyone have the answer??
Thanks
Hello,
I have exactly the same problem, I can't find the procedure to create links to a PDF bookmark.
Does anyone know the technique?
Thank you
I have exactly the same problem, I can't find the procedure to create links to a PDF bookmark.
Does anyone know the technique?
Thank you
Hello,
Do you know how to print PDF bookmarks? (the table of contents structure of the file)
Thank you
Do you know how to print PDF bookmarks? (the table of contents structure of the file)
Thank you
Hello and Happy New Year!
Here is a way to print bookmarks in Adobe Acrobat 8:
1. Go to the website http://blogs.adobe.com/acrolaw/2007/10/list_pdf_bookmarks_with_a_free_s.html. Click on list bookmarks and copy the attached file from the document into C:\Documents and Settings\<username>\Application Data\Adobe\8.0\Sequences (I had to create it on my computer, it didn't exist)
2. Start Acrobat
3. Open the document from which you want to extract bookmarks
4. Click successively on: Advanced Options - Document Processing - Batch Processing - List All Bookmarks - Run - OK. A new temporary document Listing of Bookmarks.pdf (which you can save or print directly) is created. You can simply close it or minimize it to see your document again.
There are still two issues that should be solvable by someone who knows scripting:
1. the length of the bookmark is limited in Acrobat, and the bookmark is truncated after two lines and a few characters. But this shouldn't be an issue for most documents; hence: how to increase the number of characters in a bookmark?
2. if the bookmark starts with a number, that number is right-aligned. (But this problem can be avoided by replacing Arabic numbers with Roman numerals).
I hope this little note has helped you...
Here is a way to print bookmarks in Adobe Acrobat 8:
1. Go to the website http://blogs.adobe.com/acrolaw/2007/10/list_pdf_bookmarks_with_a_free_s.html. Click on list bookmarks and copy the attached file from the document into C:\Documents and Settings\<username>\Application Data\Adobe\8.0\Sequences (I had to create it on my computer, it didn't exist)
2. Start Acrobat
3. Open the document from which you want to extract bookmarks
4. Click successively on: Advanced Options - Document Processing - Batch Processing - List All Bookmarks - Run - OK. A new temporary document Listing of Bookmarks.pdf (which you can save or print directly) is created. You can simply close it or minimize it to see your document again.
There are still two issues that should be solvable by someone who knows scripting:
1. the length of the bookmark is limited in Acrobat, and the bookmark is truncated after two lines and a few characters. But this shouldn't be an issue for most documents; hence: how to increase the number of characters in a bookmark?
2. if the bookmark starts with a number, that number is right-aligned. (But this problem can be avoided by replacing Arabic numbers with Roman numerals).
I hope this little note has helped you...
Hello everyone,
as I see that some of you have already worked on the subject, I'm asking the question:
how to link to a bookmark?
For your information, the PDF file is generated by pdfmaker from a Word 2007 document.
The "Listing of bookmarks" script confirmed to me that the bookmarks exist...
I also tried to create Word bookmarks and export them but with no better results.
I'm stuck, yet some options work very well...
Thank you in advance for your help, and thanks to Adobe for its documentation...
as I see that some of you have already worked on the subject, I'm asking the question:
how to link to a bookmark?
For your information, the PDF file is generated by pdfmaker from a Word 2007 document.
The "Listing of bookmarks" script confirmed to me that the bookmarks exist...
I also tried to create Word bookmarks and export them but with no better results.
I'm stuck, yet some options work very well...
<a href="pdf.pdf#sign">contents</a>KO <a href="pdf.pdf#dest=sign">contents</a>KO <a href="pdf.pdf#nameddest=Glucans">contents</a>KO <a href="pdf.pdf#namedest=Glucans">contents</a>KO <a href="pdf.pdf#zoom=50&pagemode=bookmarks">zoom</a>OK <a href="pdf.pdf#page=3">page</a>OK
Thank you in advance for your help, and thanks to Adobe for its documentation...
Homer, I believe it is not possible to create an HTML link to a PDF bookmark, as surprising as that may seem.
The method suggested by Adobe is to create "Destinations" using Adobe Acrobat Pro for example (menu: view: navigation panels: destinations):
- you open your PDF
- you adjust the view as desired,
- you click on "Create a destination" in the "Destinations" panel
- you give it a name (without spaces or accents), for example "chapter2"
- you save your PDF and place it where you want.
All you have left is to create your HTML link: http://myPath/myFile.pdf#nameddest=chapter2
And there you go.
However, be careful, for a "destination" positioned at the bottom of the page, it doesn’t work: the next page displays!
The method suggested by Adobe is to create "Destinations" using Adobe Acrobat Pro for example (menu: view: navigation panels: destinations):
- you open your PDF
- you adjust the view as desired,
- you click on "Create a destination" in the "Destinations" panel
- you give it a name (without spaces or accents), for example "chapter2"
- you save your PDF and place it where you want.
All you have left is to create your HTML link: http://myPath/myFile.pdf#nameddest=chapter2
And there you go.
However, be careful, for a "destination" positioned at the bottom of the page, it doesn’t work: the next page displays!
Hello,
I tested with a PDF that already includes bookmarks, namely the one from Adobe, which specifically shows the manipulation to be done.
- My link: http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf#nameddest=Description : no result, neither in Chrome nor Firefox nor IE8. Did I miss something?
Thank you in advance!
PS: For your information, however, the link to a page is ok: http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf#page=4
I tested with a PDF that already includes bookmarks, namely the one from Adobe, which specifically shows the manipulation to be done.
- My link: http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf#nameddest=Description : no result, neither in Chrome nor Firefox nor IE8. Did I miss something?
Thank you in advance!
PS: For your information, however, the link to a page is ok: http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf#page=4