Title: RE: [iText-questions] PDF File Differences between JDK 1.3 and JDK 1.4
Hi Paulo,
 
I've finally managed to get to the root of the problem, it was caused by a Java Bug fix in the JFreeChart.
 
The TextUtility class has a workaround for JDC bug ID 431217 for drawing rotated text. It seems for JDK 1.3 you do not need the workaround, so you can turn it off using the following method.
 
org.jfree.text.TextUtilities.setUseDrawRotatedStringWorkaround(false);
 
The workaround uses TextLayout to Render the text instead of the drawString method. This has the effect of increasing the size of a PDF page from 30k to 167k.
 
Thanks to Adriaan Joubert for info :-
 
Jason.
-----Original Message-----
From: Paulo Soares [mailto:[EMAIL PROTECTED]
Sent: Fri 02/09/2005 16:44
To: Jason Moors; [email protected]
Cc:
Subject: RE: [iText-questions] PDF File Differences between JDK 1.3 and JDK 1.4

That's a Graphics2D feature, it may print text as font or shapes. iText
has no control over it.

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On
> Behalf Of Jason Moors
> Sent: Friday, September 02, 2005 2:15 PM
> To: [email protected]
> Subject: [iText-questions] PDF File Differences between JDK
> 1.3 and JDK 1.4
>
> Hi,
>

>
> I sent a previous post describing a difference of PDF file
> size when created using different versions of JDK.
>

>
> I spent further time investigating and the format is quite
> different, in particular, the Font attribute is not provided
> in the 1.3.1 version. I've provide an example of the
> difference below. But it seems that the XObject stream is
> approx 10 times the size.
>

>
> The image stream is using Java2D to drawing lines etc.
>

>
> Can anyone explain why they are different??? I need to get to
> the bottom of this as my application needs to run under a
> portal server running 1.3.1.
>

>
> Thanks
>

>
> Jason
>

>
> JDK 1.3.1
>

>
> 16 0 obj <</Matrix [1 0 0 1 0 0]/Resources<</ExtGState<</GS6
> 18 0 R/GS5 17 0 R>>/ProcSet [/PDF /Text /ImageB /ImageC
> /ImageI]>>/Subtype/Form/Filter/FlateDecode/Length
> 46614/FormType 1/BBox[0 0 345.98 113.39]/Type/XObject>>stream
>

>
> JDK 1.4.1
>

>
> 18 0 obj <</Matrix [1 0 0 1 0
> 0]/Filter/FlateDecode/Type/XObject/FormType 1/Length
> 4082/Resources<</ExtGState<</GS6 20 0 R/GS5 19 0 R>>/ProcSet
> [/PDF /Text /ImageB /ImageC /ImageI]/Font<</F3 9 0
> R>>>>/Subtype/Form/BBox[0 0 345.98 113.39]>>stream
>

>
>
>
>
>
>
>
> The content of this email is confidential and for the
> addressee only. If you are not the addressee of this
> email (or responsible for the delivery of this message
> to such person) you may not copy, forward, disclose
> or otherwise use it or any part of it in any form
> whatsoever. If you have received this email in error
> please email the sender by replying to this message
> and delete this message thereafter.
>
> Opinions, conclusions and other information in this
> message that do not relate to the official business
> of our Company shall be understood as neither
> given nor endorsed by it.
>
>      
>







The content of this email is confidential and for the
addressee only. If you are not the addressee of this
email (or responsible for the delivery of this message
to such person) you may not copy, forward, disclose
or otherwise use it or any part of it in any form
whatsoever. If you have received this email in error
please email the sender by replying to this message
and delete this message thereafter. 

Opinions, conclusions and other information in this
message that do not relate to the official business
of our Company shall be understood as neither
given nor endorsed by it.

Reply via email to