Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Corrupted PDF

mariyadass44485
Level 1
Level 1

Hi,

We designed some of the PDF's in AEM forms 6.3 using Designer.

We are using some UI data to pull it in forms by calling service when we click on button in UI.

It is showing the error "There was an error opening this document. The file is damaged and could not be repaired."

when im adding some extra data and generating the document.

Can someone tell me where is the issue and some solution ?

Regards,

Mariyadas

9666631396

3 Replies
MatthewLaun
Employee
Employee

Mariyadas,

If the error is true, it can be extremely difficult to find problems in the PDF syntax and find them. If you can figure out that nature of what's wrong, we might be able to see what led to that. Can the PDF be opened in Acrobat? There are some fixup tools in Acrobat's Print Productions > Preflight tool that can sometimes restore consistency. Tell more about the life cycle of the PDF?

Regards,

Mattkew

Mayank_Gandhi
Community Advisor
Community Advisor

Adding to what Matt mentioned above here is how you can check via preflight:

Analyzing documents with the Preflight tool (Adobe Acrobat Pro)

Correcting problem areas with the Preflight tool (Acrobat Pro)

By any chance are you transferring the pdf over the network?

kjaeggin
Employee
Employee

is there any chance you can upload the sample pdf with sample data which reproduces the error? I might be able to tell why.