Hi,

I am using PSDocumentGraphics2D to create a postscript file.
I draw a label in which I use a barcode font (IDAutomation).
When I run it in Windows it prints perfect, but when I run the same code,
with the same fonts, in Linux I am not being able to scan the barcode.

Is there any command on the PSDocumentGraphics2D or GraphicContext which I
could do to make the resolution of the file better.

Maybe it is a problem with the fonts (the way they have been installed in
Linux) but I just wanted to make sure that I am using the API correctly.

My code is like follow:
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, 815, 415); 
                        
Font barcode = new Font("IDAutomationSC39XL", Font.PLAIN, 10);//14
g2d.setFont(barcode);
g2d.drawString("!SALFL359F78999078!",50,50);

g2d.finish();

Thank you,

Camila

--
View this message in context: 
http://www.nabble.com/resolution-on-PS-files-t1644209.html#a4453344
Sent from the FOP - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to