-
Notifications
You must be signed in to change notification settings - Fork 39
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
Example for printing the labels on A4 paper size (Can be used for any other paper size) #20
base: master
Are you sure you want to change the base?
Conversation
@veghp to review. |
Hi thanks, yes I received notification about it. While the examples are about usage of the software functionalities, I agree perhaps there should be one on formatting the output. There were questions before about the borders etc. The append code block is probably better done in a loop (a1f458d#diff-26fc4154a85945e2b6be9754927923f321edfd5501040f7b6fb3c3e916353a61R7). Could you please run a spellcheck on all committed text and fix the typos? Then I can merge it after trying out the code. Thanks for the contribution |
Hi @veghp. Implemented the code in a loop and also fixed the typos. |
Thanks for the effort. I merged to |
Thank you for posting this solution. It is nearly exactly what I am looking for. I have one question. Is there a way to add a margin around the page? I tried changing the page css attribute to
but the margin was still missing from the final pdf. Thank you! |
I have a regular printer and I have acquired sticker labels on the A4 paper ( something like this )
So I used this library to create the PDF for this type of paper and I think that this could be useful for other people as well. In this pull request I have only created the example for the A4 paper, but inside the Readme there is description on how to use this example to generatethe PDF for any paper size (A4,A3,A2 etc.)