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

