-
Notifications
You must be signed in to change notification settings - Fork 309
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
Width text height #281
Comments
To generate a barcode without text stretching, set the scale to achieve the desired width. Then adjust the height, For your example, you could start with scale=3 and height=15. |
@metafloor so to get a perfect barcode i need to generate it twice? |
So for the complete ratio: I have a simple place in the pdf and here should be the barcode with the maximum size in the available space. I found the method raw which gets some data. But can I pass the raw to the render function? |
Are you only generating ISBN barcodes? Because they are fixed format. Or are you looking for a generic solution for different barcode types? |
@metafloor I will not only use ISBNs but all sorts of things. Therefore, I am already looking for a general solution that works for all barcodes. |
@metafloor i think there is only the double generation for this or? |
Sorry, lost track of this issue. Yes, you will need to double generate. It is the same as with using BWIPP in a postscript environment. |
@metafloor no problem :) thanks for the answer |
Hi, ich found your lib :) and its awesome. If i understand correctly i can set the maxheight and width with widht and height and it generates the biggest barcode possible in this size. This is awesome!
But I have some issues with text. It looks very strechy.
Can i somehow make the text auto resize in the height? So it looks more normal?
I try to create a barcode with max 200mm width and max 100mm height and render it to a pdf.
The text was updated successfully, but these errors were encountered: