Hi Jeremias, I've changed the app as follows.
Apparently JAI Tools JAR gets ignored because I'm using xmlgraphics 1.2, which is bundled with fop 94. I updated to xmlgraphics 1.4 and kept the same fop .94, and I'm getting the compression exception mentioned in the other e-mail: javax.imageio.IIOException: Bits per sample must be 1 for T6 compression! I updated everything to the latest JAR and am still getting the above compression exception. From what I can tell by viewing the source of the JAI Tools code, if the bits per sample array in the write function of TIFFT6Compressor isn't length 1 containing a value of 1 (which is appropriate for a Group 4 compression tiff), it throws. Bits per sample array size is set by the numBands calculated in IO Tools TIFFImageWriter, which is determined by the samplemodel and the colormodel. Bits per sample value (1 is needed) is set by the bitDepth, calculated in same, which since it needs to be 1, is determined by sampleSize[0], which is also set by samplemodel.getSampleSize() Since I see attachments work well in this mailing list, I'm attaching my latest JAVA file and FOP-formatted XSL file. Maybe my resulting xml is overkill in some way, causing an unexpectedly high value in samplemodel? I'm going to investigate further and see how the sampleModel is being set within the code and what values it received, but while I'm still researching, any advice would be greatly appreciated. Worst case on this, I'll end up trying to create a Graphics2D and using JAI Tools to create the TIFF (I'll make sure to post the code as a follow-up), or go back to our old way of generating a PostScript from FOP and using a third party tool to convert it to TIFF (a tactic I am trying to avoid). Also, semi-topical since it concerns TIFF conversion and since you're the one who made the fix, would you happen to know if the multi-threading issue with with Java2D renderer (Revision 895012) is resolved with xmlgraphics 1.4, or if that is still unreleased; I'm still getting up to speed on how / whether some specific revisions/fixes are applied to releases. Much Thanks, Josh (JAR LIST FOLLOWS) JAR LIST jai_imageio.jar (1.1) avalon-framework-4.2.0.jar batik-all-1.6.jar commons-logging-1.0.4.jar fop.jar (.95) serializer-2.7.0.jar xalan-2.7.0.jar xercesImpl-2.7.1.jar xml-apis-1.3.02.jar log4j-1.2.13.jar commons-io-1.4.jar xmlgraphics-commons-1.4.jar ----------------------------------------- The information in this message may be proprietary and/or confidential, and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify First Data immediately by replying to this message and deleting it from your computer.
FopTiffTester.java
Description: FopTiffTester.java
testFop.xsl
Description: testFop.xsl
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
