-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility with pypdf 5 #8
Comments
Thank you for the report. Unfortunately, it does not happen on my machine. Please check your version of pypdf: |
Looks like your code need to update to support latest pypdf. I am using pypdf 5.1.0
|
Should be working now with 6e37bb4. |
Thanks. I found it work now. But there is another problem. The PDF file I used to replace text have size of 14,308,334 bytes. After replaced the text, I found the file size growth to 18,296,859 bytes which is about 28% increase in file size. |
For editing the text, the tool needs to uncompress the data streams. I guess, they are not automatically compressed when writing the output file. You may try running the output through qpdf. qpdf's option compress-streams is enabled by default. This compression method is lossless. |
I got this error when I execute:
python pypdf_strreplace.py --input pdfs/Inkscape.pdf
error.txt
The text was updated successfully, but these errors were encountered: