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

Support changing page size on a per-page basis #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

daemondazz
Copy link
Contributor

Adds support for being able to specify the page size in the pageTemplate tag to allow a different page size/orientation per page.

@daemondazz daemondazz closed this Aug 22, 2022
@daemondazz daemondazz reopened this Aug 22, 2022
@tieugene tieugene requested review from tieugene and removed request for tieugene August 22, 2022 11:46
@tieugene
Copy link
Collaborator

Testing samples required

@@ -103,6 +103,12 @@ def __init__(self, out, node, doc):
self.doc = doc
pts = node.getElementsByTagName('pageTemplate')
for pt in pts:
if not pt.hasAttribute('pageSize'):
pageSize = (utils.unit_get('21cm'), utils.unit_get('29.7cm'))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This overwrites [default] <templates pageSize="...")>

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