All this talk is nonsense. The PDF output is binary, it has nothing to do 
with Unicode. A Writer gets a String or a char as input and outputs the 
Unicode byte representation according to the charset selected. If we have 
binary to start with where are you going to get the String from? I don't 
even understand what you are trying to "fix" or what are the "encoding 
traps" mentioned in your post.

Paulo

----- Original Message ----- 
From: "Felipe Gaúcho" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Post all your questions about iText here" 
<[email protected]>
Sent: Monday, August 06, 2007 1:01 PM
Subject: Re: [iText-questions] charset problems


> Ok, I will blog about that because now I am in working time :( but for 
> short:
>
> if possible, and only if possible - and I have no time now for
> checking the side-effect in the current code:
>
> include a new constructor in the PdfStamper, that receives a
> java.io.Writer instead of an output stream.
>
> Just that, and of course, the underneath code should be adapted to use
> it instead of the stream. In case of receiving an output stream, the
> stamper creates an internal Writer, using the default machine
> encoding. The old constructor would be deprecated or at least an alert
> about encoding problems can be included in the javadoc :)
>
> Or not, I really don't know the effort required to change it and also
> if it make sense in the iText project.
>
> Meanwhile, I will publish a blog remembering the java community about
> the encoding traps, and giving an easy solution for legacy code that
> don't give the proper encoding support.
>
> It is not a critic, really, I guess iText a fantastic library and I am
> planning to publish a lot about its powerful features, but after 15
> years of software engineering, some old topics just jump in my eyes :)


-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to