I have special PDF files here did not succeed in opening #661
a1-ops
started this conversation in
Ask for help with specific PDFs
Replies: 1 comment 2 replies
-
Thanks for your kind words about this library, @a1-ops. Looking at the error traceback, the issue seems to caused by some invalid aspect of the PDF's fonts. Specifically, the PDF processing is failing on this line of If you repair the PDF with Ghostscript, the error should disappear. Does that work for you? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, author, first of all I would like to thank you, because my job requires me to deal with PDF from time to time, and it is your work that drives me to complete one project after another. But recently, a new project has caused me more trouble than ever.
This is a new PDF file, by double-clicking to open what is obviously a very common file, but can not be opened by your work, will produce the following error.
struct.error: unpack requires a buffer of 6 bytes
Here is the code I ran.
And this error will occur on the last line。
I opened the PDF file can almost be counted by ten thousand, but this error is really the first time and I can not do anything about it. So I would like to ask the author to try to open this file, and if you can open it, you can give the corresponding code and environment.
thanks.
Originally I just wanted to upload the original report and end it, but given that there is a lot of sensitive personal information mixed in the report, I have tried to make reductions here. Then the weirdest thing happened, that is, the redacted PDF file can be successfully opened, I do not know what happened, so I intend to upload the original report and the redacted report, I hope the author can find the answer, but also because of the sensitivity of the report also hope that the author does not over-distribute, thanks again.
The following is the original document.
pdf.pdf
The following files are redacted
fix_pdf.pdf
Beta Was this translation helpful? Give feedback.
All reactions