You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by "harisgx ." <ha...@gmail.com> on 2010/11/26 14:46:10 UTC

Unicode encoding for ContentStreamWriter

Hi,

The input pdf document is modified and to be written.... I am not sure about
assuring the encoding for pdf output.


                PDStream updatedStream = new PDStream(pdfDoc);//pdfDoc is
modified
                OutputStream out = updatedStream.createOutputStream();

                ContentStreamWriter tokenWriter = new
ContentStreamWriter(out);
                tokenWriter.writeTokens( tokens );//modified tokens
                page.setContents( updatedStream );


How to make the outputstream with UTF encoding?


thanks
Haris