Re:Exception in thread main java.lang.OutOfMemory Error
Hello, I tried the process again after I upgraded the FOP version to 0.93. But it still gives me the same error though i increase the memory. How do I seperate the XSLT process from the FO formatting ?Thanks for all the help being rendered. Sindhu Email Firewall made the following annotations NOTICE --- This message is for the designated recipient only and may contain confidential, privileged or proprietary information. If you have received it in error, please notify the sender immediately and delete the original and any copy or printout. Unintended recipients are prohibited from making any other use of this e-mail. Although we have taken reasonable precautions to ensure no viruses are present in this e-mail, we accept no liability for any loss or damage arising from the use of this e-mail or attachments, or for any delay or errors or omissions in the contents which result from e-mail transmission. -
Re: Exception in thread main java.lang.OutOfMemory Error
Hello All, As i have discussed in the previous threads I get an Exception in thread main java.lang.OutOfMemory Error when I try to pdf xml documents. * I tried increasing the memory available to the JVM (used this command line option: C:\Program Files\Altova\FOP\buildjava -Xmx512m -jar fop.jar fop -xsl test.xsl -xml test.xml -pdf test.pdf ). This helped me convert a 777KB Xml document into a PDF Document(about 100 pages). But when I try converting an 4500KB Xml Document(approx. about 400 pages long) it gives me an out of memory error again.I can't increase the memory more than that as my physical RAM is only 523 MB. * I donot have any figures in the document. * I do use a page numbering scheme that includes a total number of pages in the document that makes use of forward referencingand I cannot bypass this. * I have three page sequences but I'm afraid can't break the document into any more. And each sequence does contain a lot of fo elements. Can anybody guide me more in regards to this? Sindhu Email Firewall made the following annotations NOTICE --- This message is for the designated recipient only and may contain confidential, privileged or proprietary information. If you have received it in error, please notify the sender immediately and delete the original and any copy or printout. Unintended recipients are prohibited from making any other use of this e-mail. Although we have taken reasonable precautions to ensure no viruses are present in this e-mail, we accept no liability for any loss or damage arising from the use of this e-mail or attachments, or for any delay or errors or omissions in the contents which result from e-mail transmission. -
Exception in thread main java.lang.OutOfMemoryError
Hello All, I am trying to convert an XML document(approx about 110 pages long, 777KB) into a pdf document using an FO transformation. But it gives me the following error. Exception in thread main java.lang.OutOfMemoryError I tried the last three solutions mentioned here. http://xmlgraphics.apache.org/fop/0.93/running.html But I donot know how to increase the heap size available to the JVM.Can anybody let me know how to do it so I can try that last option too. Thanks, Sindhu Email Firewall made the following annotations NOTICE --- This message is for the designated recipient only and may contain confidential, privileged or proprietary information. If you have received it in error, please notify the sender immediately and delete the original and any copy or printout. Unintended recipients are prohibited from making any other use of this e-mail. Although we have taken reasonable precautions to ensure no viruses are present in this e-mail, we accept no liability for any loss or damage arising from the use of this e-mail or attachments, or for any delay or errors or omissions in the contents which result from e-mail transmission. -
Out Of Memory Error
Hello All, I am trying to convert a huge XML document(approx about 110 pages long, 777KB) into a pdf document using an FO transformation. But it gives me the following error. Exception in thread main java.lang.OutOfMemoryError Can anybody guide me as to what is going wrong? Is there a limit on the size of the document that can be transformed?If so , can it be increased? Thanks, Sindhu Email Firewall made the following annotations NOTICE --- This message is for the designated recipient only and may contain confidential, privileged or proprietary information. If you have received it in error, please notify the sender immediately and delete the original and any copy or printout. Unintended recipients are prohibited from making any other use of this e-mail. Although we have taken reasonable precautions to ensure no viruses are present in this e-mail, we accept no liability for any loss or damage arising from the use of this e-mail or attachments, or for any delay or errors or omissions in the contents which result from e-mail transmission. -
Scaling images that are running off the page!
Title: Scaling images that are running off the page! Hello All, I am trying to scale images that are running off the page owing to their width and height dimensions. My page has a width of 7 inches and a height of 6.75 inches. This is my fo: instruction: fo:external-graphic width=100% content-height=100% content-width=scale-to-fit scaling=uniform display-align=center xsl:attribute name=srcurl('xsl:value-of select=FileName/')/xsl:attribute /fo:external-graphic But when I try to insert an image that has dimensions of 2000X2000 pixels it fails. It fails for an image that is 512X716. But works for an image that is 800X750. Is there a way by which I could scale the image both horizontally and vertically so that I can insert an image of any dimensions? Between thanks to Chris Bowditch for helping me out with other issues. Chris , I was able to work out the other spacing issues.It just required moving some blocks and inlines around. Sindhu Cherla. "MMS apsc.com" made the following annotations. -- --- NOTICE --- This message is for the designated recipient only and may contain confidential, privileged or proprietary information. If you have received it in error, please notify the sender immediately and delete the original and any copy or printout. Unintended recipients are prohibited from making any other use of this e-mail. Although we have taken reasonable precautions to ensure no viruses are present in this e-mail, we accept no liability for any loss or damage arising from the use of this e-mail or attachments, or for any delay or errors or omissions in the contents which result from e-mail transmission. ==
Carriage return in FOP 0.92 version
Title: Carriage return in FOP 0.92 version Hello, I want to know if there is any way I can insert a carriage return in the data in an element node in an xml document. After having done so, is it possible that the fo recognizes the carrigae return and accordingly dispplays the carriage return in the pdf output? Thanks, Sindhu Cherla. "MMS apsc.com" made the following annotations. -- --- NOTICE --- This message is for the designated recipient only and may contain confidential, privileged or proprietary information. If you have received it in error, please notify the sender immediately and delete the original and any copy or printout. Unintended recipients are prohibited from making any other use of this e-mail. Although we have taken reasonable precautions to ensure no viruses are present in this e-mail, we accept no liability for any loss or damage arising from the use of this e-mail or attachments, or for any delay or errors or omissions in the contents which result from e-mail transmission. ==
Version 0.92 beta
Title: Version 0.92 beta I am currently looking at the new version of FOP, in particular the PDF component. The PDF works well in with the older version (0.20.5), but I am now trying to use the same style sheets to create PDF, and it doesn't even get past go. Is it a bug, or do I need to change the format of my XSL code. The following is the error I get when i try this command fop -xml foo.xml -xsl sa.xsl -pdf foo.pdf May 24, 2006 2:04:55 PM org.apache.fop.fo.FOTreeBuilder fatalError SEVERE: javax.xml.transform.TransformerException: java.lang.NullPointerException May 24, 2006 2:04:55 PM org.apache.fop.cli.Main startFOP SEVERE: Exception javax.xml.transform.TransformerException: java.lang.NullPointerException at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:167) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:114) at org.apache.fop.cli.Main.startFOP(Main.java:159) at org.apache.fop.cli.Main.main(Main.java:190) - SystemID: file:///C:/Documents%20and%20Settings/ZP0461/Desktop/fop-0.92beta/sa.xsl; Line#: 29; Column#: 18 javax.xml.transform.TransformerException: java.lang.NullPointerException at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.transformNode(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source) at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:164) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:114) at org.apache.fop.cli.Main.startFOP(Main.java:159) at org.apache.fop.cli.Main.main(Main.java:190) Caused by: java.lang.NullPointerException at org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElements(TableLayoutManager.java:158) at org.apache.fop.layoutmgr.inline.InlineLayoutManager.getNextKnuthElements(InlineLayoutManager.java:294) at org.apache.fop.layoutmgr.inline.LineLayoutManager.collectInlineKnuthElements(LineLayoutManager.java:647) at org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:582) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:275) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105) at org.apache.fop.layoutmgr.table.TableCellLayoutManager.getNextKnuthElements(TableCellLayoutManager.java:160) at org.apache.fop.layoutmgr.table.TableContentLayoutManager.createElementsForRowGroup(TableContentLayoutManager.java:467) at org.apache.fop.layoutmgr.table.TableContentLayoutManager.getKnuthElementsForRowIterator(TableContentLayoutManager.java:237) at org.apache.fop.layoutmgr.table.TableContentLayoutManager.getNextKnuthElements(TableContentLayoutManager.java:176) at org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElements(TableLayoutManager.java:233) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:275) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:105) at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:98) at org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.getNextKnuthElements(PageSequenceLayoutManager.java:234) at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:502) at org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.getNextBlockList(PageSequenceLayoutManager.java:226) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:252) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:220) at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:152) at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:320) at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:147) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:357) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:193) at org.apache.xalan.transformer.ResultTreeHandler.endElement(Unknown Source) at org.apache.xalan.templates.ElemLiteralResult.execute(Unknown Source) ... 10 more - java.lang.NullPointerException at org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElements(TableLayoutManager.java:158) at org.apache.fop.layoutmgr.inline.InlineLayoutManager.getNextKnuthElements(InlineLayoutManager.java:294) at org.apache.fop.layoutmgr.inline.LineLayoutManager.collectInlineKnuthElements(LineLayoutManager.java:647) at