I am a CAD engineer and have written a utility from within a CAD environment (Cadence) to automatically produce a pdf file based on a design hierarchy. It includes hyperlinks to all of our design blocks based on what is contained on the current block. Since we don't have acrobat for linux, I do it the hard way by composing files on the fly and then pushing it all through ps2pdf:
[/Rect [llx lly urx ury] /Border [0 0 1 [3]] /SrcPg 6 /Color [1 0 0] /Dest [33 /Fit] /Subtype /Link /ANN pdfmark
However, the red [1 0 0] boxes around the design blocks is somewhat intrusive. How can I make the hyperlinks transparent and highlight only when the cursor is over a hyperlink?
Another cool feature would be to have text or a balloon appear over the link to tell us where the link takes us.
Any ideas? Remember, acrobat is not an option, only free linux utilities.
Rick
[/Rect [310 1 360 12] /SrcPg 5 /Border [0 0 1] /Color [1 0 0] ) /Dest [1 /Fit] /Subtype /Link /ANN pdfmark
I had tried using the /Contents and /DA commands on the same line as the previous line, but the contents never displayed. As a result, I had to add the following line simply to give me a label.
[/Rect [310 1 360 12] /SrcPg 5 /Contents ( TOP) /Border [0 0 0] /Color [0 0 0] /F 4 /DA(/Helv 10 Tf 1 0 0 rg) /Subtype /FreeText /ANN pdfmark
The /DA command lets you specify the font name, font size and rgb description of the contents color.
Unfortunately, the /Dest /Prev or /Page /Prev command does not work to return to the previous view. Still looking for a solution ....