-none- 2007-08-24 - By Bruno Lowagie (iText)
Back dreamboy wrote: > If I get the baos.toByteArray() here, I will only get the last page coz > there multiple instance of baos.
Have you read the code you copy/pasted? If so, then it should be evident that the complete file is written to HelloWorldStampCopy.pdf and that the baos only contains a file with a single page. If you want the complete file in a ByteArrayOutputStream, you'll have to create another baos:
ByteArrayOutputStream myBaos = new ByteArrayOutputStream(); and then replace "new FileOutputStream("HelloWorldStampCopy.pdf")" with "myBaos". You'll get the complete file as byte[] like this: myBaos.toByteArray().
This is a non-issue, really. 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/
|
|