Hello,
I’d like to create a link on each pair page of several PDF documents. The links, when performed, should normally open other pages in other PDF documents.
For the moment, I can create the link with the following script but
1. it links to a page of the same document
2. it’s a black bound
I don’t know how to link to a page of an other PDF document (I of course know the number of the target page : it’s actually the same number as the source page - Source and target documents have the same number of pages. If it works, I’ll create also the “return” link.
I’d like the link be “invisible”
So, after having chosen a folder
(…)
tell application "Acrobatª 4.0"
activate
open file (whichPath & pdfFileName)
set nbPages to count PDPage of document pdfFileName
execute menu item 7 of menu 6
repeat with p from 1 to ((nbPages - 2) / 2)
set currentpage to (2 * p)
goto page currentpage
tell PDPage currentpage
make new PDLinkAnnot
set bounds of last PDAnnot to {0, 72, 72, 0}
set color of last PDAnnot to {0, 0, 0}
set destination page number of last PDAnnot to 1
end tell
end repeat
save document pdfFileName
close document pdfFileName
end tell
Line “set destination page number of last PDAnnot to 1” : how to specify that the destination page is not in the document but in another ?
I assume that the target page must be displayed and I have to “bring to front” it.
I have the same problem with Acrobat 5 and the “Link Annotation”
Concerning the color, what is the code {R, G, B} to have a invisible link ?
Thank you in advance for your advice
Model: Mac G4 and G3
Browser: Internet Explorer 6.0
Operating System: Mac OS 9.2.x