I need help with the combining the pdf files.
 
I got the pdf files stored in dataabse as BLOBS.Iam reading those BLOBS as inputstreams and converting them to byte[] and putting them in a list.If it is one pdf ,iam able to view the pdf from the outputstream of the servlet response in the browser.If there are multiple pdfs,i want to combine them and show as one pdf file in the single servlet response.
 
 
I try to use the iText API for reading the byte[] in the pdfReader for concatenating them.Iam end up with an IO exception saying that Unknown Encryption type.Pleasee find the error as below and let me know if you could help me in this.
 

java.io.IOException: Unknown encryption type (4)

at com.lowagie.text.pdf.PdfReader.readDecryptedDocObj(Unknown Source)

at com.lowagie.text.pdf.PdfReader.readDocObj(Unknown Source)

at com.lowagie.text.pdf.PdfReader.readPdf(Unknown Source)

at com.lowagie.text.pdf.PdfReader.<init>(Unknown Source)

at com.lowagie.text.pdf.PdfReader.<init>(Unknown Source)

at com.dteco.bvs.RequestProcessor.concatPDFs(RequestProcessor.java:214)

at com.dteco.bvs.RequestProcessor.doPost(RequestProcessor.java:110

 
 
Thanks and Regards
Kiran Jallepalli
313-235-1054
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to