Suppress RTF

2006-06-08 Thread Will Peterson


Quick question,
 
I am going to customize FOP to suppress the RTF gif image exception when rendering documents.  (i.e. org.apache.fop.render.rtf.rtflib.rtfdoc.RtfExternalGraphic$ExternalGraphicException: The tag  does not support gif - image type.)
 
Would it be recommended to recompile the whole fop.jar, or should I just customize the one class (RtfExternalGraphic) and include it on the class path.  Any suggestions here.
 
Thanks,
 
-Will

SVN vs. BIN

2006-04-21 Thread Will Peterson


I'm a little confused on the subversion FOP vs. the binary download.
 
- The .92 beta binary uses 'FopFactory' to create a Fop instance (which I can't get to work anyway, which is why I tried the subversion)
- The subversion uses the 'new Fop' object constructor (no FopFactory)
 
- The .92 beta binary includes one jar file in the build directory
- The subversion includes 5 (after built)
 
Can some one please clarify if they know why these are different.  I thought the binary was just a snapshot of the subversion.
 
I would like to use the beta release, but I can't get it working because calling FopFactory.newInstance() gets a noClassDef error (I'm assuming because a dependancy is missing), the subversion stuff works but I kinda wonder why I need all the extra jar files (fop-transcoder-allinone.jar, fop-sandbox.jar, fop-hyph.jar, fop-transcoder.jar) ... without them fop will not work.  Plus, I want to be prepared for the final release.
 
Thanks in advance for any help.
 
-Will

Suppress RTF ExternalGraphicException

2006-03-17 Thread Will Peterson


Is there a way to suppress the ExternalGraphicException text that renders inside an RTF document?  Such that the document would be rendered but exclude the text:
"org.apache.fop.render.rtf.rtflib.rtfdoc.RtfExternalGraphic$ExternalGraphicException: The tag 
Will Peterson
Software Engineer, SIM
801.861.5238
ic> does not support gif - image type." (as well as the GIF image, of course)
 
I don't mind the image missing as much as the big error repeated throughout the document.
 
Thanks for any help offered,
 
- Will

Logging with 1.0dev

2005-06-23 Thread Will Peterson
Is there any sample documentation on how to do logging with Fop 1.0dev.

The previous Fop had examples right in the distribution, but I can't find 
anything there, or on the web for sample code of how to do logging. (All the 
code example I see are based on having a  handle on the driver (for example):

//Setup logger
Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_INFO);
driver.setLogger(logger);
MessageHandler.setScreenLogger(logger);

Thanks for any help,

- Will