ArrayOutOfBoundException with drawToWeb Method

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Generator for Java (v4)  /  ArrayOutOfBoundException with drawToWeb Method

DynamicPDF Generator for Java (v4) Forum

Hi,
I am using Cete Dynamic PDF 4.0.3. I am able to generate the PDF using the Cete library and am able to open it on my local machine. but when I tries to send the same PDF as a response to an HTTP Request, I get the following error:

java.lang.ArrayIndexOutOfBoundsException: 4096
        at com.cete.dynamicpdf.io.linearization.b.writeText(Unknown Source)
        at com.cete.dynamicpdf.merger.nb.draw(Unknown Source)
        at com.cete.dynamicpdf.merger.r.a(Unknown Source)
        at com.cete.dynamicpdf.merger.gb.drawEntries(Unknown Source)
        at com.cete.dynamicpdf.merger.gb.draw(Unknown Source)
        at com.cete.dynamicpdf.merger.r.a(Unknown Source)
        at com.cete.dynamicpdf.merger.gb.drawEntries(Unknown Source)
        at com.cete.dynamicpdf.merger.gb.draw(Unknown Source)
        at com.cete.dynamicpdf.merger.r.a(Unknown Source)
        at com.cete.dynamicpdf.merger.gb.drawEntries(Unknown Source)
        at com.cete.dynamicpdf.merger.AppendedPage.drawEntries(Unknown Source)
        at com.cete.dynamicpdf.Page.draw(Unknown Source)
        at com.cete.dynamicpdf.io.linearization.b.f(Unknown Source)
        at com.cete.dynamicpdf.io.linearization.b.draw(Unknown Source)
        at com.cete.dynamicpdf.Document.a(Unknown Source)
        at com.cete.dynamicpdf.Document.drawToWeb(Unknown Source)


i cant share the original PDF because it contains Personal Information Details, but the size of the file is 9.52MB.

Please find the code below:
---------------------------------------
lStream = pResponse.getOutputStream();
pResponse.setContentType("application/pdf");
HighSecurity sec = new HighSecurity();
if (lDocument == null)
{
        lDocument = text2pdf
                        .getDocumentFromAString("Failed to retrieve documents for Document key = "
                                        + lSecurityKey + ". See log for details.");
}

lDocument.setSecurity(sec);
lDocument.drawToWeb(pRequest, pResponse, lStream, MergedPDFs.pdf");
lStream.flush();
lStream.close();
Posted by a ceTe Software moderator
Hello,

Can you please send over the below details to our support team at: support@cete.com so that they can look into it further?

1. Are you getting this error with specific PDF document or for all PDF documents?
2. Version of the Adobe Reader installed in your system.
3. Version and name of the browser installed in your system.

If the error is being thrown against some specific PDF document then our support team may need the input PDF document or a similar PDF using which they can recreate the error. This will help them to find the exact cause for the error.

Thanks,
ceTe Software Support Team.
We are getting this error with 4 PDf documents each of size 9.52MB. We get this error on all the browser including IE v6.0, Firefox v4. We cant share the PDF because of the security agreement with our client. the Adobe acrobat reader version varies from v8 - v10 on different systems trying to access it over the web.

A separate mail has been send to cete support group.

All times are US Eastern Standard time. The time now is 12:53 PM.