Skip to content

How to get the barcode size? #146

Closed Answered by terryburton
vadz asked this question in Questions and Answers
Discussion options

You must be logged in to vote

The simplest option is to determine the maximum size that you require, then to fix the size of all symbol to this:

(123) (columns=4 rows=20) /pdf417 /uk.co.terryburton.bwipp findresource exec

This has the benefit that BWIPP will opportunistically raise the error correction level as far as possible to make the most use of the available data capacity.

Otherwise, you can try a variation of the following to obtain the dimensions within PostScript:

https://github.com/bwipp/postscriptbarcode/blob/master/contrib/Examples/PostScript/dimensions/dimensions.ps

Other users perform an initial pass using the bbox driver, for example:

https://github.com/adamchainz/treepoem/blob/main/src/treepoem/__init…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vadz
Comment options

Answer selected by vadz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants