Khaled, If Andreas says the new version should work better with fonts, I'm sure he's right. He's done a lot of work in that area.
If you want a recent version precompiled, I've got one at http://www.blacklocustsoftware.com/PDFBox_Binaries.php It won't be up to date tomorrow, but today it is :) Daniel 2009/5/4 Andreas Lehmkühler <[email protected]> > > The development version (0.8.0) has far better font support. I believe > you > > will need to download the source code & compile it, but I think it will > do > > what you want. > I'd suggest the same. > > > If one of the other developers knows where a build is available, please > > correct me! > There is no newer precompiled version of pdfbox available yet, but we are > working on it... > > Andreas Lehmkühler > > > Daniel Wilson > > > > On Mon, May 4, 2009 at 7:29 AM, Khaled Daifallah > > <[email protected]>wrote: > > > > > Dear Sir, > > > > > > I'm using Apache PDFBox0.7.3 library in order to fill out text-fields > of > > a > > > PDF form . > > > Some of the filled values are in Arabic, so the problem that when i > open > > > the > > > PDF form after filling by Adobe Reader 9 or Adobe Acrobat 9 pro, i get > > > question marks (???) instead of the Arabic letters. > > > > > > now i'll go into details. > > > 1- I created the PDF form using Adobe LifeCycle Designer. > > > 2- The problem only appears with Arabic letters (no problem with > English > > > letters). > > > 3- the font which is used for the fields is Arial so i tried to embed > > both > > > Arial and Arial Blod as: > > > > > > PDDocument doc = PDDocument.load(formPath); > > > PDTrueTypeFont.loadTTF( doc,new File(path_of_the_ttf_file) ); > > > PDDocumentCatalog docCatalog = doc.getDocumentCatalog(); > > > PDAcroForm acroForm = docCatalog.getAcroForm(); > > > ........... *Filling the fields with the values here ..........* > > > acroForm.setXFA( null ); > > > doc.save(destPath); > > > doc.close(); > > > > > > But this didn't work (i still get question marks for the Arabic > > > letters). > > > > > > > > > 4- When i fill the text-fields of the PDF form manually (by Adobe > Acrobat > > 9 > > > pro) i get no problem. > > > > > > 5- i tried to edit the file "PDFBox_External_Fonts.properties" as well, > > and > > > i copied the fonts to the path "Resources/ttf". but i still get > question > > > marks. > > > > > > i've working on this problem for more than 10 days, and i'm stucked > now. > > > and you are my final salvation. PLEASE HELP ME IF YOU CAN. > > > > > > > > > Thanks for your concern > > > KHALED DAIFALLAH. > > > > > > > > > > > > > > > > > > > > > > > > -- > > > The Captin 121 > > > KHALED > > > > > > > --- original Nachricht Ende ---- > >
