I am using PdfGraphics2D to write a JFreeChart to PDF.

iText scales the text significantly larger in the PDF file than it 
appears in a Java window. For example, the tick mark labels down the 
sides of my chart overlap in the PDF file, but they are practically 
double-spaced in the original chart.

These screenshots illustrate the difference between my Java window and 
the PDF file:

    
http://picasaweb.google.com/amickish/JFreeChart/photo#5153223690183033234
    
http://picasaweb.google.com/amickish/JFreeChart/photo#5153899464632353218

I am using plain old fonts for everything on the Java2D side (e.g., 
"SansSerif", Font.PLAIN, 16) and the DefaultFontMapper on the iText side.

In Adobe Reader, the Document Properties for the PDF says there is one 
font used in the document:  Helvetica, Type: Type 1, Encoding: Ansi, 
Actual Font: ArialMT, Actual Font Type: TrueType.

If I reduce the font size on the Java side by 50%, then the PDF looks 
better, but then the text is too small on the Java side.

It seems that a font size conversion is misbehaving, or there is some 
discrepancy in coordinate systems resulting in text filling too large of 
a space.

Thanks for your advice.

--Andrew Mickish

P.S.  I just ordered the book. ;-)


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to