My PDFs are getting errors when being opened in Adobe Acrobat. Am I doing something wrong when adding images? #983
Replies: 4 comments
-
|
It seems like an issue with adobe acrobat. The way you add the images seems fine. Can you try a newer version of adobe? |
Beta Was this translation helpful? Give feedback.
-
|
Could you also try with a different image? Maybe yours is broken somehow and becomes unreadable after resizing/compressing. Many web browsers may still accept and display such an image. |
Beta Was this translation helpful? Give feedback.
-
|
The same thing occurred for the vast majority of the images I was using when creating documents. A few of them did load successfully in other documents, which leads me towards the broken image theory. Unfortunately, I cannot use different images since they are tied to specific records in the PDF. Does QuestPDF have any methods to reduce the PDF size after creation, like how Adobe has their "Save as Optimized PDF" option? Saving the PDF with that option drastically reduces the PDF file size while leaving the images intact. |
Beta Was this translation helpful? Give feedback.
-
|
Hello, We are closing this thread due to inactivity. We apologize for the delayed response. Since the original message, we have applied several improvements to the image handling logic, and we have not received similar bug reports. It is likely that this has already been resolved in a more recent version. Should you encounter any further problems, please don't hesitate to open a new issue. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been creating PDF files that contain several hundred PNG files.
When I create the document, it opens without issue in any web browser, but when I open it in Adobe Acrobat 2020, I get the following error and Adobe does not draw the images.
However, if I use the UseOriginalImage() option with my image adding code, Adobe can handle the images without issue.
Is this a known issue with Adobe, or am I doing something wrong when adding the images?
This is the code snippet that adds images to the PDF document.
And this is the NoteBlock element I use for creating the cells:
I have made no changes to the DocumentMetadata or DocumentSettings
Beta Was this translation helpful? Give feedback.
All reactions