If I have a multi-page PDF file with one figure on each page, I can use the \includegraphics[page=123]{foo} command to refer to individual figures (see this question).
However, if I have lots of figures, it gets difficult to try to keep track of the page numbers. (For example, I use OmniGraffle to prepare my illustrations and export everything as one multi-page PDF file; if I re-organise the figures in OmniGraffle, I have to manually fix all page numbers in the Latex code.)
Could I somehow use PDF bookmarks instead of page numbers in \includegraphics?
\includegraphics[bookmark=bar]{foo}instead of\includegraphics[page=2]{foo}. This is certainly doable by invoking an external program from Latex, but I was wondering if there is a more direct approach. – Jukka Suomela Sep 24 '11 at 07:41pdftexorluatexcan access these bookmarks. You need this kind of lower level support, otherwise you won't have a chance on the higher level. – Martin Scharrer Sep 24 '11 at 07:48pdftexat least does not have access to the bookmarks. I don't know aboutluatex. – Lev Bishop Sep 25 '11 at 01:30