Re: RtfExternalGraphic.java bug

Phil Chu <[email protected]> Mon, 09 Feb 2004 11:04:03 -0800
Newsgroups gmane.text.xml.jfor.general
Message-ID <[email protected]>
I took a look in the code, and it seems that pichgoal and picwgoal are 
only output if the fo file has width/height attributes specified for 
fo:external-graphic. And picscaley and picscalex are only output if the 
scaling attribute is specified. Offhand, this seems like correct 
behavior (but I see in the bug db someone else reported a scaling 
problem), but if I'm missing something, let me know.

So, I suggest removing either the width/height or scaling attribute from 
fo:external-graphic in your fo document, depending on what you want.

-Phil

Koes, Derrick wrote:

> I believe I have found a bug in the RtfExternalGraphic class.
> 
> The writeRtfContentWithException method contains code to write pichgoal 
> and/or picwgoal to the rtf file.  However, there is also code to write 
> pich and picw and picscaley and picscalex.  Editors such as the 
> ubiquitous MS Word first apply the scaling to the pich and picw values.  
> In and of itself this is great.  However, it then applies the pichgoal 
> and picwgoal.  These are similar to pich and picw, but measured in twips 
> rather than pixels.  This results in a thin or small image.
> 
>  
> 
> I want to remove the pichgoal and picwgoal code from the file.  How do I 
> enter a bug?  Better yet, where can I check in a change if possible?
> 
> Does anyone see a problem with this proposal?
> 
> This electronic transmission is strictly confidential to Smith & Nephew 
> and intended solely for the addressee. It may contain information which 
> is covered by legal, professional or other privilege. If you are not the 
> intended addressee, or someone authorized by the intended addressee to 
> receive transmissions on behalf of the addressee, you must not retain, 
> disclose in any form, copy or take any action in reliance on this 
> transmission. If you have received this transmission in error, please 
> notify the sender as soon as possible and destroy this message.
> 


-- 
Phil Chu
[email protected]
http://www.technicat.com/


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn