Hi,

 

I am using concat_pdf.java to merge two pdfs. But after creating 128 merged pdfs I get error like this:

 

java.lang.ArrayIndexOutOfBoundsException: 32

        at com.lowagie.text.pdf.PdfEncryption.encryptRC4(PdfEncryption.java(Comp

iled Code))

        at com.lowagie.text.pdf.PdfEncryption.encryptRC4(PdfEncryption.java(Comp

iled Code))

        at com.lowagie.text.pdf.PdfEncryption.computeOwnerKey(PdfEncryption.java

:137)

        at com.lowagie.text.pdf.PdfEncryption.setupByOwnerPad(PdfEncryption.java

(Inlined Compiled Code))

        at com.lowagie.text.pdf.PdfEncryption.setupByOwnerPassword(PdfEncryption

.java(Inlined Compiled Code))

        at com.lowagie.text.pdf.PdfReader.readDecryptedDocObj(PdfReader.java(Com

piled Code))

        at com.lowagie.text.pdf.PdfReader.readPdf(PdfReader.java:371)

        at com.lowagie.text.pdf.PdfReader.<init>(PdfReader.java:131)

        at com.lowagie.text.pdf.PdfReader.<init>(PdfReader.java(Inlined Compiled

 Code))

        at com.lowagie.tools.concat_pdf.main(concat_pdf.java(Compiled Code))

 

 

I am calling concat_pdf in static method concatPdfWithAPI() like this:

 

      public static void concatPdfWithAPI(String pdf1,String pdf2,String resultPdf)

      {

            String args[] = new String[]{pdf1,pdf2,resultPdf};

            concat_pdf.main(args);

      }

 

Is it a bug or my error in coding program?

Please help me.

Thanks a lot.

 

Mustafa Kemal IŞIKLAR

Telefon : 8111800 x 4020

ESC Software Company

 

Reply via email to