I would like to use a \pdfbookmark
like command to reference a page within a PDF document (included with the \includepdf
command) and further to bring the user to a specific location (say 2.34 inches from the top) on that page.
Is there a command like \mypdfbookmark
so that when you PDFLaTeX a document with the lines
\mypdfbookmark[2]{page 3 location 2.3in}{Test}
\includepdf[pages={-},link,linkname=Test,linkfit=FitH]{Test.pdf}
When you click on the pdfbookmark in Adode it takes you to page 3 at location 2.3 inches from the top of the document Test
?
I know that I could import the pages of the pdf individually, but this doesn't solve the problem of displaying a specific location on that page. I would love to be able to reference the page and the location in one command, but could work with individual pages if I had too.
Best Answer
I know egreg will shoot at me ;-)
I played a little bit and you can use the following package
placebookmarks
. The package defines only one command with some options. The command is\mypdfbookmark
with the following syntax:The options are:
level
-- sets the level of\pdfbookmark
; default=1page
-- sets the page which will get a bookmark; default=0x-location
-- sets the x coordinate; default=0.5\paperwidthy-location
-- sets the x coordinate; default=0.5\paperheightdraw-circle
-- draw a red filled circle to see the current positionI used the following example to text the package:
Here the package: