Closed musman920 closed 1 year ago
Interesting. I can open those files just fine. Can you confirm that you can open it e.g. with the Google chrome PDF viewer?
thank you for the response. it is opening in browser and xpdf viewer. Only problem is opening in adobe acrobat reader. Our organization has multiple computers and we have to deal with pdf alot. The standard is Adobe Acrobat Reader and It should be open in Acrobat Reader. it says "An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem.". What could be the issue here?
I have no idea.
A first thing to check is if the PDFs are actually non-standard compliant. will do that after work.
Which version of Adobe Acrobat Reader do you use? (If it's not the latest, please upgrade + check again)
It could also be a bug in Acorbat Reader
That would be greate if you can check. I have the latest acrobat reader and tested on multiple systems. The result is the same error on all systems. This is the sample generated pdf with test data.
I have the latest acrobat reader and tested on multiple systems.
Which version do you have?
adobe Acrobat Reader Version 2022.003.20281
Checked for updates again, it states it is already updated.
gruße
VeraPDF fails, but 3heights doesn't.
That means the PDF is not fully standard compliant, but not so badly broken that it should matter.
Which means that I don't know how to continue
The problem is the excessive intrinsic precision addressed in #1376, I guess.
this indeed fixes the issue :) Cheers ! Just need to modify pypdf/generic/_base.py#L353 return f"{self:f}".rstrip("0") -> return f"{self:.19f}".rstrip("0") Now acrobat reader can open the transformed file.
I am trying to create a blank page. rotate and merge 1 pdf file on that page and append another page. The functionality seems to work but after creating the new pdf file It does not open in adobe Acrobat reader. It gives the error ''
Environment
Mac on intel chip python 3.10 pypdf 3.2.0
Code + PDF
This is a minimal, complete example that shows the issue from your answer of stackoverflow: (My code also includes Transformation)
Traceback
This is the complete Traceback I see when opening with acrobat reader dhl.pdf foo.pdf :
An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem.