|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
Barcode Image sizesI'm trying to create Barcode images using the Barcode.createAwtImage() method on the Barcode class. I try to test the resulting image against the same code created using the Barcodes.java example document. I want to be able to create the same barcode using createAwtImage() as would be produced by createImageWithBarcode(). The problem is that the barcode that is created is using createAwtImage() is a bit larger than the code created when it is run through the iText image creation. After some careful examination, it looks to be about 80% too big. I did some digging in the iText source code and found that the createAwtImage() does not apply the "x" factor (minimum bar width) of the barcodes. Is it supposed to work like this? I would think that this would produce a barcode that could not be properly read. Is this a known issue and how can I get around this. Here is the code for what I am trying to use:
Thanks Chris Dail
|
|
|
Re: Barcode Image sizesThe awt image must be scaled externaly to be useful. The x scaling is not
there because you can't have half pixels. ----- Original Message ----- From: "Chris Dail" <CDail@...> To: <itext-questions@...> Sent: Tuesday, October 25, 2005 9:34 PM Subject: [iText-questions] Barcode Image sizes > I'm trying to create Barcode images using the Barcode.createAwtImage() > method on the Barcode class. I try to test the resulting image against the > same code created using the Barcodes.java example document. I want to be > able to create the same barcode using createAwtImage() as would be produced > by createImageWithBarcode(). > > The problem is that the barcode that is created is using createAwtImage() is > a bit larger than the code created when it is run through the iText image > creation. After some careful examination, it looks to be about 80% too big. > > I did some digging in the iText source code and found that the > createAwtImage() does not apply the "x" factor (minimum bar width) of the > barcodes. Is it supposed to work like this? I would think that this would > produce a barcode that could not be properly read. Is this a known issue and > how can I get around this. > > Here is the code for what I am trying to use: > Barcode barcode = new Barcode(); > barcode.setBarHeight(Integer.parseInt(barHeight)); > barcode.setCode(code); > Image image = barcode.createAwtImage(Color.black, Color.white); > > Thanks > > Chris Dail > Whitehill Technologies, Inc. > ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ iText-questions mailing list iText-questions@... https://lists.sourceforge.net/lists/listinfo/itext-questions |
|
|
Re: Barcode Image sizesHello,
I want to generate barcode using iText. I have generated it successfully in PDF format. I am trying to develop Web Application. Now, I want to generate it in Doc as well as in HTML format for preview purpose. Can you please give me any hint. If you know any web link where I can discuss such topic please reply me. If possible Please provide me solution. Thanks in advance. Samir -- This message was sent on behalf of samirbukkawar@... at openSubscriber.com http://www.opensubscriber.com/message/itext-questions@.../2421870.html ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ iText-questions mailing list iText-questions@... https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ |
|
|
Re: Barcode Image sizessamirbukkawar@... wrote:
> Hello, > > I want to generate barcode using iText. > > I have generated it successfully in PDF format. > > I am trying to develop Web Application. > > Now, I want to generate it in Doc as well as in HTML format for preview purpose. Use the method that creates the barcode as an AWT image. Create an image file using AWT. Use that image file in your HTML/RTF file. br, Bruno ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ iText-questions mailing list iText-questions@... https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ |
|
|
Re: Barcode Image sizesThank you Bruno,
Thanks for your valuable suggestion. I have tried your suggestions but not able to preview barcode image in broewser. As I am developing web-application, I dont want to save image any where... I just want to display this Image in browser as well as in MS-Word document. I would appreciate your suggestions. Thanks in advance. ~Samir -- This message was sent on behalf of samirbukkawar@... at openSubscriber.com http://www.opensubscriber.com/message/itext-questions@.../12459488.html ------------------------------------------------------------------------------ _______________________________________________ iText-questions mailing list iText-questions@... https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ |
|
|
Re: Barcode Image sizessamirbukkawar@... wrote:
> Thank you Bruno, > > Thanks for your valuable suggestion. > I have tried your suggestions but not able to preview barcode image in browser. Too bad for you; the answer that was given should have been sufficient. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ _______________________________________________ iText-questions mailing list iText-questions@... https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ |
| Free embeddable forum powered by Nabble | Forum Help |