Skip to content

Conversation

@jcharman
Copy link
Contributor

Firstly, thanks for the great library 😄. I've been using it to generate PDFs of labels to be printed from a thermal label printer and as such needed to support some unusual paper sizes.

This PR adds the ability to specify a paper size in millimeters as a list [width, height] whilst retaining the existing functionality to use predefined paper sizes.

@vb64 vb64 changed the base branch from main to paper_size September 24, 2025 05:37
@vb64 vb64 merged commit 24c27df into vb64:paper_size Sep 24, 2025
2 of 38 checks passed
@vb64
Copy link
Owner

vb64 commented Sep 24, 2025

Thank you a lot for your contribution.

I've made a few changes to the code.

If you have no suggestions, I will publish a new release.

@jcharman
Copy link
Contributor Author

Thank you a lot for your contribution.

I've made a few changes to the code.

If you have no suggestions, I will publish a new release.

Those changes look good to me 😄

vb64 added a commit that referenced this pull request Sep 24, 2025
* Implement custom paper sizes (#73)

* fix operand

* paper_size as tuple

* mm to py constant

* fix doc

* Move paper size code to Section class

* cosmetic

* add tests

---------

Co-authored-by: Jake Charman <[email protected]>
@vb64
Copy link
Owner

vb64 commented Sep 24, 2025

Those changes look good to me 😄

Implemented in version 1.10

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