"The document is not open" exception when using ConcatenateEForms activity to merge multiple PDF's.

Hi Pega Community,

I’m facing “java.lang.RuntimeException: The document is not open.” exception when using ConcatenateEForms activity to merge multiple PDF’s. The concatenation fails when this exception occurs. Have attached the complete exception in attachments for reference.

Can someone please explain the root cause of this exception and what is the fix.

Thank you in advance and looking forward to resolve this issue.

Thanks,

Yours Sincerely,

Mohammed Adil Saleem

The document is not open exception.txt (9.88 KB)

@AdilSaleem

Got the solution from Pega by raising an Incident: INC-236619

Solution description: Provided local Java change that uses PDFBox instead of iText to handle PDF content

Thanks

Adil

@AdilSaleem Hello could you give more information on the solution. We’re facing the same issue.

@Giuseppe Hello, sorry for late reply,

Sorry, I cannot share the java code here.
Please check with the Pega Support team and ask them to provide the fix which has Java code which uses iText instead of PDFBox for ConcatenateEForms activity.
You can also refer the incident number INC-236619 to them for providing the solution.

Thanks,

Adil