pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: Attachment not always visible
Date Sat, 03 Feb 2018 13:39:30 GMT
Hi,

Please make two additions below this code

             fs.setFile(attachment.getTitleWithExtension());
             fs.setEmbeddedFile(ef);

add this:

fs.setFileUnicode(attachment.getTitleWithExtension());
             fs.setEmbeddedFileUnicode(ef);

Please give feedback whether that helped. If it does, I'll update the 
example. According to the PDF specification the two /UF entries are 
optional but strongly recommended.

Tilman

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Mime
View raw message