Thank you!!! Its going to be a much better solution for my app. I am trying to use it in my code, but the scanner is not being able to read the barcode. How do I change the position that I want to print the barcode? I believe the begining of the barcode is being cut. my code is as bellow:
OutputStream out = new java.io.FileOutputStream(new File(targetDir, "ps-barcode.ps")); out = new java.io.BufferedOutputStream(out); PSDocumentGraphics2D g2d = new PSDocumentGraphics2D(false); g2d.setGraphicContext(new org.apache.xmlgraphics.java2d.GraphicContext()); g2d.setupDocument(out, 615, 315); Code39Bean bean = new Code39Bean(); final int dpi = 20; bean.setModuleWidth(UnitConv.in2mm(1.0f / dpi)); bean.setWideFactor(3); bean.doQuietZone(false); bean.setHeight(50.0); Java2DCanvasProvider canvasJava2d = new Java2DCanvasProvider(g2d); bean.generateBarcode(canvasJava2d, "FL999078"); -- View this message in context: http://www.nabble.com/resolution+on+PS+files-t1644209.html#a4467914 Sent from the FOP - Users forum at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
