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

Adding a .Pages attribute in PdfWriter to allow setting its MediaBox or Resources fields #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Lucas-C
Copy link

@Lucas-C Lucas-C commented Apr 1, 2021

This allows for the following usage:

out = PdfWriter()
out.Pages = IndirectPdfDict(
    MediaBox=...,
    Resources=...,
)
out.addpage(page)
out.write(...)

This is a copy of pmaupin#205

@pep8speaks
Copy link

pep8speaks commented Apr 1, 2021

Hello @Lucas-C! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 112:80: E501 line too long (97 > 79 characters)

Line 94:80: E501 line too long (97 > 79 characters)

Comment last updated at 2021-04-01 13:36:59 UTC

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