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

Add Rotation Feature to PDF to ZPL Conversion #6

Merged
merged 2 commits into from
May 16, 2024

Conversation

Federaffo
Copy link
Contributor

This pull request introduces a new feature to ZebrafyPDF conversion process within our library. The feature allows users to rotate PDF pages by 0, 90, 180, or 270 degrees before converting them to ZPL format. This enhancement is aimed at providing greater flexibility in how PDF content is formatted and printed using Zebra label printers.

Changes:

Added a new parameter rotation to the ZebrafyPDF, which accepts the values 0, 90, 180, and 270 degrees. (Default 0)
Implemented rotation functionality within the PDF rendering process before converting it to ZPL.
Updated the function documentation to include the new rotation parameter.

Motivation:

This update addresses the need for more versatile PDF handling in environments where PDF orientation can affect the readability and usability of printed labels. By allowing the PDF to be rotated, users can optimize the layout of their labels to suit specific requirements without manually editing the PDF source.

Federaffo and others added 2 commits May 15, 2024 22:12
Add rotation option to ZebrafyImage.
Write tests to cover rotation with ZebrafyImage and ZebrafyPDF.
@miikanissi
Copy link
Owner

Thank you for the PR!

This is a very nice feature. I also added the rotation support for ZebrafyImage in addition to your ZebrafyPDF rotation feature and wrote additional tests.

@miikanissi miikanissi merged commit 06991d0 into miikanissi:master May 16, 2024
7 checks passed
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.

None yet

2 participants