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

Use pdfrw instead of editing PDF files directly #516

Merged
merged 13 commits into from
Oct 5, 2017
Merged

Use pdfrw instead of editing PDF files directly #516

merged 13 commits into from
Oct 5, 2017

Conversation

liZe
Copy link
Member

@liZe liZe commented Oct 4, 2017

This pull request removes what was a beautiful hack, but it's probably better done in an external library.

It also adds support of bleed boxes.

liZe and others added 13 commits September 4, 2017 17:27
Cleans code and fixes Python 2 support.
Added support to work with bleed like padding (bleed-top/right/bottom…
We have to compare various PDF objects to compare PDF files as pdfrw doesn't
produce the same PDF files from the same input. That's caused by Python's
unordered dicts. Comparing pdf bytes thus works with Python 3.6+ where dicts
are ordered.
Even if it's not officially documented, dicts are ordered in Python 3.6. We
relied on this to assert that PDF generation was reproducible, it works on some
versions of Python 3.6 but not on Travis for some reason.
@liZe liZe merged commit 0fcf413 into master Oct 5, 2017
@liZe liZe deleted the pdfrw branch October 5, 2017 09:18
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.

2 participants