Re: Fop 0.95beta - svg tif images
Tried 2 more tiffs (but from the same 'source'). They gave the similar results for relative performance. 1 (0.94) vs 30 (0.95beta) vs 6(0.95beta-jeremias-tiff) Given my non existent knowledge on tiff (and image formats in general) and (I am sure recognizable) chronic lack of time to dive into image formats at this moment, I am afraid I would not even know with which tiff parameters to play Perhaps there is some part of the fop/batik tests that could be used to do some performance regression measurements? Thanks again for your support! Peter On 10 Apr 2008, at 23:40, Andreas Delmelle wrote: On Apr 10, 2008, at 23:19, Andreas Delmelle wrote: According to what I found, the problem could be not so much JAI ImageIO itself, but the codecs. Apparently, Apple does not provide native codecs for all formats, (After some more reading) They do for a TIFF reader, however... maybe their native codec is simply much slower than XG's. ;-) Another reason could be that their native TIFF reader somehow does not qualify... Have you tried using other TIFFs, with different properties? Try opening in Preview, and Export to TIFF, and modify a few. Cheers Andreas - 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]
Re: Fop 0.95beta - svg tif images
On Apr 10, 2008, at 23:19, Andreas Delmelle wrote: According to what I found, the problem could be not so much JAI ImageIO itself, but the codecs. Apparently, Apple does not provide native codecs for all formats, (After some more reading) They do for a TIFF reader, however... maybe their native codec is simply much slower than XG's. ;-) Another reason could be that their native TIFF reader somehow does not qualify... Have you tried using other TIFFs, with different properties? Try opening in Preview, and Export to TIFF, and modify a few. Cheers Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fop 0.95beta - svg tif images
On Apr 10, 2008, at 22:55, Peter Coppens wrote: Well...I did the test with only a tif. 0.94 --> 4sec 0.95beta --> 78sec Somewhat worrying to be honest (although I guess it might be due to the fact that I am using a jai image io jar extracted from a linux package) I guess, next is to try Jeremias's version that gets rid of the jai image io dependancy for tiff's... According to what I found, the problem could be not so much JAI ImageIO itself, but the codecs. Apparently, Apple does not provide native codecs for all formats, and the implementation 'gracefully' falls back to pure Java mode, which is significantly slower... Seems like it is definitely worth keeping the built-in TIFF codec in XMLGraphics. Cheers Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fop 0.95beta - svg tif images
Well...I did the test with only a tif. 0.94 --> 4sec 0.95beta --> 78sec Somewhat worrying to be honest (although I guess it might be due to the fact that I am using a jai image io jar extracted from a linux package) I guess, next is to try Jeremias's version that gets rid of the jai image io dependancy for tiff's... Peter Stylesheet http://www.w3.org/1999/XSL/Format"; xmlns:rx="http://www.renderx.com/XSL/Extensions"; xmlns:doc="for internal documentation" xmlns:svg="http://www.w3.org/2000/svg";> transform="matrix(1, 0, 0, 1, -159.24, -441.960004)"> http://www.w3.org/1999/xlink"; x="0" y="0" width="318.48" height="883.92001" fill="none" stroke="none" xlink:href="Ostern_DIN Lang_Front.tif" /> On 10 Apr 2008, at 20:54, Andreas Delmelle wrote: On Apr 10, 2008, at 20:01, Peter Coppens wrote: You can use the Java-only part of JAI Image I/O Tools. The platform-specific parts are not necessary for TIFF. In the worst case, you can extract the JAR from an installation done on a Windows machine I hope you'll have around. That works...kind of... If I 'time' the pdf rendering of 'the' stylesheet with 0.94 it takes about 7 seconds. With 0.95beta it takes 328 seconds I could try to isolate the 'performance' bottleneck...but perhaps this can be explained with the info available right now? Hmm.. That could be caused by all sorts of things. Are you sure the difference is even related to the included TIFF? Have you compared the timings for documents without TIFF? If so, is there a similar difference? Cheers Andreas - 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]
Re: Fop 0.95beta - svg tif images
On 10 Apr 2008, at 22:11, Andreas Delmelle wrote: On Apr 10, 2008, at 22:00, Andreas Delmelle wrote: No idea why the install would fail on your system, though. Maybe a bug, due to the fact that, as you suggested, the install-package is quite old, and no longer works on more recent versions of OS X (?) Unfortunately, I don't know how the installer checks for Java being present, ... Additional question: does the notice appear at the very start? (Right after you get the warning about a script needing to run to verify whether the installation can proceed?) Yes...that is when it happens. If so, you might get a clue if you look at the scripts in the .dmg's contents (right-click + show package contents). Hmmm...that might be a bit too ambitious for me at this stage (took a peek but could not make much sense of it)...and I guess I did find that jai was installed after all (in /System/Library/Java/ Extensions...see other mail in this thread) Cheers Andreas Thanks for taking the time...much appreciated! Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fop 0.95beta - svg tif images
On Apr 10, 2008, at 22:11, Andreas Delmelle wrote: On Apr 10, 2008, at 22:00, Andreas Delmelle wrote: No idea why the install would fail on your system, though. Maybe a bug, due to the fact that, as you suggested, the install-package is quite old, and no longer works on more recent versions of OS X (?) Unfortunately, I don't know how the installer checks for Java being present, ... Additional question: does the notice appear at the very start? (Right after you get the warning about a script needing to run to verify whether the installation can proceed?) If so, you might get a clue if you look at the scripts in the .dmg's contents (right-click + show package contents). ... and so I did, and found there is a VolumeCheck script, which seems to rely on: /System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/ version.plist Aha, the script apparently always shows an error if the version is greater than or equal to 10.4. Seems it's been a while since I installed it. If I try to redo it, then it indeed fails here too... Then again, as you discovered, the libraries are already available. Normally, you shouldn't need to do anything special to make these available, as this folder is added to the bootclasspath of the JVM... Cheers Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fop 0.95beta - svg tif images
On 10 Apr 2008, at 22:00, Andreas Delmelle wrote: On Apr 10, 2008, at 21:37, Peter Coppens wrote: On 10 Apr 2008, at 20:47, Andreas Delmelle wrote: Now, I've been looking deeper into my local setup, and IIC, then for Java 1.5, the JAI libraries are already distributed /with/ the install package. At least, I do not remember ever having to configure this manually and still, the JARs are available in the lib/ext folder. Ok..sorry upfront...this is not for this list and extremely newbeebut what should I look for where (I am very new to MacOS and confused by its setup). I have found /System/Library/Frameworks/ JavaVM.framework/Versions/ by now with different versions and also e.g. /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/ Home/lib/ext/ containing apple_provider.jar, dnsns.jar, localedata.jar, sunjce_provider.jar, sunpkcs11.jar but nothing imageio like. Am I looking in the wrong place or have I not installed enough (I do have XCode installed) My mistake. It's not the standard lib/ext. When I installed it for Java 1.4, apparently JAI was put under /System/Java/Extensions (where the Quicktime for Java JAR also resides), hence why it was also automagically available under Java 1.5. Ha, that does get me somewhere (not sure where though). I found 'stuff' in /System/Library/Java/Extensions (jai_core.jar,jai_codec.jar,mlibwrapper_jai.jar )...I explicitly added them to the classpath (which I guess should not be required) before running fop but I keep on getting "no suitable loader/converter combination available". - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fop 0.95beta - svg tif images
On Apr 10, 2008, at 22:00, Andreas Delmelle wrote: No idea why the install would fail on your system, though. Maybe a bug, due to the fact that, as you suggested, the install-package is quite old, and no longer works on more recent versions of OS X (?) Unfortunately, I don't know how the installer checks for Java being present, ... Additional question: does the notice appear at the very start? (Right after you get the warning about a script needing to run to verify whether the installation can proceed?) If so, you might get a clue if you look at the scripts in the .dmg's contents (right-click + show package contents). Cheers Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fop 0.95beta - svg tif images
On Apr 10, 2008, at 21:37, Peter Coppens wrote: On 10 Apr 2008, at 20:47, Andreas Delmelle wrote: Now, I've been looking deeper into my local setup, and IIC, then for Java 1.5, the JAI libraries are already distributed /with/ the install package. At least, I do not remember ever having to configure this manually and still, the JARs are available in the lib/ext folder. Ok..sorry upfront...this is not for this list and extremely newbeebut what should I look for where (I am very new to MacOS and confused by its setup). I have found /System/Library/Frameworks/ JavaVM.framework/Versions/ by now with different versions and also e.g. /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/ Home/lib/ext/ containing apple_provider.jar, dnsns.jar, localedata.jar, sunjce_provider.jar, sunpkcs11.jar but nothing imageio like. Am I looking in the wrong place or have I not installed enough (I do have XCode installed) My mistake. It's not the standard lib/ext. When I installed it for Java 1.4, apparently JAI was put under /System/Java/Extensions (where the Quicktime for Java JAR also resides), hence why it was also automagically available under Java 1.5. No idea why the install would fail on your system, though. Maybe a bug, due to the fact that, as you suggested, the install-package is quite old, and no longer works on more recent versions of OS X (?) Unfortunately, I don't know how the installer checks for Java being present, but I have stumbled on similar weirdness with other installers because of folder-permissions being screwed up somehow. To see whether that is the case, simply run the standard Disk Utility (under /Applications/Utilities) and verify the file permissions for the disk in question. HTH! Cheers Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fop 0.95beta - svg tif images
On 10 Apr 2008, at 20:47, Andreas Delmelle wrote: On Apr 10, 2008, at 20:09, Peter Coppens wrote: Now...for the more problematic part - I am on MacOS...anybody any luck getting the 0.95beta fop/batik to work on macos when using tif images? It is unclear from my intial www wanderings what the state of jai on mac os is. I've not really tested TIFF yet, but I do know that JAI is definitely available for the Apple JVM: http://docs.info.apple.com/article.html?artnum=120289 Thanks...ran into that as well. I was somewhat 'scared' away as it seems to be version 1.0 and dates from december 2003. No sure way to find out, other than trying it... :-) I did...but it refused to install saying it could not find a volume with Java installed on it Now, I've been looking deeper into my local setup, and IIC, then for Java 1.5, the JAI libraries are already distributed /with/ the install package. At least, I do not remember ever having to configure this manually and still, the JARs are available in the lib/ ext folder. Ok..sorry upfront...this is not for this list and extremely newbeebut what should I look for where (I am very new to MacOS and confused by its setup). I have found /System/Library/Frameworks/ JavaVM.framework/Versions/ by now with different versions and also e.g. /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/ lib/ext/ containing apple_provider.jar, dnsns.jar, localedata.jar, sunjce_provider.jar, sunpkcs11.jar but nothing imageio like. Am I looking in the wrong place or have I not installed enough (I do have XCode installed) All help warmly welcomed. Many thanks indeed! Peter This could explain why there is no more recent version of the separate package (needed only for Java 1.3 and 1.4?) Cheers Andreas - 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]
Re: Fop 0.95beta - svg tif images
There's now such an implementation available in XG Commons Trunk: http://svn.apache.org/viewvc?rev=646931&view=rev On 10.04.2008 17:06:37 Jeremias Maerki wrote: > But I guess it makes sense to write an additional implementation for the > built-in TIFF codec we ship. I wanted to get away from that but I guess > it may not be that simple. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fop 0.95beta - svg tif images
On Apr 10, 2008, at 20:01, Peter Coppens wrote: You can use the Java-only part of JAI Image I/O Tools. The platform-specific parts are not necessary for TIFF. In the worst case, you can extract the JAR from an installation done on a Windows machine I hope you'll have around. That works...kind of... If I 'time' the pdf rendering of 'the' stylesheet with 0.94 it takes about 7 seconds. With 0.95beta it takes 328 seconds I could try to isolate the 'performance' bottleneck...but perhaps this can be explained with the info available right now? Hmm.. That could be caused by all sorts of things. Are you sure the difference is even related to the included TIFF? Have you compared the timings for documents without TIFF? If so, is there a similar difference? Cheers Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fop 0.95beta - svg tif images
On Apr 10, 2008, at 20:09, Peter Coppens wrote: Now...for the more problematic part - I am on MacOS...anybody any luck getting the 0.95beta fop/batik to work on macos when using tif images? It is unclear from my intial www wanderings what the state of jai on mac os is. I've not really tested TIFF yet, but I do know that JAI is definitely available for the Apple JVM: http://docs.info.apple.com/article.html?artnum=120289 Thanks...ran into that as well. I was somewhat 'scared' away as it seems to be version 1.0 and dates from december 2003. No sure way to find out, other than trying it... :-) Apart from that, I browsed around some more on the Apple website, and found an RSS feed with a date of 2009-01-01... Have I missed a year somewhere? I'd as soon presume this means that dates are not really reliable over there... ;-) Now, I've been looking deeper into my local setup, and IIC, then for Java 1.5, the JAI libraries are already distributed /with/ the install package. At least, I do not remember ever having to configure this manually and still, the JARs are available in the lib/ext folder. This could explain why there is no more recent version of the separate package (needed only for Java 1.3 and 1.4?) Cheers Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fop 0.95beta - svg tif images
Now...for the more problematic part - I am on MacOS...anybody any luck getting the 0.95beta fop/batik to work on macos when using tif images? It is unclear from my intial www wanderings what the state of jai on mac os is. I've not really tested TIFF yet, but I do know that JAI is definitely available for the Apple JVM: http://docs.info.apple.com/article.html?artnum=120289 Thanks...ran into that as well. I was somewhat 'scared' away as it seems to be version 1.0 and dates from december 2003. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache FOP: Different Problems with embedding PDFs
5. With the newely versions fop 0.95beta and fop-pdf-images-1.2-bin, I can not ebbed TIFF graphics. There happens the exception (see below *2) in fop. With fop 0.94, the same graphic could be embedded well. See reply of Jeremias in a previous thread The solution here is simple: Please install JAI Image I/O Tools in your classpath: http://jai-imageio.dev.java.net/ This will add an Image I/O codec for TIFF. The new image loader framework used by FOP doesn't have an implementation for the bundled TIFF codec so it uses Image I/O for TIFF loading. In the next days, I will do the same tests with Antennahouse. Are there the same problems to expect? The same...that's unlikely...other problems...perhaps :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fop 0.95beta - svg tif images
You can use the Java-only part of JAI Image I/O Tools. The platform-specific parts are not necessary for TIFF. In the worst case, you can extract the JAR from an installation done on a Windows machine I hope you'll have around. That works...kind of... If I 'time' the pdf rendering of 'the' stylesheet with 0.94 it takes about 7 seconds. With 0.95beta it takes 328 seconds I could try to isolate the 'performance' bottleneck...but perhaps this can be explained with the info available right now? Thanks! Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fop 0.95beta - svg tif images
On Apr 10, 2008, at 16:58, Peter Coppens wrote: Hi Peter As to the cause of the error...can't really see where else it is coming from (but in the end that might be a 'detail'). Below the complete stack trace...perhaps you find it 'interesting' Now...for the more problematic part - I am on MacOS...anybody any luck getting the 0.95beta fop/batik to work on macos when using tif images? It is unclear from my intial www wanderings what the state of jai on mac os is. I've not really tested TIFF yet, but I do know that JAI is definitely available for the Apple JVM: http://docs.info.apple.com/article.html?artnum=120289 HTH! Cheers Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fop 0.95beta - svg tif images
Oh, I didn't remember we load the images inside SVG over the new image loader through a special bridge in FOP. You can use the Java-only part of JAI Image I/O Tools. The platform-specific parts are not necessary for TIFF. In the worst case, you can extract the JAR from an installation done on a Windows machine I hope you'll have around. But I guess it makes sense to write an additional implementation for the built-in TIFF codec we ship. I wanted to get away from that but I guess it may not be that simple. On 10.04.2008 16:58:52 Peter Coppens wrote: > Thanks Jeremias > > As to the cause of the error...can't really see where else it is > coming from (but in the end that might be a 'detail'). Below the > complete stack trace...perhaps you find it 'interesting' > > Now...for the more problematic part - I am on MacOS...anybody any luck > getting the 0.95beta fop/batik to work on macos when using tif > images? It is unclear from my intial www wanderings what the state of > jai on mac os is. > > Pointers or guidance would be appreciated. > > Thanks! > > Peter > > > > > > org.apache.xmlgraphics.image.loader.ImageException: Cannot load image > (no suitable loader/converter combination available) for file:/lap-pc- > migration/Downloads/RenderX/inx2fo/mda/./Ostern_DIN Lang_Front.tif > (image/tiff) > at > org > .apache > .xmlgraphics.image.loader.ImageManager.getImage(ImageManager.java:248) > at > org > .apache > .xmlgraphics.image.loader.ImageManager.getImage(ImageManager.java:289) > at > org > .apache > .fop > .svg > .PDFImageElementBridge > .createImageGraphicsNode(PDFImageElementBridge.java:80) > at > org > .apache > .batik.bridge.SVGImageElementBridge.buildImageGraphicsNode(Unknown > Source) > at > org > .apache.batik.bridge.SVGImageElementBridge.createGraphicsNode(Unknown > Source) > at > org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source) > at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown > Source) > at > org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source) > at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown > Source) > at > org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source) > at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown > Source) > at > org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source) > at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown > Source) > at > org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source) > at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown > Source) > at > org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source) > at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown > Source) > at > org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source) > at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown > Source) > at org.apache.batik.bridge.GVTBuilder.build(Unknown Source) > at > org > .apache > .fop.render.pdf.PDFSVGHandler.renderSVGDocument(PDFSVGHandler.java:188) > at > org > .apache > .fop > .render > .AbstractGenericSVGHandler.handleXML(AbstractGenericSVGHandler.java:57) > at > org.apache.fop.render.AbstractRenderer.renderXML(AbstractRenderer.java: > 799) > at > org.apache.fop.render.PrintRenderer.renderDocument(PrintRenderer.java: > 169) > at > org > .apache > .fop > .render > .AbstractPathOrientedRenderer > .renderForeignObject(AbstractPathOrientedRenderer.java:717) > at > org > .apache > .fop.render.AbstractRenderer.renderViewport(AbstractRenderer.java:738) > at > org > .apache > .fop > .render > .AbstractPathOrientedRenderer > .renderViewport(AbstractPathOrientedRenderer.java:557) > at > org > .apache > .fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:617) > at > org > .apache.fop.render.pdf.PDFRenderer.renderInlineArea(PDFRenderer.java: > 1345) > at > org > .apache > .fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:592) > at > org.apache.fop.render.pdf.PDFRenderer.renderLineArea(PDFRenderer.java: > 1336) > at > org > .apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java: > 529) > at > org > .apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java: > 564) > at > org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1329) > at > org > .apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java: > 519) > at > org > .apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java: > 564) > at > org.apache.fop.render.pdf.PDFRenderer.renderBl
Re: Fop 0.95beta - svg tif images
Thanks Jeremias As to the cause of the error...can't really see where else it is coming from (but in the end that might be a 'detail'). Below the complete stack trace...perhaps you find it 'interesting' Now...for the more problematic part - I am on MacOS...anybody any luck getting the 0.95beta fop/batik to work on macos when using tif images? It is unclear from my intial www wanderings what the state of jai on mac os is. Pointers or guidance would be appreciated. Thanks! Peter org.apache.xmlgraphics.image.loader.ImageException: Cannot load image (no suitable loader/converter combination available) for file:/lap-pc- migration/Downloads/RenderX/inx2fo/mda/./Ostern_DIN Lang_Front.tif (image/tiff) at org .apache .xmlgraphics.image.loader.ImageManager.getImage(ImageManager.java:248) at org .apache .xmlgraphics.image.loader.ImageManager.getImage(ImageManager.java:289) at org .apache .fop .svg .PDFImageElementBridge .createImageGraphicsNode(PDFImageElementBridge.java:80) at org .apache .batik.bridge.SVGImageElementBridge.buildImageGraphicsNode(Unknown Source) at org .apache.batik.bridge.SVGImageElementBridge.createGraphicsNode(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source) at org.apache.batik.bridge.GVTBuilder.build(Unknown Source) at org .apache .fop.render.pdf.PDFSVGHandler.renderSVGDocument(PDFSVGHandler.java:188) at org .apache .fop .render .AbstractGenericSVGHandler.handleXML(AbstractGenericSVGHandler.java:57) at org.apache.fop.render.AbstractRenderer.renderXML(AbstractRenderer.java: 799) at org.apache.fop.render.PrintRenderer.renderDocument(PrintRenderer.java: 169) at org .apache .fop .render .AbstractPathOrientedRenderer .renderForeignObject(AbstractPathOrientedRenderer.java:717) at org .apache .fop.render.AbstractRenderer.renderViewport(AbstractRenderer.java:738) at org .apache .fop .render .AbstractPathOrientedRenderer .renderViewport(AbstractPathOrientedRenderer.java:557) at org .apache .fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:617) at org .apache.fop.render.pdf.PDFRenderer.renderInlineArea(PDFRenderer.java: 1345) at org .apache .fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:592) at org.apache.fop.render.pdf.PDFRenderer.renderLineArea(PDFRenderer.java: 1336) at org .apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java: 529) at org .apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java: 564) at org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1329) at org .apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java: 519) at org .apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java: 564) at org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1329) at org .apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java: 519) at org .apache .fop .render .AbstractPathOrientedRenderer .renderBlockViewport(AbstractPathOrientedRenderer.java:478) at org .apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java: 546) at org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1329) at org .apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java: 519) at org .apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java: 564) at org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1329) at org .apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java: 519) at org .apache.fop.render.AbstractRenderer.renderFlow(AbstractRe
Apache FOP: Different Problems with embedding PDFs
Hi there I have different problems with embedding PDFs using apache fop 0.95beta and fop-pdf-images-1.2-bin. I made several tests with the reference pdf "PXR-OutputTest_SPOT_20d_x3.pdf" of http://www.pdfx-ready.ch/files/PXR-OutputTest_SPOT_20d.zip. I had the following problems: - 1. I tried to definie the embedding like "t:\__Oli\000\PXR-OutputTest_SPOT_20d_x3.pdf#page=1" or "...#page=2" and "...#page=3", but there is always embedding the first page. Du to that, I split the pages of the reference document (for the following tests) into three documents - One document for every page. 2. The first page of the reference pdf can be embedded with fop with no errors. I don't know something about the quality of the embedded pdf at the moment, but it did not happen any errors :-) 3. The second page can not be embedded. There happens the exception (see below *1) in fop. 4. The third page can be embedded without errors, but the genarated pdf can not be opened with adobe reader (Error 110) 5. With the newely versions fop 0.95beta and fop-pdf-images-1.2-bin, I can not ebbed TIFF graphics. There happens the exception (see below *2) in fop. With fop 0.94, the same graphic could be embedded well. Is there any help for that? In the next days, I will do the same tests with Antennahouse. Are there the same problems to expect? Thanks & kind regards, Oliver Hirschi *1) -- 10.04.2008 16:39:17 org.apache.fop.area.RenderPagesModel addPage SCHWERWIEGEND: Error while rendering page 1 java.lang.ClassCastException: java.lang.String cannot be cast to org.apache.fop.pdf.PDFObject at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:102) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:81) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:115) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:102) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:81) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.transferDict(PDFBoxAdapter.java:187) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:134) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:102) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:81) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:142) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:81) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:142) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.cloneForNewDocument(PDFBoxAdapter.java:81) at org.apache.fop.render.pdf.pdfbox.PDFBoxAdapter.createFormFromPDFBoxPage(PDFBoxAdapter.java:200) at org.apache.fop.render.pdf.pdfbox.PDFBoxPDFImageHandler.generateImage(PDFBoxPDFImageHandler.java:93) at org.apache.fop.render.pdf.PDFRenderer.putImage(PDFRenderer.java:1745) at org.apache.fop.render.pdf.PDFRenderer.renderImage(PDFRenderer.java:1679) at org.apache.fop.render.AbstractRenderer.renderViewport(AbstractRenderer.java:734) at org.apache.fop.render.AbstractPathOrientedRenderer.renderViewport(AbstractPathOrientedRenderer.java:557) at org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:617) at org.apache.fop.render.pdf.PDFRenderer.renderInlineArea(PDFRenderer.java:1345) at org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:592) at org.apache.fop.render.pdf.PDFRenderer.renderLineArea(PDFRenderer.java:1336) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:529) at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:564) at org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1329) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:519) at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:564) at org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1329) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:519) at org.apache.fop.render.AbstractPathOrientedRenderer.renderBlockViewport(AbstractPathOrientedRenderer.java:478) at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:546) at org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1329) at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:519) at org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:424) at org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.java:403) at org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.java:337) at org.apache.fop.render.AbstractRenderer.renderRegionViewport(Ab
Re: Fop 0.95beta - svg tif images
The error message comes from the FOP part, so I don't think that the snippet you posted is really the source of the error. The solution here is simple: Please install JAI Image I/O Tools in your classpath: http://jai-imageio.dev.java.net/ This will add an Image I/O codec for TIFF. The new image loader framework used by FOP doesn't have an implementation for the bundled TIFF codec so it uses Image I/O for TIFF loading. HTH On 10.04.2008 16:06:56 Peter Coppens wrote: > Dearest FOP/Batik fans (I am unclear where to post...sorry), > > With FOP 0.94/Batik 1.6, the fo/svg fragment listed lower worked ok. I > switched to FOP0.95beta (which seems to come with a newer batik > version, 1.7) and get > > SEVERE: SVG ErrorCannot load image (no suitable loader/converter > combination available) for file:/lap-pc-migration/Downloads/RenderX/ > inx2fo/mda/./Ostern_DIN Lang_back.tif (image/tiff) > org.apache.xmlgraphics.image.loader.ImageException: Cannot load image > (no suitable loader/converter combination available) for file:/lap-pc- > migration/Downloads/RenderX/inx2fo/mda/./Ostern_DIN Lang_back.tif > (image/tiff) > at > org > .apache > .xmlgraphics.image.loader.ImageManager.getImage(ImageManager.java:248) > > > I am guessing this is all about the new image library, but I am not > sure really and I am even less sure how to deal with this. > > Anyone any thoughts? > > Tx! > > Peter > > FO fragment > >left="0pt" > top="0pt" width="318.6pt" > height="884pt"> > > content-width="318.6pt" > content-height="884pt"> >height="884" > viewbox="0, 0, > 318.6, 884"> > > transform="translate(159.3, 442)"> > > transform="matrix(1, 0, 0, 1, -0.06, 0.04)"> > > > y="-441.960004" width="318.48" > > height="883.92001" fill="none" stroke="none" /> > > > transform="translate(-159.24, -441.960004)"> > > > width="318.48" height="883.92001"> > > > transform="translate(159.24, 441.960004)"> > > > transform="matrix(1, 0, 0, 1, -159.24, > -441.960004)"> > > > > xmlns:xlink="http://www.w3.org/1999/xlink"; x="0" y="0" > > width="318.48" > height="883.92001" fill="none" > > stroke="none" > > xlink:href="Ostern_DIN Lang_back.tif" > /> > > > > > > > > > >
Fop 0.95beta - svg tif images
Dearest FOP/Batik fans (I am unclear where to post...sorry), With FOP 0.94/Batik 1.6, the fo/svg fragment listed lower worked ok. I switched to FOP0.95beta (which seems to come with a newer batik version, 1.7) and get SEVERE: SVG ErrorCannot load image (no suitable loader/converter combination available) for file:/lap-pc-migration/Downloads/RenderX/ inx2fo/mda/./Ostern_DIN Lang_back.tif (image/tiff) org.apache.xmlgraphics.image.loader.ImageException: Cannot load image (no suitable loader/converter combination available) for file:/lap-pc- migration/Downloads/RenderX/inx2fo/mda/./Ostern_DIN Lang_back.tif (image/tiff) at org .apache .xmlgraphics.image.loader.ImageManager.getImage(ImageManager.java:248) I am guessing this is all about the new image library, but I am not sure really and I am even less sure how to deal with this. Anyone any thoughts? Tx! Peter FO fragment transform="matrix(1, 0, 0, 1, -159.24, -441.960004)"> http://www.w3.org/1999/xlink"; x="0" y="0" width="318.48" height="883.92001" fill="none" stroke="none" xlink:href="Ostern_DIN Lang_back.tif" /> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Large EPs File
Hello, I have a problem with large eps files using fop. The EPs Fiel is about 300MB large. It has to be so large because it is used for a Poster in A1 (about 80 x 60 cm). I am embedding the eps file as an externalgraphic in a table. May be someone can give me a hint how to embed that file in a more memory saving way. The Application that uses FOP is developed on a Windows system and will be installed for production on a Red Hat Linux System. I have already used the java -Xmx option with 1550M. But the OutofMemeory Exception still appears. Kind regards Robert Eberhardt
Re: FOP 0.95 BETA - java.lang.NullPointerException
Hi, I submitted a bug and uploaded a test.fo which may be causing the issue. Bug#: 44796 Regards, Andreas Delmelle-2 wrote: > > On Apr 4, 2008, at 15:34, bonekrusher wrote: > > Hi > >> Not sure if this should be posted under bugs or sent to the list. >> If I am in >> error, please let me know. >> >> Running a transformation under FOP 0.95 BETA I receive the below >> error. >> However under FOP .094 I can produce a PDF. > > Can you post (or otherwise share) the FO with us, so that we can look > into it? If you want, you can open up a Bugzilla-entry and attach the > FO there. > > Thanks > > Andreas > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/FOP-0.95-BETA---java.lang.NullPointerException-tp16491465p16608358.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache FOP: Embedding PDF, EPS
I'm sorry for the confusion. That was a mistake. There were changes necessary in FOP to allow this plug-in. I've done them around the time 0.94 was released but they were done on a branch which was merged back into Trunk only after the 0.94 release. Somehow I seem to have messed that up when I released new versions of the plug-in. What's in the README file is correct. The download page is wrong. I'll fix that when I'm back home after ApacheCon. Basically, you should probably move to 0.95beta and use the latest version of the plug-in. It has a few important bugfixes. On 10.04.2008 10:34:42 Oliver Hirschi wrote: > "Jeremias Maerki" <[EMAIL PROTECTED]> schrieb im Newsbeitrag > news:[EMAIL PROTECTED] > > > > On 07.04.2008 13:08:33 Peter Coppens wrote: > >> For pdf, checkout > >> http://www.jeremias-maerki.ch/development/fop/index.html > > > > Yep. ;-) > > I'm really confused. Due to I am using fop-0.94, I downloaded > fop-pdf-images-1.0-bin.zip, extract it and copied the two jars > "fop-pdf-images-1.0.jar" and "PDFBox-0.7.4-dev.jar" into my classpath > and I still get the same error: > -- > [WARN] No ImageReader found for file:/t:/__Oli/000/2.pdf > [ERROR] No ImageReader for this type of image (t:\__Oli\000\2.pdf) > [ERROR] Image not available: t:\__Oli\000\2.pdf > -- > > The relevant extract of the fo is: > -- > > content-height="96.33114mm"/> > > -- > > The 2.pdf containes only one page, but I tried also with > src="t:\__Oli\000\2.pdf#page=1" without success. > > In the README of the downloaded fop-pdf-images-1.0-bin.zip, I saw the > following information: > -- > * This package does not work with FOP 0.93, 0.94 or any earlier > version. > You will need a later release or the code from FOP Trunk. > -- > What about that? On the download page is written "Version 1.0 (for > Apache FOP 0.94)"? > > Thanks in advanced, > Oliver Hirschi > Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache FOP: Embedding PDF, EPS
"Peter Coppens" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] For pdf, checkout http://www.jeremias-maerki.ch/development/fop/index.html I'm really confused. Due to I am using fop-0.94, I downloaded fop-pdf-images-1.0-bin.zip, extract it and copied the two jars "fop-pdf-images-1.0.jar" and "PDFBox-0.7.4-dev.jar" into my classpath and I still get the same error: -- [WARN] No ImageReader found for file:/t:/__Oli/000/2.pdf [ERROR] No ImageReader for this type of image (t:\__Oli\000\2.pdf) [ERROR] Image not available: t:\__Oli\000\2.pdf -- The relevant extract of the fo is: -- content-height="96.33114mm"/> -- The 2.pdf containes only one page, but I tried also with src="t:\__Oli\000\2.pdf#page=1" without success. In the README of the downloaded fop-pdf-images-1.0-bin.zip, I saw the following information: -- * This package does not work with FOP 0.93, 0.94 or any earlier version. You will need a later release or the code from FOP Trunk. -- What about that? On the download page is written "Version 1.0 (for Apache FOP 0.94)"? Thanks in advanced, Oliver Hirschi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache FOP: Embedding PDF, EPS
"Jeremias Maerki" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] On 07.04.2008 13:08:33 Peter Coppens wrote: For pdf, checkout http://www.jeremias-maerki.ch/development/fop/index.html Yep. ;-) I'm really confused. Due to I am using fop-0.94, I downloaded fop-pdf-images-1.0-bin.zip, extract it and copied the two jars "fop-pdf-images-1.0.jar" and "PDFBox-0.7.4-dev.jar" into my classpath and I still get the same error: -- [WARN] No ImageReader found for file:/t:/__Oli/000/2.pdf [ERROR] No ImageReader for this type of image (t:\__Oli\000\2.pdf) [ERROR] Image not available: t:\__Oli\000\2.pdf -- The relevant extract of the fo is: -- content-height="96.33114mm"/> -- The 2.pdf containes only one page, but I tried also with src="t:\__Oli\000\2.pdf#page=1" without success. In the README of the downloaded fop-pdf-images-1.0-bin.zip, I saw the following information: -- * This package does not work with FOP 0.93, 0.94 or any earlier version. You will need a later release or the code from FOP Trunk. -- What about that? On the download page is written "Version 1.0 (for Apache FOP 0.94)"? Thanks in advanced, Oliver Hirschi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]