I have to two byte Array. I want to write them to one pdf file. But the pdf displays only the second byte array content , i know its writing both because i concatenated the byte Arrays and written it as one byte array to the OutputStream.
my code is as follows <code> serverData = remoteServiceObject.doRemoteRequestProcess(clientRequest); System.out.println("server data in tbq reports is" + serverData); byte pdfReportByteArr = (byte) (serverData.get(0)); byte pdfReportByteArrDetailed = (byte) (serverData.get(1));
Does each array contain a complete PDF file? There's more to concatenating PDF pages into a document than appending their respective bytes. The iText library comes with a tool that can concatenate individual PDF files, and which can be used programmatically.
By the way, UBB code tags use square brackets, not angle brackets. [ January 12, 2008: Message edited by: Ulf Dittmer ]
Joined: Sep 23, 2004
Yes each array contains a complete PDF file. How could i append them as a file without appending the bytes.
Please give some details.
Regards, Vivek Raju.
Joined: Mar 22, 2005
iText's com.lowagie.tools.concat_pdf class can do this. Have a look at the source code or the javadocs for more information about it.