Skip to content

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

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