The setX is not taken into effect with createAwtImage image, the width always
stays the same.
The method getBarcodeSize() gives the correct width.
This was noted before, it looks like it is still in the latest 5.1.3 library,
http://itext-general.2136553.n4.nabble.com/Problem-with-Barcode128-and-bar-widths-td2169079.html
Paolo, Bruno can you confirm/ check this?
Regards,
Peter
From: peet...@hotmail.com
To: itext-questions@lists.sourceforge.net
Date: Tue, 10 Jan 2012 11:54:58 +0100
Subject: [iText-questions] BarcodeInter25, createAwtImage image units?
Hi,
I'm using itextpdf-5.1.3 to draw my Interleaved 2 of 5 barcode in Graphics2d
java.
I set the setX (narrow module width calculated from the available width and
printer dpi) and set setN widefactor (3).
I use tenth mm as units. When getting the getBarcodeSize(), I get the correct
width and height in mm.
However when I create an image with createAwtImage, the width of the image is
not the same as the calculated barcode width?
Should there be some conversion?
I can draw the image by drawImage but I'm afraid that the scaling breaks the
barcode image.
Kind regards,
Peter van Raamsdonk
------------------------------------------------------------------------------
Write once. Port to many. Get the SDK and tools to simplify cross-platform app
development. Create new or port existing apps to sell to consumers worldwide.
Explore the Intel AppUpSM program developer opportunity.
appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev
_______________________________________________ iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a
registered trademark of 1T3XT BVBA. Many questions posted to this list can (and
will) be answered with a reference to the iText book:
http://www.itextpdf.com/book/ Please check the keywords list before you ask for
examples: http://itextpdf.com/themes/keywords.php
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php