Hello,

I am currently working with PDFBox 2.0.14 and I am trying to create GoToE links 
for document attachments. For this I created a test PDF file with one PDF 
attachment in Adobe Acrobat XI.
The link is a PDAnnotationLink with an PDActionEmbeddedGoTo action. The 
filename of the target directory recieves the name extracted from the 
EmbeddedFiles name dictionary. After
adding the name,  action and rectangle to the annotation, I save the result 
document and open it with Adobe Acrobat Reader DC.

The problem I have is that the GoToE link is not opening the attachment. After 
looking at the file in a text editor, it seems as if the file name in the names 
dictionary uses a different encoding,
UTF-16-BE, than the file name in the target directory, ISO 8859-1. If I 
manually convert file name to UTF-16 before adding it to the target directory 
it works just fine. However, if I do not know
the encoding of the names in the names dictionary, I cannot generate  the 
correct name for the target directory.

Is there a way to determine which encoding the names dictionary uses or are 
there other workarounds to this? I tried to set the file specification oft he 
attachment to the action but that did not
work out for me.

Attached are the input and output files.


Regards,

Dahit Güclü


________________________________________________________________________
PROSTEP AG, Dolivostraße 11, D-64293 Darmstadt
HR: Amtsgericht Darmstadt, HRB 8383
Vorstand: Dr. Bernd Pätzold (Vorsitz), Reinhard Betz
Dr. Karsten Theis
Aufsichtsrat: Dr. Heinz-Gerd Lehnhoff (Vorsitz)
________________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to