Skip to content
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

ENH: Added command update-offsets to adjust offsets and lengths. #15

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

srogmann
Copy link

This command adjusts /Length-entries of stream objects and the xref-offsets
in simple PDF files (ASCII only, one xref section only) to support writing PDF
files by means of a text editor.

I replaced the camelCase-variables by snake-case variables.

This command adjusts /Length-entries of stream objects and the xref-offsets
in simple PDF files (ASCII only, one xref section only).
@srogmann
Copy link
Author

Two hours ago I edited a larger pdf-file created by

qpdf --stream-data=uncompress

I remembered this old PR and used update_offsets.py to fix the offsets. I added

len_stream = None

to fix a bug occuring if there are several streams.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant