If I mark text in the pdf I generate using iText, copy it and paste it 
somewhere else, I just see a row of boxes, like this:

􀀞􀀽􀁄􀁎􀀽􀁅􀁊􀀉􀃛􀀟􀁖􀁁􀀿􀁄􀃛􀀮􀁁􀁌􀁑􀀾􀁈􀁅􀀿􀀉􀃛􀀡􀁃􀁕􀁌􀁐􀀉􀃛􀀣􀁁􀁎􀁉􀀽􀁊􀁕􀀉􀃛􀀣􀁄􀀽􀁊􀀽􀀉􀃛􀀥􀁊􀁀􀁅􀀽􀀉􀃛􀀦􀁋􀁎􀁀􀀽􀁊

I'm using a ttf font (CompatilFact LT RegularSC) and create it like this:

BaseFont.createFont("lightRegular.ttf", BaseFont.IDENTITY_H, BaseFont.EMBEDDED 
);

I'm not very experienced with fonts and encoding so I guess for some reason it 
uses a wrong encoding in the PDF? optically it looks fine (beside looking more 
bold than it should be) - but i can't copy paste.

I'm not encrypting the document.

What could be the reason for this and how to solve it?
-- 
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!                          
        
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to