Use the encoding "Cp1252". Paulo
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Josh Adams > Sent: Wednesday, July 12, 2006 5:31 PM > To: [email protected] > Subject: Re: [iText-questions] Merging XFDF and PDF files > with Unicodesupport > > Thanks! That seems to have solved the problem with getting > the correct > characters to display. > > I have one other question, though, that's pretty closely > related. We're > wanting to use a font called RequiemTextHTFItalic, but it's a > .PFM font and > not a .TTF. When I try to use the following line to define it > > BaseFont bfRequiem = > BaseFont.createFont("C:\\WINDOWS\\Fonts\\REQUITIT.PFM", > BaseFont.IDENTITY_H, BaseFont.EMBEDDED); > > I get a runtime exception and it complains about IDENTIY-H > and IDENTITY-V > being an unsupported encoding. Is there another way I can > define this font > in order to be able to use it? Or am I going to have to use > true-type > fonts? > > > -Josh > > > > > > >From: "Paulo Soares" <[EMAIL PROTECTED]> > >Reply-To: Post all your questions about iText here > ><[email protected]> > >To: "Post all your questions about iText here" > ><[email protected]> > >Subject: Re: [iText-questions] Merging XFDF and PDF files with > >Unicodesupport > >Date: Wed, 12 Jul 2006 17:11:11 +0100 > > > >You see the Chinese characters because Acrobat 7 is finding > them in your > >machine in some font and does the courtesy of showing them. > If you try > >it with Acrobat 6 you'll see nothing. You can get around > this in iText > >with a substitution font. Call AcroFields.addSubstitutionFont() with > >some font with lots of characters like arialuni.ttf. You can call it > >several times with different fonts if no single font has all the > >required characters and it will look for the right > character. Arabic and > >Hebrew will also be rendered correctly. > > > >Paulo > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] On > > > Behalf Of Josh Adams > > > Sent: Wednesday, July 12, 2006 4:12 PM > > > To: [email protected] > > > Subject: Re: [iText-questions] Merging XFDF and PDF files > > > with Unicodesupport > > > > > > Sorry, try www.neromir.net/PDFDir/certFront.xfdf and > > > www.neromir.net/PDFDir/certFrontTextFields.pdf respectively. > > > Apparently > > > there's a setting on my server here that's not showing the > > > directory listing > > > for that directory... > > > > > > -Josh Adams > > > > > > > > > > > > > > > > > > >From: "Paulo Soares" <[EMAIL PROTECTED]> > > > >Reply-To: Post all your questions about iText here > > > ><[email protected]> > > > >To: "Post all your questions about iText here" > > > ><[email protected]> > > > >Subject: Re: [iText-questions] Merging XFDF and PDF files with > > > >Unicodesupport > > > >Date: Wed, 12 Jul 2006 16:08:31 +0100 > > > > > > > >That URL gives me a page not found. > > > > > > > >Paulo > > > > > > > > > -----Original Message----- > > > > > From: [EMAIL PROTECTED] > > > > > [mailto:[EMAIL PROTECTED] On > > > > > Behalf Of Josh Adams > > > > > Sent: Wednesday, July 12, 2006 3:59 PM > > > > > To: [email protected] > > > > > Subject: Re: [iText-questions] Merging XFDF and PDF files > > > > > with Unicodesupport > > > > > > > > > > I posted the pdf and the xfdf file at www.neromir.net/PDFDir. > > > > > The files are > > > > > certFront.xfdf and certFrontTextFields.pdf. > > > > > > > > > > -Josh Adams > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >From: "Paulo Soares" <[EMAIL PROTECTED]> > > > > > >Reply-To: Post all your questions about iText here > > > > > ><[email protected]> > > > > > >To: "Post all your questions about iText here" > > > > > ><[email protected]> > > > > > >Subject: Re: [iText-questions] Merging XFDF and PDF > files with > > > > > >Unicodesupport > > > > > >Date: Wed, 12 Jul 2006 09:52:18 +0100 > > > > > > > > > > > >Show us the xpdf and the pdf. > > > > > > > > > > > >Paulo > > > > > > > > > > > >----- Original Message ----- > > > > > >From: "Josh Adams" <[EMAIL PROTECTED]> > > > > > >To: <[email protected]> > > > > > >Sent: Wednesday, July 12, 2006 6:18 AM > > > > > >Subject: [iText-questions] Merging XFDF and PDF files with > > > > > Unicode support > > > > > > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > I'm new to iText. I have a PHP script running on my > > > webserver to > > > > > >generate > > > > > > > XFDF files from our database every night. The XFDFs are > > > > > then used to > > > > > > > populate the form fields of a template PDF with the > > > > > specific information > > > > > > > so > > > > > > > we can print them. I want to be able to use iText to > > > > > merge the PDF and > > > > > > > XFDF > > > > > > > files into a single PDF file and flatten the form so that > > > > > the people > > > > > > > handling the printing don't have to work with the > > > complication of > > > > > >dealing > > > > > > > with the template file as well. > > > > > > > > > > > > > > I have a merging Java program which takes the available > > > > > XFDFs and merges > > > > > > > them with the template. > > > > > > > I've gotten the merge to work with simple latin-based > > > > > characters, but > > > > > >the > > > > > > > merging program needs to be able to handle unicode and > > > > > Japanese/Chinese > > > > > > > characters as well. Is there any way to set the form > > > > > fields to display > > > > > > > unicode after the merge is complete? They work fine > > > > > before the merge > > > > > >just > > > > > > > by opening the XFDF file. > > > > > > > > > > > > > > I appreciate any help, > > > > > > > > > > > > > > Josh Adams Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem. Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message.
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
