On Wednesday, 17 July 2013, Achim Gratz wrote:
>
> Is there a possibility to add bookmark navigation to files produced from
> pdfcairo? My reading is that cairo _might_ allow to inject that data
> into the PDF output, but I have no idea how to do that from Gnuplot.
There is a cairo function to attach arbitrary "user data" to a surface
(which is what cairo calls the thing you are in the process of drawing).
However cairo doesn't do anything with this data, and attaching it
while drawing does not change the output file in any way that I can
see. So I think the answer is "no".
> I'd really like to replace our current solution, which consists of
> piping the data from Gnuplot into GhostScript and merging it with the
> bookmarks definition with pdfcairo since it is many times faster, but
> these PDF routinely get several hundred pages long and not having
> bookmarks to navigate the final document isn't really an option. I'm
> also open to suggestions that involve postprocessing the PDF produced by
> Gnuplot; the tools I've tried so far (based on pdflatex) are too slow to
> really make it worthwhile however.
I don't understand that description. Are you saying that your pdf output
from gnuplot consists of several hundred plots and you want each one to
have an associated "bookmark" (anchor?). Or are you saying that you
want to embed one or more gnuplot-generated plots into a hundred
page text document? Something else?
The sequence gnuplot->postscript output->ps2pdf should produce
a pdf document containing a PDFMark. But that's one mark per file,
not one mark per plot. Does that help any?
Ethan
>
> Regards,
> Achim.
>
|