How to change PDF417 Module Width?

433 views
Skip to first unread message

Rajendar

unread,
Jul 27, 2012, 3:24:46 AM7/27/12
to zx...@googlegroups.com
Hi,
 
As per requirement I want to change the generating pdf417 barcode module width is 28.5 mils.I searched within zxing code but couldn't get any idea where to change to within zxing pdf417Encoder part to generate the barcode with the mentioned module width?
 
Another query is even I changed the Aspect Ratio = 3 within PDF417Writer.java file , barcode is being generated with 352 Widh and 96 Height size, not exactly like 300W:100H.To generate the barcode I have given following inputs to get 3:1 aspect ratio
 
MinRows = MaxRows = 6
MinCols = MaxCols = 12
Width = 300
Height = 100
Compaction Mode = "Text"
 
Please give me some idea where to change the code to get changed module width?

Rajendar

unread,
Jul 27, 2012, 3:50:15 AM7/27/12
to zx...@googlegroups.com
I found the constant within PDF417.java If I change this one will get reflect?
 
PDF417.java
===========
Line 510 : private static final float DEFAULT_MODULE_WIDTH = 0.357f; //1px in mm
Reply all
Reply to author
Forward
0 new messages