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

Added validation for overflowing margins #63

Closed
wants to merge 5 commits into from
Closed

Conversation

lairg99
Copy link

@lairg99 lairg99 commented Jan 30, 2024

This PR adds validation to prevent overflowing margins. Format and units are also validated.

I'm still thinking about using enum for format and unit in the PdfBuilder.

@lairg99 lairg99 changed the title Added validation Added validation for overflowing margins Jan 30, 2024
@lairg99
Copy link
Author

lairg99 commented Feb 18, 2024

Did some refactorings - what do you think? I would add some tests later.

@freekmurze
Copy link
Member

To keep the package simple, I'm going to pass on this. I think the vast majority of users will not use margins that are too large.

Thanks for your work on this!

@freekmurze freekmurze closed this Feb 20, 2024
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