Re: Tripping over something converting from IF to PS
Hi Martin, What version of FOP are you using? Try using FOP 1.0 and see if this problem persists. If you send the IF file responsible, it'd give us a little more information. Thanks Mehdi On 23 May 2011 03:18, Martin Edge martin.e...@intellimail.com.au wrote: Hi Guys, Currently getting this dump when I try to convert from IF to PS. Can you confirm it’s NOT FOP I should be looking in (based on the stack trace). C:\dev\workspace_java\FOPc:\dev\workspace_java\fop\fop.cmd -c c:\dev\workspace_ java\fop\conf\fop.xconf -ifin c:\dev\intellimail_testing\X 009\0-EditedIntermediateFile.if -ps c:\dev\intellimail_testing\\0-EditedIntermediateFile.ps 23/05/2011 12:15:01 PM org.apache.fop.apps.FopFactoryConfigurator configure INFO: Default page-height set to: 11in 23/05/2011 12:15:01 PM org.apache.fop.apps.FopFactoryConfigurator configure INFO: Default page-width set to: 8.26in 23/05/2011 12:15:02 PM org.apache.fop.cli.Main startFOP SEVERE: Exception java.lang.NullPointerException at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:303) at org.apache.fop.cli.IFInputHandler.renderTo(IFInputHandler.java:77) at org.apache.fop.cli.Main.startFOP(Main.java:177) at org.apache.fop.cli.Main.main(Main.java:208) Caused by: java.lang.NullPointerException at org.apache.xmlgraphics.ps.PSGenerator.establishColorFromColor(PSGener ator.java:687) at org.apache.xmlgraphics.ps.PSGenerator.convertColorToPS(PSGenerator.ja va:676) at org.apache.xmlgraphics.ps.PSGenerator.useColor(PSGenerator.java:644) at org.apache.fop.render.ps.PSPainter.drawText(PSPainter.java:350) at org.apache.fop.render.intermediate.IFParser$Handler$TextHandler.endEl ement(IFParser.java:582) at org.apache.fop.render.intermediate.IFParser$Handler.endElement(IFPars er.java:354) at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(Trans formerIdentityImpl.java:1101) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source ) at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknow n Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Dispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un known Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Sour ce) at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf ormerIdentityImpl.java:484) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300) ... 3 more - java.lang.NullPointerException at org.apache.xmlgraphics.ps.PSGenerator.establishColorFromColor(PSGener ator.java:687) at org.apache.xmlgraphics.ps.PSGenerator.convertColorToPS(PSGenerator.ja va:676) at org.apache.xmlgraphics.ps.PSGenerator.useColor(PSGenerator.java:644) at org.apache.fop.render.ps.PSPainter.drawText(PSPainter.java:350) at org.apache.fop.render.intermediate.IFParser$Handler$TextHandler.endEl ement(IFParser.java:582) at org.apache.fop.render.intermediate.IFParser$Handler.endElement(IFPars er.java:354) at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(Trans formerIdentityImpl.java:1101) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source ) at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknow n Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Dispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un known Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Sour ce) at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf ormerIdentityImpl.java:484) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300) at
Re: Tripping over something converting from IF to PS
Hi Martin, Two things, firstly, just a small point, try and keep posts in the public domain. It helps you, since more people will look at your problem with the full information available. If your IF file is a reasonable size, could you create a bugzilla entry (https://issues.apache.org/bugzilla/). An NPE is never really what you want to see... Mehdi On 23 May 2011 07:57, Martin Edge martin.e...@asmorphic.net.au wrote: Hi Mehdi, It's trunk, I'll give 1.0 a go Cheers Martin --- Martin Edge --- On 23/05/2011, at 4:54 PM, mehdi houshmand med1...@gmail.com wrote: Hi Martin, What version of FOP are you using? Try using FOP 1.0 and see if this problem persists. If you send the IF file responsible, it'd give us a little more information. Thanks Mehdi On 23 May 2011 03:18, Martin Edge martin.e...@intellimail.com.au wrote: Hi Guys, Currently getting this dump when I try to convert from IF to PS. Can you confirm it’s NOT FOP I should be looking in (based on the stack trace). C:\dev\workspace_java\FOPc:\dev\workspace_java\fop\fop.cmd -c c:\dev\workspace_ java\fop\conf\fop.xconf -ifin c:\dev\intellimail_testing\X 009\0-EditedIntermediateFile.if -ps c:\dev\intellimail_testing\\0-EditedIntermediateFile.ps 23/05/2011 12:15:01 PM org.apache.fop.apps.FopFactoryConfigurator configure INFO: Default page-height set to: 11in 23/05/2011 12:15:01 PM org.apache.fop.apps.FopFactoryConfigurator configure INFO: Default page-width set to: 8.26in 23/05/2011 12:15:02 PM org.apache.fop.cli.Main startFOP SEVERE: Exception java.lang.NullPointerException at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:303) at org.apache.fop.cli.IFInputHandler.renderTo(IFInputHandler.java:77) at org.apache.fop.cli.Main.startFOP(Main.java:177) at org.apache.fop.cli.Main.main(Main.java:208) Caused by: java.lang.NullPointerException at org.apache.xmlgraphics.ps.PSGenerator.establishColorFromColor(PSGener ator.java:687) at org.apache.xmlgraphics.ps.PSGenerator.convertColorToPS(PSGenerator.ja va:676) at org.apache.xmlgraphics.ps.PSGenerator.useColor(PSGenerator.java:644) at org.apache.fop.render.ps.PSPainter.drawText(PSPainter.java:350) at org.apache.fop.render.intermediate.IFParser$Handler$TextHandler.endEl ement(IFParser.java:582) at org.apache.fop.render.intermediate.IFParser$Handler.endElement(IFPars er.java:354) at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(Trans formerIdentityImpl.java:1101) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source ) at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknow n Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Dispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un known Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Sour ce) at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf ormerIdentityImpl.java:484) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300) ... 3 more - java.lang.NullPointerException at org.apache.xmlgraphics.ps.PSGenerator.establishColorFromColor(PSGener ator.java:687) at org.apache.xmlgraphics.ps.PSGenerator.convertColorToPS(PSGenerator.ja va:676) at org.apache.xmlgraphics.ps.PSGenerator.useColor(PSGenerator.java:644) at org.apache.fop.render.ps.PSPainter.drawText(PSPainter.java:350) at org.apache.fop.render.intermediate.IFParser$Handler$TextHandler.endEl ement(IFParser.java:582) at org.apache.fop.render.intermediate.IFParser$Handler.endElement(IFPars er.java:354) at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(Trans formerIdentityImpl.java:1101) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source ) at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknow n Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Dispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un known Source)
RE: Tripping over something converting from IF to PS
Hey Mehdi, Didn't realise it responded to you personally - sorry about that! That particular IF is a little large. I may be able to produce a cut down version. Will see how I go. Thanks Martin. -Original Message- From: mehdi houshmand [mailto:med1...@gmail.com] Sent: Monday, 23 May 2011 5:09 PM To: fop-users@xmlgraphics.apache.org Subject: Re: Tripping over something converting from IF to PS Hi Martin, Two things, firstly, just a small point, try and keep posts in the public domain. It helps you, since more people will look at your problem with the full information available. If your IF file is a reasonable size, could you create a bugzilla entry (https://issues.apache.org/bugzilla/). An NPE is never really what you want to see... Mehdi On 23 May 2011 07:57, Martin Edge martin.e...@asmorphic.net.au wrote: Hi Mehdi, It's trunk, I'll give 1.0 a go Cheers Martin --- Martin Edge --- On 23/05/2011, at 4:54 PM, mehdi houshmand med1...@gmail.com wrote: Hi Martin, What version of FOP are you using? Try using FOP 1.0 and see if this problem persists. If you send the IF file responsible, it'd give us a little more information. Thanks Mehdi On 23 May 2011 03:18, Martin Edge martin.e...@intellimail.com.au wrote: Hi Guys, Currently getting this dump when I try to convert from IF to PS. Can you confirm its NOT FOP I should be looking in (based on the stack trace). C:\dev\workspace_java\FOPc:\dev\workspace_java\fop\fop.cmd -c c:\dev\workspace_ java\fop\conf\fop.xconf -ifin c:\dev\intellimail_testing\X 009\0-EditedIntermediateFile.if -ps c:\dev\intellimail_testing\\0-EditedIntermediateFile.ps 23/05/2011 12:15:01 PM org.apache.fop.apps.FopFactoryConfigurator configure INFO: Default page-height set to: 11in 23/05/2011 12:15:01 PM org.apache.fop.apps.FopFactoryConfigurator configure INFO: Default page-width set to: 8.26in 23/05/2011 12:15:02 PM org.apache.fop.cli.Main startFOP SEVERE: Exception java.lang.NullPointerException at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:303) at org.apache.fop.cli.IFInputHandler.renderTo(IFInputHandler.java:77) at org.apache.fop.cli.Main.startFOP(Main.java:177) at org.apache.fop.cli.Main.main(Main.java:208) Caused by: java.lang.NullPointerException at org.apache.xmlgraphics.ps.PSGenerator.establishColorFromColor(PSGener ator.java:687) at org.apache.xmlgraphics.ps.PSGenerator.convertColorToPS(PSGenerator.ja va:676) at org.apache.xmlgraphics.ps.PSGenerator.useColor(PSGenerator.java:644) at org.apache.fop.render.ps.PSPainter.drawText(PSPainter.java:350) at org.apache.fop.render.intermediate.IFParser$Handler$TextHandler.endEl ement(IFParser.java:582) at org.apache.fop.render.intermediate.IFParser$Handler.endElement(IFPars er.java:354) at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(Trans formerIdentityImpl.java:1101) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source ) at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknow n Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Dispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un known Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Sour ce) at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf ormerIdentityImpl.java:484) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300) ... 3 more - java.lang.NullPointerException at org.apache.xmlgraphics.ps.PSGenerator.establishColorFromColor(PSGener ator.java:687) at org.apache.xmlgraphics.ps.PSGenerator.convertColorToPS(PSGenerator.ja va:676) at org.apache.xmlgraphics.ps.PSGenerator.useColor(PSGenerator.java:644) at org.apache.fop.render.ps.PSPainter.drawText(PSPainter.java:350) at org.apache.fop.render.intermediate.IFParser$Handler$TextHandler.endEl ement(IFParser.java:582) at org.apache.fop.render.intermediate.IFParser$Handler.endElement(IFPars er.java:354) at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(Trans formerIdentityImpl.java:1101) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source )
XSL and time
Hi, I have a file XSL doPDF.xsl for create a file PDF. How can I have the time of running for each template in my file doPDF.xsl ? Perhaps this the tests ? Thanks. -- View this message in context: http://old.nabble.com/XSL-and-time-tp31678708p31678708.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: block-progression-dimension: how it works?
No way in a more simple structure too: ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=PM fo:region-body margin-top=20mm margin-left=20mm margin-right=20mm margin-bottom=20mm/ fo:region-before extent=20mm / fo:region-after extent=20mm / /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=PM fo:flow flow-name=xsl-region-body !-- block container for the whole table -- fo:block-container block-progression-dimension=20cm !-- first table row -- fo:block-container block-progression-dimension.minimum=2cm block-progression-dimension.optimum=6cm block-progression-dimension.maximum=9cm border=solid 1pt background-color=yellow fo:block fo:inline Blocco 1. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. /fo:inline /fo:block /fo:block-container !-- second row -- fo:block-container block-progression-dimension.minimum=2cm block-progression-dimension.optimum=8cm block-progression-dimension.maximum=9cm border=solid 1pt fo:block fo:inline Blocco 2. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Blocco 2. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. /fo:inline /fo:block /fo:block-container !-- last row -- fo:block-container block-progression-dimension.minimum=2cm block-progression-dimension.optimum=6cm block-progression-dimension.maximum=9cm border=solid 1pt background-color=yellow fo:blockfo:inline Blocco 3. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Blocco 3. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem
PDF/A-1a compliancy and PDF version 1.4
Hi list, I have a question about the PDF/A-1a compliancy of the PDF that FOP produces. We produce PDF/A-1a compliant PDF for a customer of us. But I think there is a problem with the tagging of tables. When PDF/A-1a is selected the PDF version needs to be 1.4 according to the documentation. But the renderer tries to output THead TBody and TFoot tags in the PDF for the appropriate table elements. Only the PDF 1.4 does not support THead, TBody and TFoot tags and when the PDF/A-1a compliancy is being tested, the three tags are being reported as failures. Is this a bug? Best regards, Peder - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Changebar Status
Dear all, has anybody tried out my patch for production of change bars in FOP yet? The patch against a rather recent /trunk is attached at PR 48548 ... I would welcome any feedback. Best regards Stephan -- Dr.-Ing. Stephan Thesing Elektrastr. 50 81925 München GERMANY Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org