pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "harisgx ." <hari...@gmail.com>
Subject Unicode encoding for ContentStreamWriter
Date Fri, 26 Nov 2010 13:46:10 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message