Subject: Re: Characters with accents aren 't showing up using pdfstamper 2007-11-02 - By Nick Snels
Back Hi Bruno,
thanks for the reply. The characters show up when I type them in manually in the PDF.
I'm not using Java to write to the pdf, but I'm using a Ruby Java bridge to do that. My Ruby files are saved in an UTF-8 (See http://UTF-8.ora-code.com) encoding and the data coming from the database is also UTF-8 (See http://UTF-8.ora-code.com). When I look at the fonts embedded in the PDF, their encoding says ASCII. So probably the problem lays there. But I don't know how to change the encoding of the PDF? If that is what I have to change off course.
Hope this sheds some more light on the problem. Thanks.
Kind regards,
Nick
On Nov 2, 2007 10:57 AM, Bruno Lowagie <bruno@(protected)> wrote: > Nick80 wrote: > > Hi, > > > > I'm trying to change an existing pdf document using iText. I have added a > > text field to the original pdf document and I can fill it with text. However > > characters like ?, ?, ?, ?, ... aren't showing up. What do I need to change > > in order for them to show up? > > Do they show up if you fill out the form in the PDF manually? > > If no: > the font that is defined for the form field doesn't have > those characters. Can you create the form field defining > another font for the content? > > If yes: > are you sure your JAVA code uses the right encoding? > I've seen the same problem where special chars were > hardcoded in a Java file saved in one encoding, but > then compiled using a compiler that expected another encoding. > The same can happen with databases: a field can be stored > in one encoding, then read in the assumption that the String > is encoded using another encoding. > > There might be other reasons, but these are the most > obvious I can think of for the moment. > br, > Bruno > > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > __ ____ ____ ____ ____ ____ ____ ____ ____ ____ > iText-questions mailing list > iText-questions@(protected) > https://lists.sourceforge.net/lists/listinfo/itext-questions > Buy the iText book: http://itext.ugent.be/itext-in-action/ >
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ __ ____ ____ ____ ____ ____ ____ ____ ____ ____ iText-questions mailing list iText-questions@(protected) https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
|
|