Re: Fireworks PNG
Fireworks PNGs are non-standard PNGs. So you're right, it isn't a FOP problem. You can always write your own codec if you can get your hands on the Fireworks PNG specification and submit a patch. Not a simple task I imagine, because they seem to include not only bitmap data but also vector graphics. Maybe Adobe has a Java library for reading those. But you're probably better off converting those images to real PNGs or SVG. On 15.05.2007 08:43:31 Raphael Parree wrote: Hi, I am in process of moving to Fireworks CS3 for imaging and when saving in the PNG from Fireworks (Fireworks PNG), FOP (trunk version from around 20061120) throws an exception. (java.io.EOFException see whole stacktrace below. When saving from Firworks in Flattened PNG FOP is able to show. I understand this is a Fireworks problem and not a FOP problem. But is there any change that FOP would support this type? What would need to be done to support this Firworks Image type? (The reason, when saving in Flattened mode you loose the objects/layers etc in your drawing, editing it then later is difficult) Tx., Raphael java.io.EOFException at javax.imageio.stream.ImageInputStreamImpl.readFully(ImageInputStreamImpl.jav a:330) at java.io.DataInputStream.readUTF(DataInputStream.java:565) at javax.imageio.stream.ImageInputStreamImpl.readUTF(ImageInputStreamImpl.java: 309) at com.sun.imageio.plugins.png.PNGImageReader.parse_iTXt_chunk(PNGImageReader.j ava:443) at com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java: 647) at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:130 9) at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1579) at org.apache.fop.image.ImageIOImage.loadBitmap(ImageIOImage.java:96) at org.apache.fop.image.ImageIOImage.loadDimensions(ImageIOImage.java:66) at org.apache.fop.image.AbstractFopImage.load(AbstractFopImage.java:160) at org.apache.fop.fo.flow.ExternalGraphic.bind(ExternalGraphic.java:73) at org.apache.fop.fo.FObj.processNode(FObj.java:118) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.jav a:321) at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:185) at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527) Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ConvertDOM2SVG
The SVG Renderer has not been resurrected for FOP Trunk/0.93, yet. That's why you get this error message. I've got half an implementation on my notebook that uses Batik's SVGGraphics2D and FOP's Java2DRenderer. I can dump what I have in FOP's sandbox. Maybe it would help you but no guarantees. FOP 0.20.5 has SVG output but the quality is questionable and going back to 0.20.5 is not attractive. I'll see if I can commit my SVG changes later today. On 15.05.2007 11:12:52 ayadi ines wrote: I want to generate an SVG file from a DOM so I have tried this method but it generte the folowing exception java.lang.UnsupportedOperationException: Don't know how to handle image/svg+xml as an output format. Neither an FOEventHandler, nor a Renderer could be found for this output format. at org.apache.fop.render.RendererFactory.createFOEventHandler(RendererFactory.java:224) at org.apache.fop.fo.FOTreeBuilder.init(FOTreeBuilder.java:98) at org.apache.fop.apps.Fop.createDefaultHandler(Fop.java:147) at org.apache.fop.apps.Fop.init(Fop.java:82) at org.apache.fop.apps.FopFactory.newFop(FopFactory.java:227) at antidote.apps.DOM2SVG.convertDOM2SVG(DOM2SVG.java:43) at antidote.apps.Antidote.processXmlFiles(Antidote.java:227) at antidote.apps.Antidote.run(Antidote.java:104) at antidote.apps.Antidote.main(Antidote.java:111) and this is the method public void convertDOM2SVG(Document xslfoDoc, File svg) { try { FOUserAgent foUserAgent = fopFactory.newFOUserAgent(); // configure foUserAgent as desired // Setup output OutputStream out = new java.io.FileOutputStream(svg); out = new java.io.BufferedOutputStream(out); try { // Construct fop with desired output format and output stream Fop fop = fopFactory.newFop(MimeConstants.MIME_SVG, foUserAgent, out); // Setup Identity Transformer TransformerFactory factory = TransformerFactory.newInstance(); Transformer transformer = factory.newTransformer(); // identity transformer // Setup input for XSLT transformation Source src = new DOMSource(xslfoDoc); // Resulting SAX events (the generated FO) must be piped through to FOP Result res = new SAXResult(fop.getDefaultHandler()); // Start XSLT transformation and FOP processing transformer.transform(src, res); } finally { out.close(); } } catch (Exception e) { e.printStackTrace(System.err); System.exit(-1); } } i will be grateful if someone can help me thanks Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Table and the Data are missing in PDF
Senthil, can't you please just post the generated FO file. It would make it easier to help. I don't want to spend a lot of time finding the right libraries and making your code work. Thanks. On 16.05.2007 11:10:48 Senthil Kumar Balasubramanian wrote: Hi, I am in the processing of converting HTML page to PDF using Tidy + FOP frameworks. There is a problem when converting a HTML table into a PDF. The table and the data are not displaying in the PDF. Can anyone aware of it. Please let me know. I have attached my Java Code, XSL StyleSheet and the HTML for your reference. Thanks and Regards, Senthil Best Regards, Senthilkumar .B Xtn: 6616 Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP Transformer Exception (oracle)
For those that are interested, I did the following change in transformer initialization, changing the default transformer factory to apache one (default oracle was causing a problem) and it worked fine. import org.apache.xalan.processor.TransformerFactoryImpl; TransformerFactory factory = new TransformerFactoryImpl(); // explicitely call apache xalan //TransformerFactory factory = TransformerFactory.newInstance(); // default oracle problem! Thanks Rigas -- Forwarded message -- From: J.Pietschmann [EMAIL PROTECTED] To: fop-users@xmlgraphics.apache.org Date: Mon, 14 May 2007 22:27:38 +0200 Subject: Re: FOP Transformer Exception Rigas Parathyras wrote: So from your answer you are saying that there is a problem with the Oracle xml transformer. Does this mean that I should not use the jaxp API to do the transformation, as not all parsers are supported in FOP? No, the problem is even weirder. Should I instantiate the xerces parser explicitely somehow? I doubt this is possible in an Oracle Application Server. You can try to get some professional helping you to track down the problem in your environment, perhaps from Oracle. J.Pietschmann
Re: Fireworks PNG
It's like how to save logo in gif/jpeg but still keep you editor's layer for later modifications. Most of the time, the sanswer is simple - keep the to be edited file in the native format of editor - When you need to export your work for the webserver/whatever, export to a widely used file format (png/gif/jpeg). No need to try to save both datas in same file. It's a bit like wanting to be able to edit source code of a program from the binary executable. En l'instant précis du 16/05/07 11:19, Jeremias Maerki s'exprimait en ces termes: Fireworks PNGs are non-standard PNGs. So you're right, it isn't a FOP problem. You can always write your own codec if you can get your hands on the Fireworks PNG specification and submit a patch. Not a simple task I imagine, because they seem to include not only bitmap data but also vector graphics. Maybe Adobe has a Java library for reading those. But you're probably better off converting those images to real PNGs or SVG. On 15.05.2007 08:43:31 Raphael Parree wrote: Hi, I am in process of moving to Fireworks CS3 for imaging and when saving in the PNG from Fireworks (Fireworks PNG), FOP (trunk version from around 20061120) throws an exception. (java.io.EOFException see whole stacktrace below. When saving from Firworks in Flattened PNG FOP is able to show. I understand this is a Fireworks problem and not a FOP problem. But is there any change that FOP would support this type? What would need to be done to support this Firworks Image type? (The reason, when saving in Flattened mode you loose the objects/layers etc in your drawing, editing it then later is difficult) Tx., Raphael java.io.EOFException at javax.imageio.stream.ImageInputStreamImpl.readFully(ImageInputStreamImpl.jav a:330) at java.io.DataInputStream.readUTF(DataInputStream.java:565) at javax.imageio.stream.ImageInputStreamImpl.readUTF(ImageInputStreamImpl.java: 309) at com.sun.imageio.plugins.png.PNGImageReader.parse_iTXt_chunk(PNGImageReader.j ava:443) at com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java: 647) at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:130 9) at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1579) at org.apache.fop.image.ImageIOImage.loadBitmap(ImageIOImage.java:96) at org.apache.fop.image.ImageIOImage.loadDimensions(ImageIOImage.java:66) at org.apache.fop.image.AbstractFopImage.load(AbstractFopImage.java:160) at org.apache.fop.fo.flow.ExternalGraphic.bind(ExternalGraphic.java:73) at org.apache.fop.fo.FObj.processNode(FObj.java:118) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.jav a:321) at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:185) at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527) Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error - java.lang.UnsatisfiedLinkError: no cmm in java.library.path
Hello, I am running a java application on a iSeries V5R4, JDK 1.4 using release 0.93 of FOP. I get the error - java.lang.UnsatisfiedLinkError: no cmm in java.library.path. I am not sure what the error actually means.. I can run the application and/or the FOP script on my windows pc and it runs fine. I am not sure what I am missing on the iSeries. Any help would be appreciated...
Re: Error - java.lang.UnsatisfiedLinkError: no cmm in java.library.path
Seems to have to do with the IBM JVM you're using. Friend Google revealed this: http://groups.google.com/group/comp.sys.ibm.as400.misc/browse_thread/thread/8c486bb36e896c6c/9e0fb85a14724312 cmm has to do with color profiles. I have no idea why that is not available with the IBM JVM. I'd ask IBM for help. Just for reference, it would be interesting to see the full stacktrace. On 16.05.2007 21:14:38 Edward.Smith wrote: Hello, I am running a java application on a iSeries V5R4, JDK 1.4 using release 0.93 of FOP. I get the error - java.lang.UnsatisfiedLinkError: no cmm in java.library.path. I am not sure what the error actually means.. I can run the application and/or the FOP script on my windows pc and it runs fine. I am not sure what I am missing on the iSeries. Any help would be appreciated... Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]