I need to link a PDF file with some external non PDF files. The external files
are saved in a location that is fixed relative to the PDF file - if the PDF
file is saved in c:\pdf, then the external files must be saved under
c:\pdf\docs. I need to use relative path to reference these files.
Here is the code I used to set up the link:
chunk=new Chunk(text, link_font);
PdfAction action=new PdfAction("dm.xpt", null, "open", ".\\docs");
chunk.setAction(action);
and here is the link in the PDF file
127 0 obj<</Border[0 0 0]/Rect[669.16 447.6 729.14 457.6]/Subtype/Link/C[0 0
1]/A<</S/Launch/Win<</D(.\\docs)/F(dm.xpt)/O(open)>>>>>>
endobj
But the link does not work SOMETIMES. When click on the link, sometimes it can
find the file, but sometimes it cant't (I verified that the file is there). I
use Acrobat 7.0 to view the PDF files. It works if viewed in Windows XP
(personal computer), but doesnt work in Windows 2000 (corporate network).
I am using iText version: 2.1.3, JRE 5.0
Any thought would be appreciated.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php