Re: trouble positionning an image on the top of my document
Le 10 sept. 06 à 12:45, Dirk Bromberg a écrit : Hi, try to set font-size="0pt" at the fo:block where the image is in. it works thank you ! Dirk Olivier Mansour schrieb: Hello I have a problem with fop 0.92. I try to set a picture on the top left of the page. It's obvious but I have a little white space on the top of the PDF doc. Here the fo file and the pdf given An idea ? Thank you ! - --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: fop-users- [EMAIL PROTECTED] - 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]
simulating line breaks with fo
Hey I'm trying desepratly to simulate line breaks with FOP 0.92. I have an xsl style sheet looks like this : Actually it works fine with just one . But adding more has no effect :-( Thank you Olivier -- Olivier Mansour http://www.clever-age.com Clever Age Lyon - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 4 78 89 46 45 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: simulating line breaks with fo
Thank you non of those tricks are really working : insert a line break but the second one has no effect (so you can't do ) insert too much spaces :-( Olivier Le 22 sept. 06 à 10:10, Peter a écrit : An often used "trick" one finds in mailing lists (e.g. http://www.biglist.com/lists/xsl-list/archives/200306/ msg00445.html) is to use Hth, Peter -Original Message- From: Olivier Mansour [mailto:[EMAIL PROTECTED] Sent: vrijdag 22 september 2006 10:00 To: fop-users@xmlgraphics.apache.org Subject: simulating line breaks with fo Hey I'm trying desepratly to simulate line breaks with FOP 0.92. I have an xsl style sheet looks like this : Actually it works fine with just one . But adding more has no effect :-( Thank you Olivier -- Olivier Mansour http://www.clever-age.com Clever Age Lyon - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 4 78 89 46 45 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - 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] -- Olivier Mansour http://www.clever-age.com Clever Age Lyon - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 4 78 89 46 45 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: simulating line breaks with fo
Le 22 sept. 06 à 10:26, Peter a écrit : The template stylesheet I am using which does the trick for me is Perhaps that works for you? It works just great ! Thanks a lot Peter Peter -Original Message- From: Olivier Mansour [mailto:[EMAIL PROTECTED] Sent: vrijdag 22 september 2006 10:24 To: fop-users@xmlgraphics.apache.org Subject: Re: simulating line breaks with fo Thank you non of those tricks are really working : insert a line break but the second one has no effect (so you can't do ) insert too much spaces :-( Olivier Le 22 sept. 06 à 10:10, Peter a écrit : An often used "trick" one finds in mailing lists (e.g. http://www.biglist.com/lists/xsl-list/archives/200306/ msg00445.html) is to use Hth, Peter -Original Message- From: Olivier Mansour [mailto:[EMAIL PROTECTED] Sent: vrijdag 22 september 2006 10:00 To: fop-users@xmlgraphics.apache.org Subject: simulating line breaks with fo Hey I'm trying desepratly to simulate line breaks with FOP 0.92. I have an xsl style sheet looks like this : Actually it works fine with just one . But adding more has no effect :-( Thank you Olivier -- Olivier Mansour http://www.clever-age.com Clever Age Lyon - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 4 78 89 46 45 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: fop-users- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: fop-users- [EMAIL PROTECTED] -- Olivier Mansour http://www.clever-age.com Clever Age Lyon - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 4 78 89 46 45 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - 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] -- Olivier Mansour http://www.clever-age.com Clever Age Lyon - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 4 78 89 46 45 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
converting a pdf using imagemagick
I know it's maybe not the reight place to ask this question but I am sure lot of people had be confronted to this. Using this pdf (see attachement) nproduce by fop, I'am trying to produce png file. But the produced image is'nt containing any specials chars like è or ç etc all is converted in e or c and so on (see attachement) I have tried to use the encoding option but without effect. Thank you by advance. OIivier test-low.pdf Description: Adobe PDF document -- Olivier Mansour http://www.clever-age.com Clever Age Lyon - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 4 78 89 46 45 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
PNG renderer - does fop supporting fonts
Hey In my conf file I have those lines but FOP is ignoring my fonts when I run it : Font 'Arial, normal, 400' not found, Substituting with default font and so on ... An idea ? Thank you Olivier -- Olivier Mansour http://www.clever-age.com Clever Age Lyon - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 4 78 89 46 45 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PNG renderer - does fop supporting fonts
Le 3 nov. 06 à 12:58, Olivier Mansour a écrit : Hey In my conf file I have those lines but FOP is ignoring my fonts when I run it : Font 'Arial, normal, 400' not found, Substituting with default font and so on ... I am using fop 0.92 An idea ? Thank you Olivier -- Olivier Mansour http://www.clever-age.com Clever Age Lyon - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 4 78 89 46 45 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Olivier Mansour http://www.clever-age.com Clever Age Lyon - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 4 78 89 46 45 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PNG renderer - does fop supporting fonts
Le 3 nov. 06 à 13:02, Peter a écrit : Olivier, You have to use system fonts with the png renderer do you know how to add your own ttf fonts on Debian ? http://xmlgraphics.apache.org/fop/0.92/output.html#general-fonts ... Most FOP renderers use a FOP-specific system for font registration. However, the Java2D/AWT and print renderers use the Java AWT package, which gets its font information from the operating system registration. This can result in several differences, including actually using different fonts, and having different font metrics for the same font. The net effect is that the layout of a given FO document can be quite different between renderers that do not use the same font information. ... Peter -Original Message- From: Olivier Mansour [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 12:59 PM To: fop-users@xmlgraphics.apache.org Subject: PNG renderer - does fop supporting fonts Hey In my conf file I have those lines but FOP is ignoring my fonts when I run it : Font 'Arial, normal, 400' not found, Substituting with default font and so on ... An idea ? Thank you Olivier -- Olivier Mansour http://www.clever-age.com Clever Age Lyon - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 4 78 89 46 45 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: fop-users- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Olivier Mansour http://www.clever-age.com Clever Age Lyon - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 4 78 89 46 45 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PNG renderer - does fop supporting fonts
Le 3 nov. 06 à 13:02, Peter a écrit : Olivier, You have to use system fonts with the png renderer regarding to http://www.mail-archive.com/fop- [EMAIL PROTECTED]/msg04834.html do I have to use fop-trunk ? http://xmlgraphics.apache.org/fop/0.92/output.html#general-fonts ... Most FOP renderers use a FOP-specific system for font registration. However, the Java2D/AWT and print renderers use the Java AWT package, which gets its font information from the operating system registration. This can result in several differences, including actually using different fonts, and having different font metrics for the same font. The net effect is that the layout of a given FO document can be quite different between renderers that do not use the same font information. ... Peter -Original Message- From: Olivier Mansour [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 12:59 PM To: fop-users@xmlgraphics.apache.org Subject: PNG renderer - does fop supporting fonts Hey In my conf file I have those lines but FOP is ignoring my fonts when I run it : Font 'Arial, normal, 400' not found, Substituting with default font and so on ... An idea ? Thank you Olivier -- Olivier Mansour http://www.clever-age.com Clever Age Lyon - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 4 78 89 46 45 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: fop-users- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Olivier Mansour http://www.clever-age.com Clever Age Lyon - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 4 78 89 46 45 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
png renderer and multiples page
Hey Another beginner question I use fop 0.92 but I'am consedreing moving to trunk soon I tried to generate png from a fo file using command line works fine : java -jar fop.jar -fo /tmp/test.fo -png ../../../web/uploads/test.png give severals png test.png, test2.png - one png for each page. I am now trying using the API trought php-java-bridge (quite similar if we where using java) here my code : // Instanciate & configure FOP user agent $fop_factory = new JavaClass ('org.apache.fop.apps.FopFactory'); $fop_factory = $fop_factory->newInstance(); $fop_factory->setUserConfig(new Java('java.io.File', sfConfig::get('sf_app_config_dir').'/fop.xconf')); $fop_ua = $fop_factory->newFOUserAgent(); /* * Setup output stream. Note: Using BufferedOutputStream * for performance reasons (helpful with FileOutputStreams). */ $out = new Java('java.io.FileOutputStream', $path_to_png); $out = new Java('java.io.BufferedOutputStream', $out); // Construct fop with desired output format $fop_mime_constants = new JavaClass ('org.apache.fop.apps.MimeConstants'); $fop = $fop_factory->newFop($fop_mime_constants- >MIME_PNG, $fop_ua, $out); // Setup JAXP using identity transformer $transformer_factory = new JavaClass ('javax.xml.transform.TransformerFactory'); $transformer_factory = $transformer_factory- >newInstance(); $transformer = $transformer_factory->newTransformer(); // Setup input stream $src = new Java ('javax.xml.transform.stream.StreamSource', $path_to_fo); // Resulting SAX events (the generated FO) must be piped through to FOP $res = new Java('javax.xml.transform.sax.SAXResult', $fop->getDefaultHandler()); // Start XSLT transformation and FOP processing $transformer->transform($src, $res); the problem is just the first png is generated ! :-( An idea ? Thank you for your advices and making fop wich is great Olivier -- Olivier Mansour http://www.clever-age.com Clever Age Lyon - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 4 78 89 46 45 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: png renderer and multiples page
Le 6 nov. 06 à 14:55, Jeremias Maerki a écrit : Creating multiple PNG files is only supported if output is done to a file (seems to be the case here). In this case, you have to set the output file on the user agent in addition to the output stream: useragent.setOutputFile(new File("D:/out.png")); HTH thanks a lot , I will try this and report to the list Olivier On 04.11.2006 18:00:09 Olivier Mansour wrote: Hey Another beginner question I use fop 0.92 but I'am consedreing moving to trunk soon I tried to generate png from a fo file using command line works fine : java -jar fop.jar -fo /tmp/test.fo -png ../../../web/uploads/ test.png give severals png test.png, test2.png - one png for each page. I am now trying using the API trought php-java-bridge (quite similar if we where using java) here my code : // Instanciate & configure FOP user agent $fop_factory = new JavaClass ('org.apache.fop.apps.FopFactory'); $fop_factory = $fop_factory->newInstance(); $fop_factory->setUserConfig(new Java('java.io.File', sfConfig::get('sf_app_config_dir').'/fop.xconf')); $fop_ua = $fop_factory->newFOUserAgent(); /* * Setup output stream. Note: Using BufferedOutputStream * for performance reasons (helpful with FileOutputStreams). */ $out = new Java('java.io.FileOutputStream', $path_to_png); $out = new Java('java.io.BufferedOutputStream', $out); // Construct fop with desired output format $fop_mime_constants = new JavaClass ('org.apache.fop.apps.MimeConstants'); $fop = $fop_factory->newFop($fop_mime_constants- MIME_PNG, $fop_ua, $out); // Setup JAXP using identity transformer $transformer_factory = new JavaClass ('javax.xml.transform.TransformerFactory'); $transformer_factory = $transformer_factory- newInstance(); $transformer = $transformer_factory->newTransformer(); // Setup input stream $src = new Java ('javax.xml.transform.stream.StreamSource', $path_to_fo); // Resulting SAX events (the generated FO) must be piped through to FOP $res = new Java('javax.xml.transform.sax.SAXResult', $fop->getDefaultHandler()); // Start XSLT transformation and FOP processing $transformer->transform($src, $res); the problem is just the first png is generated ! :-( An idea ? Thank you for your advices and making fop wich is great Olivier -- Olivier Mansour http://www.clever-age.com Clever Age Lyon - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 4 78 89 46 45 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ Jeremias Maerki ------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Olivier Mansour http://www.clever-age.com Clever Age Lyon - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 4 78 89 46 45 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: png renderer and multiples page
Le 6 nov. 06 à 14:55, Jeremias Maerki a écrit : Creating multiple PNG files is only supported if output is done to a file (seems to be the case here). In this case, you have to set the output file on the user agent in addition to the output stream: useragent.setOutputFile(new File("D:/out.png")); I have added this line after getting my user agent (with newFOUserAgent()) : $file_out = new Java ('java.io.File', $path_to_png); $fop_ua->setOutputFile($file_out); I have now an error on my transform action : java.lang.Exception: Invoke failed: [o(TransformerImpl)]->transform ((Source)o(StreamSource), (Result)o(SAXResult)). Cause: javax.xml.transform.TransformerException: java.lang.NullPointerException Responsible VM: [EMAIL PROTECTED]:// java.sun.com/ at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform (TransformerImpl.java:651) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform (TransformerImpl.java:281) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1073) at php.java.bridge.Request.handleRequest(Request.java:499) at php.java.bridge.Request.handleRequests(Request.java:544) at php.java.bridge.JavaBridge.run(JavaBridge.java:178) at php.java.bridge.BaseThreadPool$Delegate.run(BaseThreadPool.java:37) Caused by: javax.xml.transform.TransformerException: java.lang.NullPointerException ... 11 more Caused by: java.lang.NullPointerException at org.apache.fop.render.bitmap.PNGRenderer.stopRenderer (PNGRenderer.java:123) at org.apache.fop.area.RenderPagesModel.endDocument (RenderPagesModel.java:240) at org.apache.fop.area.AreaTreeHandler.endDocument(AreaTreeHandler.java: 357) at org.apache.fop.fo.FOTreeBuilder.endDocument (FOTreeBuilder.java:170) at com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.endDocument (ToXMLSAXHandler.java:182) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endDocument (AbstractSAXParser.java:769) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.endEntity (XMLDocumentScannerImpl.java:560) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.endEntity (XMLEntityManager.java:1779) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load (XMLEntityScanner.java:1758) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipSpaces (XMLEntityScanner.java:1274) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl $TrailingMiscDispatcher.dispatch(XMLDocumentScannerImpl.java:1247) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.s canDocument(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse (XMLParser.java:148) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse (AbstractSAXParser.java:1242) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformId entity(TransformerImpl.java:560) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform (TransformerImpl.java:642) ... 10 more an idea ? HTH On 04.11.2006 18:00:09 Olivier Mansour wrote: Hey Another beginner question I use fop 0.92 but I'am consedreing moving to trunk soon I tried to generate png from a fo file using command line works fine : java -jar fop.jar -fo /tmp/test.fo -png ../../../web/uploads/ test.png give severals png test.png, test2.png - one png for each page. I am now trying using the API trought php-java-bridge (quite similar if we where using java) here my code : // Instanciate & configure FOP user agent $fop_factory = new JavaClass ('org.apache.fop.apps.FopFactory'); $fop_factory = $fop_factory->newInstance(); $fop_factory->setUserConfig(new Java('java.io.File', sfConfig::get('sf_app_config_dir').'/fop.xconf')); $fop_ua = $fop_factory->newFOUserAgent(); /* * Setup output stream. Note: Using BufferedOutputStream * for performance reasons (helpful with FileOutputStreams). */ $out = new Java('java.io.FileOutputStream', $path_to_png); $out = new Java('java.io.BufferedOutputStream', $out); // Construct fop with desired output format $fop_mime_constants = new JavaClass ('org.apache
Re: I want to display text in vertical format in PDF
Le 8 nov. 06 à 04:59, Kalpesh A.Jain a écrit : Dear Sir, My name is Kalpesh A. Jain. Currently working as Software Developer in Network Solution Pvt. Ltd., Bangalore, India. In FOP latest version (i.e., 0.20.5), Writing-mode-related Properties doest not support. I want to display text in vertical format in PDF through java how? Any other solution to display. Please help me out. I think you have to upgrade to fop 0.92 and user reference- orientation in a fo:block-container Olivier The code is in xsl as: which I have written: Thanks With Regards, Kalpesh A. Jain SOFTWARE ENGINEER GLOBAL MANAGEMENT CENTER (GMC) Network Solutions Pvt. Ltd. - An IBM Company Email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Olivier Mansour http://www.clever-age.com Clever Age Lyon - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 4 78 89 46 45 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: png renderer and multiples page
Le 8 nov. 06 à 09:42, Olivier Mansour a écrit : Le 6 nov. 06 à 14:55, Jeremias Maerki a écrit : Creating multiple PNG files is only supported if output is done to a file (seems to be the case here). In this case, you have to set the output file on the user agent in addition to the output stream: useragent.setOutputFile(new File("D:/out.png")); I have added this line after getting my user agent (with newFOUserAgent()) : $file_out = new Java ('java.io.File', $path_to_png); $fop_ua->setOutputFile($file_out); I have now an error on my transform action : java.lang.Exception: Invoke failed: [o(TransformerImpl)]->transform ((Source)o(StreamSource), (Result)o(SAXResult)). Cause: javax.xml.transform.TransformerException: java.lang.NullPointerException Responsible VM: [EMAIL PROTECTED]:// java.sun.com/ at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform (TransformerImpl.java:651) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform (TransformerImpl.java:281) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1073) at php.java.bridge.Request.handleRequest(Request.java:499) at php.java.bridge.Request.handleRequests(Request.java:544) at php.java.bridge.JavaBridge.run(JavaBridge.java:178) at php.java.bridge.BaseThreadPool$Delegate.run(BaseThreadPool.java:37) Caused by: javax.xml.transform.TransformerException: java.lang.NullPointerException ... 11 more Caused by: java.lang.NullPointerException at org.apache.fop.render.bitmap.PNGRenderer.stopRenderer (PNGRenderer.java:123) at org.apache.fop.area.RenderPagesModel.endDocument (RenderPagesModel.java:240) at org.apache.fop.area.AreaTreeHandler.endDocument (AreaTreeHandler.java:357) at org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:170) at com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.endDocument (ToXMLSAXHandler.java:182) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endDocume nt(AbstractSAXParser.java:769) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.endEnti ty(XMLDocumentScannerImpl.java:560) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.endEntity (XMLEntityManager.java:1779) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load (XMLEntityScanner.java:1758) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipSpaces (XMLEntityScanner.java:1274) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl $TrailingMiscDispatcher.dispatch(XMLDocumentScannerImpl.java:1247) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl .scanDocument(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse (XMLParser.java:148) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse (AbstractSAXParser.java:1242) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform Identity(TransformerImpl.java:560) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform (TransformerImpl.java:642) ... 10 more someone has an example of code used to transform a FO file to several png files with FOP ? I'am a bit confused right now ;-) Thank you Olivier an idea ? HTH On 04.11.2006 18:00:09 Olivier Mansour wrote: Hey Another beginner question I use fop 0.92 but I'am consedreing moving to trunk soon I tried to generate png from a fo file using command line works fine : java -jar fop.jar -fo /tmp/test.fo -png ../../../web/uploads/ test.png give severals png test.png, test2.png - one png for each page. I am now trying using the API trought php-java-bridge (quite similar if we where using java) here my code : // Instanciate & configure FOP user agent $fop_factory = new JavaClass ('org.apache.fop.apps.FopFactory'); $fop_factory = $fop_factory->newInstance(); $fop_factory->setUserConfig(new Java('java.io.File', sfConfig::get('sf_app_config_dir').'/fop.xconf')); $fop_ua = $fop_factory->newFOUserAgent(); /* * Setup output stream. Note: Using BufferedOutputStream * for performance reasons (helpful with FileOutputStreams). */ $out = new Java('java.io.FileOutpu
pdf cmyk and transparency
Hello Is it possible to output a CMYK PDF whith an external graphic containing aeras with transparency ? Is png limited to RVB color space ? Thank you Olivier -- Olivier Mansour http://www.clever-age.com Clever Age Lyon - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 4 78 89 46 45 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pdf cmyk and transparency
Le 9 nov. 06 à 10:54, Chris Bowditch a écrit : Olivier Mansour wrote: Hello Is it possible to output a CMYK PDF whith an external graphic containing aeras with transparency ? Is png limited to RVB color space ? I believe only JPEG supports CMYK in FOP. Not sure if JPEG supports transparency. I've used GIF when I needed transparency. Thank you GIF can't be in a CMYK color space. For fop user who produce CMYK PDF, do you use transparency ? Oliiver Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Olivier Mansour http://www.clever-age.com Clever Age Lyon - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 4 78 89 46 45 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pdf cmyk and transparency
Le 9 nov. 06 à 11:28, Chris Bowditch a écrit : Olivier Mansour wrote: GIF can't be in a CMYK color space. For fop user who produce CMYK PDF, do you use transparency ? Thats right GIF doesn't support CMYK, at least not for FOP. I have never needed to have an image with both CMYK and transparency. Il think, TIFF format may be the trick. I'am investigating on that point Thank you Olivier Sorry I can't help anymore, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Olivier Mansour http://www.clever-age.com Clever Age Lyon - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 4 78 89 46 45 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: png renderer and multiples page
Le 8 nov. 06 à 15:33, Jeremias Maerki a écrit : The NullPointerException due to the fact that the code doesn't expect that no ImageWriter for PNG is found. And that seems to be the case in your environment. In a perfect world, you'd get a nice message that no ImageWriter could be found, but that wouldn't help either in this case. The question is why there's no ImageWriter. Maybe this php-java-bridge you use does something weird when setting up the classpath. I don't have any other explanation because the internal PNG writer is in the xmlgraphics-commons.jar which is obviously there (ImageWriterRegistry itself seems to work) but the "Service" class cannot discover the plug-in files in the META-INF directory. Correct ! I had trouble to declare the xmlgraphics-common jar. Solved now Thanks a lot Olivier Don't know how to help here without knowing about PHP and php-java-bridge. Maybe someone else can help. You asked about an example for multiple PNG files. I attached one which runs fine on my side. On 08.11.2006 13:08:01 Olivier Mansour wrote: Le 8 nov. 06 à 09:42, Olivier Mansour a écrit : Le 6 nov. 06 à 14:55, Jeremias Maerki a écrit : Creating multiple PNG files is only supported if output is done to a file (seems to be the case here). In this case, you have to set the output file on the user agent in addition to the output stream: useragent.setOutputFile(new File("D:/out.png")); I have added this line after getting my user agent (with newFOUserAgent()) : $file_out = new Java ('java.io.File', $path_to_png); $fop_ua->setOutputFile($file_out); I have now an error on my transform action : java.lang.Exception: Invoke failed: [o(TransformerImpl)]->transform ((Source)o(StreamSource), (Result)o(SAXResult)). Cause: javax.xml.transform.TransformerException: java.lang.NullPointerException Responsible VM: [EMAIL PROTECTED]:// java.sun.com/ at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transfo rm (TransformerImpl.java:651) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transfo rm (TransformerImpl.java:281) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1073) at php.java.bridge.Request.handleRequest(Request.java:499) at php.java.bridge.Request.handleRequests(Request.java:544) at php.java.bridge.JavaBridge.run(JavaBridge.java:178) at php.java.bridge.BaseThreadPool$Delegate.run(BaseThreadPool.java:37) Caused by: javax.xml.transform.TransformerException: java.lang.NullPointerException ... 11 more Caused by: java.lang.NullPointerException at org.apache.fop.render.bitmap.PNGRenderer.stopRenderer (PNGRenderer.java:123) at org.apache.fop.area.RenderPagesModel.endDocument (RenderPagesModel.java:240) at org.apache.fop.area.AreaTreeHandler.endDocument (AreaTreeHandler.java:357) at org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:170) at com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.endDocume nt (ToXMLSAXHandler.java:182) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endDocu me nt(AbstractSAXParser.java:769) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.endEn ti ty(XMLDocumentScannerImpl.java:560) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.endEntity (XMLEntityManager.java:1779) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load (XMLEntityScanner.java:1758) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipSpaces (XMLEntityScanner.java:1274) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl $TrailingMiscDispatcher.dispatch(XMLDocumentScannerImpl.java:1247) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerIm pl .scanDocument(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse (XMLParser.java:148) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse (AbstractSAXParser.java:1242) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transfo rm Identity(TransformerImpl.java:560) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transfo rm (TransformerImpl.java:642) ... 10 more someone has an example of code used to transform a FO file to several png files with FOP ? I'am a bit confused right now ;-) Thank you Olivier an idea ? HTH On 04.11.2006 18:00:09 Olivier Mansour wrote: Hey Another beginner question I use fop 0.92 but I'am consedreing
Re: png renderer and multiples page
Hey again I have a question for PNG rendering. Is it possible to render just a given page from a multipage fo file ? If yes, can you provide an example ? Thanks a lot Olivier Le 9 nov. 06 à 15:40, Olivier Mansour a écrit : Le 8 nov. 06 à 15:33, Jeremias Maerki a écrit : The NullPointerException due to the fact that the code doesn't expect that no ImageWriter for PNG is found. And that seems to be the case in your environment. In a perfect world, you'd get a nice message that no ImageWriter could be found, but that wouldn't help either in this case. The question is why there's no ImageWriter. Maybe this php-java- bridge you use does something weird when setting up the classpath. I don't have any other explanation because the internal PNG writer is in the xmlgraphics-commons.jar which is obviously there (ImageWriterRegistry itself seems to work) but the "Service" class cannot discover the plug-in files in the META-INF directory. Correct ! I had trouble to declare the xmlgraphics-common jar. Solved now Thanks a lot Olivier Don't know how to help here without knowing about PHP and php-java-bridge. Maybe someone else can help. You asked about an example for multiple PNG files. I attached one which runs fine on my side. -- Olivier Mansour http://www.clever-age.com Clever Age Lyon - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 4 78 89 46 45 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: png renderer and multiples page
Le 12 nov. 06 à 12:32, Jeremias Maerki a écrit : No, only the PrintRenderer has something like that. But I think it should be simple to port this over to the PNGRenderer. You've got the sources... Thanks Finally I simply made it with an xsl sheet Olivier FoToOnePageFo.xsl Description: Binary data On 09.11.2006 16:06:31 Olivier Mansour wrote: Hey again I have a question for PNG rendering. Is it possible to render just a given page from a multipage fo file ? If yes, can you provide an example ? Thanks a lot Olivier Le 9 nov. 06 à 15:40, Olivier Mansour a écrit : Le 8 nov. 06 à 15:33, Jeremias Maerki a écrit : The NullPointerException due to the fact that the code doesn't expect that no ImageWriter for PNG is found. And that seems to be the case in your environment. In a perfect world, you'd get a nice message that no ImageWriter could be found, but that wouldn't help either in this case. The question is why there's no ImageWriter. Maybe this php-java- bridge you use does something weird when setting up the classpath. I don't have any other explanation because the internal PNG writer is in the xmlgraphics-commons.jar which is obviously there (ImageWriterRegistry itself seems to work) but the "Service" class cannot discover the plug-in files in the META-INF directory. Correct ! I had trouble to declare the xmlgraphics-common jar. Solved now Thanks a lot Olivier Don't know how to help here without knowing about PHP and php-java-bridge. Maybe someone else can help. You asked about an example for multiple PNG files. I attached one which runs fine on my side. 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]
alteration of images using png renderer
Hello I am in trouble while rendering image through fop png renderer. Here an exemple : original image (used in backgound) http://extranet.clever-age.net/olivier/fop-png/orig.jpg and the result http://extranet.clever-age.net/olivier/fop-png/fop.png an idea ? Thanks Olivier -- Olivier Mansour http://www.clever-age.com Clever Age Lyon - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 4 78 89 46 45 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: alteration of images using png renderer
Le 17 nov. 06 à 21:02, Olivier Mansour a écrit : Hello I am in trouble while rendering image through fop png renderer. Here an exemple : original image (used in backgound) http://extranet.clever-age.net/olivier/fop-png/orig.jpg and the result http://extranet.clever-age.net/olivier/fop-png/fop.png an idea ? I am using fop trunk do I need to proceed with batik to include the file ? Is there another appropriate format ? Thanks Olivier Thanks Olivier -- Olivier Mansour http://www.clever-age.com Clever Age Lyon - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 4 78 89 46 45 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - 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: Font in Images
Le 13 déc. 06 à 13:47, Kris Wolff a écrit : Hi again, ok my last question is: how do i enable fonts for images? i render a pdf and a image (currently png, but it is not fixed, so if it possible only in tiff, its ok for me). the pdf works with fonts(see last post), but the png does not. i try: in configuration, but without any effects. PNG renderer use AWT so you have to put your ttf file in the jre font directory. It just work but unfortunatly does not render exactly like PDF. Olivier Thanx, you are very kind. kris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Olivier Mansour http://www.clever-age.com Clever Age Lyon - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 4 78 89 46 45 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
word-spacing
Hello does FOP deal with the word-spacing attribute in blocks ? thx you Olivier -- Olivier Mansour http://www.clever-age.com Clever Age Lyon - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 4 78 89 46 45 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FOP, CMYK and PDF
Hey We are evaluating fop solution to produce PDF with CMYK color-space use. I have found a solution to convert RGB definition for text-element (see : http://tinyurl.com/ewpxh) but when I import a CMJN jpg I have this error message : "Invalid ICC profile: java.lang.IllegalArgumentException: Invalid ICC Profile Data java.lang.IllegalArgumentException: Invalid ICC Profile Data"" Is there any solution to have a PDF output with CMYK ? Thanks a lot. Olivier -- Olivier Mansour http://www.clever-age.com Clever Age - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 1 53 34 66 10 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP, CMYK and PDF
Le 14 mars 06 à 16:53, Pierre-Yves Landuré a écrit : Hi olivier, at first, you have nothing to do special to use CMYK jpg with FOP 0.20.5. It should work the same as RGB jpg. But you should know that FOP 0.20.5 as a bug with rgb color : if a component is less that 12, it set it to 0. So that : rgb(24, 12, 50) became rgb(24, 0, 50) inside PDF. Be aware of this if you want perfect colors. On my own, i've written a little java code that can replace RGB colors by CMYK ones inside a PDF. You should find it at PDFBox website. (PDFBox is a java library to manipulate PDF). I'm currently using FOP 0.20.5 to produce CMYK PDF. Thanks for your answer. I have already tested your code and it works fine for texts elements. But do you import CMYK pictures on your PDF ? If you don't, how produce CMYK PDF with RVB pictures ? That's my last problem. We use FOP 0.91 maybe its a clue. Someone was talking about free third part tools to convert RVB PDF to CMYK PDF but I can't find one. An idea ? Thank you Olivier Pierre-Yves Olivier Mansour a écrit : Hey We are evaluating fop solution to produce PDF with CMYK color- space use. I have found a solution to convert RGB definition for text- element (see : http://tinyurl.com/ewpxh) but when I import a CMJN jpg I have this error message : "Invalid ICC profile: java.lang.IllegalArgumentException: Invalid ICC Profile Data java.lang.IllegalArgumentException: Invalid ICC Profile Data"" Is there any solution to have a PDF output with CMYK ? Thanks a lot. Olivier -- Olivier Mansour http://www.clever-age.com Clever Age - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 1 53 34 66 10 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: fop-users- [EMAIL PROTECTED] -- Olivier Mansour http://www.clever-age.com Clever Age - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 1 53 34 66 10 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP, CMYK and PDF
Le 14 mars 06 à 17:29, Pierre-Yves Landuré a écrit : Hi, you should search for pstill : this tool can convert RGB PDF to CMYK ones, but it is not free. For CMYK PDF with images, you must use CMYK images as input, so that FOP output the PDF already partially in CMYK. You can not actually produce CMYK pdf without using CMYK jpgs as input. I think that you should take a look at image magick for converting your images. This tool do pretty good RGB to CMYK conversion. Hope this help yes thank you ! to summarize the workaround : - with FOP 0.91 version and a CMYK JPEG in FO file, the FO file won't compile and output this error : " Invalid ICC profile: java.lang.IllegalArgumentException: Invalid ICC Profile Data java.lang.IllegalArgumentException: Invalid ICC Profile Data" - with FOP 0.20.5 the FO file compile and I can use succefully http:// www.pdfbox.org/commandlineutilities/ConvertColorspace.html to produce a final CMYK PDF like Pierre Yves said Maybe switching the compilation error to a simple warning will be usefull thank you Olivier Pierre-Yves Olivier Mansour a écrit : Le 14 mars 06 à 16:53, Pierre-Yves Landuré a écrit : Hi olivier, at first, you have nothing to do special to use CMYK jpg with FOP 0.20.5. It should work the same as RGB jpg. But you should know that FOP 0.20.5 as a bug with rgb color : if a component is less that 12, it set it to 0. So that : rgb(24, 12, 50) became rgb(24, 0, 50) inside PDF. Be aware of this if you want perfect colors. On my own, i've written a little java code that can replace RGB colors by CMYK ones inside a PDF. You should find it at PDFBox website. (PDFBox is a java library to manipulate PDF). I'm currently using FOP 0.20.5 to produce CMYK PDF. Thanks for your answer. I have already tested your code and it works fine for texts elements. But do you import CMYK pictures on your PDF ? If you don't, how produce CMYK PDF with RVB pictures ? That's my last problem. We use FOP 0.91 maybe its a clue. Someone was talking about free third part tools to convert RVB PDF to CMYK PDF but I can't find one. An idea ? Thank you Olivier Pierre-Yves Olivier Mansour a écrit : Hey We are evaluating fop solution to produce PDF with CMYK color- space use. I have found a solution to convert RGB definition for text- element (see : http://tinyurl.com/ewpxh) but when I import a CMJN jpg I have this error message : "Invalid ICC profile: java.lang.IllegalArgumentException: Invalid ICC Profile Data java.lang.IllegalArgumentException: Invalid ICC Profile Data"" Is there any solution to have a PDF output with CMYK ? Thanks a lot. Olivier -- Olivier Mansour http://www.clever-age.com Clever Age - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 1 53 34 66 10 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ --- -- To unsubscribe, e-mail: fop-users- [EMAIL PROTECTED] For additional commands, e-mail: fop-users- [EMAIL PROTECTED] -- Olivier Mansour http://www.clever-age.com Clever Age - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 1 53 34 66 10 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: fop-users- [EMAIL PROTECTED] -- Olivier Mansour http://www.clever-age.com Clever Age - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 1 53 34 66 10 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP, CMYK and PDF
Actually it's a mistake A good JPEG with with CMYK color profil is OK without error and warning. So, using FOP and 0.91 and pdfbox I can produce goof CMYK PDF. Thanks to all Olivier Le 15 mars 06 à 09:29, Jeremias Maerki a écrit : It would be good if you could post the offending JPEG file, so we can fix the problem. If it works in 0.20.5 but doesn't in the latest release, we should fix it. On 14.03.2006 17:58:20 Olivier Mansour wrote: to summarize the workaround : - with FOP 0.91 version and a CMYK JPEG in FO file, the FO file won't compile and output this error : " Invalid ICC profile: java.lang.IllegalArgumentException: Invalid ICC Profile Data java.lang.IllegalArgumentException: Invalid ICC Profile Data" - with FOP 0.20.5 the FO file compile and I can use succefully http:// www.pdfbox.org/commandlineutilities/ConvertColorspace.html to produce a final CMYK PDF like Pierre Yves said Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Olivier Mansour http://www.clever-age.com Clever Age - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 1 53 34 66 10 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem to import TIFF to produce PDF doc
Hey is it possible to import CMJN Tiff in PDF docs. I have this error while generating my PDF : java.lang.IllegalArgumentException: Raster ByteInterleavedRaster: width = 2600 height = 3628 #numDataElements 4 dataOff[0] = 0 is incompatible with ColorModel ColorModel: #pixelBits = 8 numComponents = 1 color space = [EMAIL PROTECTED] transparency = 1 has alpha = false isAlphaPre = false thanks in adavance Olivier -- Olivier Mansour http://www.clever-age.com Clever Age Lyon - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 4 78 89 46 45 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem to import TIFF to produce PDF doc
Le 31 mars 06 à 12:09, Jeremias Maerki a écrit : I assume that CMJN is the French equivalent of CMYK, right? I had to ask Google to find out. OMG ! so sorry for that You don't say what FOP version you're working with. 0.91 I've just done a little test using FOP Trunk and the same happens. The TIFF codec from Batik doesn't seem to properly support CMYK TIFFs. If I disable the "tiffImage" provider (the Batik codec) in org.apache.fop.image.FopFactory the image is processed with no errors but it is inverted and internally converted to sRGB. I guess that's not what you want. So, the answer is no, CMYK TIFF are currently not supported. However, if you can convert the TIFF into a CMYK JPEG, it should work. okay (yes it's work with JPEG) I have my answer. Thanks to you Olivier HTH. On 31.03.2006 11:40:05 Olivier Mansour wrote: Hey is it possible to import CMJN Tiff in PDF docs. I have this error while generating my PDF : java.lang.IllegalArgumentException: Raster ByteInterleavedRaster: width = 2600 height = 3628 #numDataElements 4 dataOff[0] = 0 is incompatible with ColorModel ColorModel: #pixelBits = 8 numComponents = 1 color space = [EMAIL PROTECTED] transparency = 1 has alpha = false isAlphaPre = false Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Olivier Mansour http://www.clever-age.com Clever Age Lyon - conseil en architecture technique GSM: +33 6 11 03 23 77 Tél: +33 4 78 89 46 45 Clever Age vous invite à ses petits déjeuners du Jeudi http://www.clever-age.com/actualites/petits-dejeuners/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]