Re: RTF output
Tony Morris escribió: Thanks, by explicitly setting a width and height, the problem disappeared - it only occurred for the RTF renderer (though I only tried the PDF one as well). The sizes themselves seem to be a tad obscure though. Tony, can you be a bit more precise as to what you mean by this last sentence? All I know is that, in FOP Trunk, with 'height' and 'width' you only specify the dimension of the area. Use them in combination with 'content-height' and 'content-width' to get appropriate results. I don't have my test case with me, since I am at work at the moment. Otherwise, what I recall is setting the size of an external-graphic to the exact number of pixels (I think if I didn't, the RTF renderer wasn't happy), the image appeared scaled down, but if I set the image size to say, 10x the number of pixels, it would not appear 10x bigger than the scaled down image, but about the size I would expect normally. Granted, I was using MS Word 2003 for verification, which may well be the culprit. I will get more exact details when I go home. Tony Morris Software Engineer IBM Software Group, Tivoli Software Gold Coast, Australia (GMT +10) Sun Certified Programmer for the Java 2 Platform 1.4 Sun Certified Programmer for the Java 2 Platform 5.0 Sun Certified Developer for the Java 2 Platform I am an engineer. If I fail to accept what others accept, I earn their opprobrium. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RTF output
Using the following fo file: ?xml version=1.0 encoding=utf-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=content page-height=29.7cm page-width=21cm fo:region-body/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=content fo:flow flow-name=xsl-region-body fo:block fo:external-graphic src=images/JavaCrtfd_Prg.gif/ /fo:block /fo:flow /fo:page-sequence /fo:root I attempt to generate RTF using the Ant task: fop format=application/rtf fofile=in.fo outfile=out.rtf force=true/ I receive the following error: [fop] 22/10/2005 19:04:42 org.apache.fop.fo.properties.EnumLength getValue [fop] SEVERE: getValue() called on AUTO length [fop] 22/10/2005 19:04:42 org.apache.fop.fo.properties.EnumLength getValue [fop] SEVERE: getValue() called on AUTO length Can anyone provide any pointers to what might be the issue? -- Tony Morris http://www.tmorris.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RTF output
Thanks, by explicitly setting a width and height, the problem disappeared - it only occurred for the RTF renderer (though I only tried the PDF one as well). The sizes themselves seem to be a tad obscure though. At 07:32 PM 22/10/2005, Andreas L Delmelle wrote: On Oct 22, 2005, at 11:12, Tony Morris wrote: Hi, I attempt to generate RTF using the Ant task: fop format=application/rtf fofile=in.fo outfile=out.rtf force=true/ I receive the following error: [fop] 22/10/2005 19:04:42 org.apache.fop.fo.properties.EnumLength getValue [fop] SEVERE: getValue() called on AUTO length [fop] 22/10/2005 19:04:42 org.apache.fop.fo.properties.EnumLength getValue [fop] SEVERE: getValue() called on AUTO length Can anyone provide any pointers to what might be the issue? I'm not absolutely sure, but most likely, this message is caused by the default values of height/content-height/content-width... on fo:external-graphic. All these properties default to a value of auto and somewhere the property is being queried for its value without checking first whether it has an enum value. Have you tried different output targets? Same problem? If not, the cause of this would be somewhere in the RTFRenderer. To remove these errors, I guess you could try specifying explicit values for height/content-height etc. It's not ideal, but should suffice as a workaround until we manage to track down the unchecked call to getValue(). Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Tony Morris http://www.tmorris.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FO to RTF with Revision 231325
I am attempting to generate a RTF document from a simple FO document. I am generating the FO from a XHTML source using the Antenna House XSL. The FO document is at http://pastebin.com/334402 The error produced from the Ant task is: [fop] 11/08/2005 18:46:24 org.apache.fop.fo.properties.EnumLength getValue [fop] SEVERE: getValue() called on AUTO length Any tips are most appreciated. Tony Morris Software Engineer, IBM Australia. BInfTech, SCJP 1.4, SCJP 5.0, SCJD http://www.tmorris.net/ http://www.jtiger.org/ JTiger Unit Test Framework for Java http://qa.jtiger.org/ Java QA (FAQ, Trivia) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]