Re: Blank half-cell on page1; text showing on page 2
Hi Akagi, Akagi Kobayashi wrote: > Hi Chris and Vincent > > I don't seem to be able to run the fop command on my system, so am sending > the build file to Vincent. (Actually by cc-ing to fop-users you sent it to the whole list.) > The problem appears to occur only when there is a single line space in the > table cell on the first page. > > I created a sample docbook containing the offending table and created a PDF > by the normal build process (although the Japanese gen texts were not picked > up). > The text in the cells are behaving correctly, but this is probably > because of the position of the table break. I notice from the main doc pdf > that the problem appears to occur only when there is a single line space in > the table cell on the first page; if there are two line spaces or more on > the first page, the long text does get broken up correctly and appear on > both pages. The sample xml and pdf attached. Can you post a sample that shows the problem? AFAICT the issue doesn’t appear in the PDF you posted. Actually the intermediate XSL-FO file is produced by your building system. You will find it in the target/fo/[en|ja]/customer_care_guide/ directory (file customer_care_guide.fo). I guess you pick up the pdf file in target/dist/pdf/[en|ja]/pdf/? So please create an example showing the problem, generate the pdf as usually with your build system, and post back the produced XSL-FO and PDF files (not the source XML which will be useless to us). Thanks, Vincent -- Vincent HennebertAnyware Technologies http://people.apache.org/~vhennebert http://www.anyware-tech.com Apache FOP Committer FOP Development/Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error
Hello, I have this error: C:\fop-0.93>fop -xml solucion2/prueba.xml -xsl solucion2/prueba.xsl -pdf solucio n2/prueba.pdf "java" 03-ene-2008 13:07:01 org.apache.fop.fo.FOTreeBuilder$MainFOHandler endElement ADVERTENCIA: Mismatch: page-sequence (http://www.w3.org/1999/XSL/Format) vs. roo t (http://www.w3.org/1999/XSL/Format) 03-ene-2008 13:07:01 org.apache.fop.fo.FOTreeBuilder fatalError GRAVE: javax.xml.transform.TransformerException: java.lang.IndexOutOfBoundsExcep tion: Index: 90, Size: 90 03-ene-2008 13:07:01 org.apache.fop.cli.Main startFOP GRAVE: Exception javax.xml.transform.TransformerException: java.lang.IndexOutOfBoundsException: I ndex: 90, Size: 90 at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115) at org.apache.fop.cli.Main.startFOP(Main.java:160) at org.apache.fop.cli.Main.main(Main.java:191) - ; SystemID: file:///C:/fop-0.93/solucion2/prueba.xsl; Line#: 6; Column#: 57 javax.xml.transform.TransformerException: java.lang.IndexOutOfBoundsException: I ndex: 90, Size: 90 at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Un known Source) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Unkn own Source) at org.apache.xalan.transformer.TransformerImpl.transformNode(Unknown So urce) 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:165) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115) at org.apache.fop.cli.Main.startFOP(Main.java:160) at org.apache.fop.cli.Main.main(Main.java:191) Caused by: java.lang.IndexOutOfBoundsException: Index: 90, Size: 90 at java.util.ArrayList.RangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at org.apache.fop.layoutmgr.KnuthSequence.getElement(KnuthSequence.java: 159) at org.apache.fop.layoutmgr.PageBreakingAlgorithm.noBreakBetween(PageBre akingAlgorithm.java:408) at org.apache.fop.layoutmgr.PageBreakingAlgorithm.checkCanDeferOldFootno tes(PageBreakingAlgorithm.java:377) at org.apache.fop.layoutmgr.PageBreakingAlgorithm.computeDifference(Page BreakingAlgorithm.java:336) at org.apache.fop.layoutmgr.BreakingAlgorithm.considerLegalBreak(Breakin gAlgorithm.java:685) at org.apache.fop.layoutmgr.PageBreakingAlgorithm.considerLegalBreak(Pag eBreakingAlgorithm.java:309) at org.apache.fop.layoutmgr.BreakingAlgorithm.findBreakingPoints(Breakin gAlgorithm.java:485) at org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.doPhas e3WithLastPage(PageSequenceLayoutManager.java:411) at org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.doPhas e3(PageSequenceLayoutManager.java:366) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.jav a:345) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.jav a:263) at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(Pag eSequenceLayoutManager.java:157) at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.j ava:385) at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java :148) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilde r.java:378) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194) at org.apache.xalan.transformer.ResultTreeHandler.endElement(Unknown Sou rce) at org.apache.xalan.templates.ElemLiteralResult.execute(Unknown Source) ... 10 more - java.lang.IndexOutOfBoundsException: Index: 90, Size: 90 at java.util.ArrayList.RangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at org.apache.fop.layoutmgr.KnuthSequence.getElement(KnuthSequence.java: 159) at org.apache.fop.layoutmgr.PageBreakingAlgorithm.noBreakBetween(PageBre akingAlgorithm.java:408) at org.apache.fop.layoutmgr.PageBreakingAlgorithm.checkCanDeferOldFootno tes(PageBreakingAlgorithm.java:377) at org.apache.fop.layoutmgr.PageBreakingAlgorithm.computeDifference(Page BreakingAlgorithm.java:336) at org.apache.fop.layoutmgr.BreakingAlgorithm.considerLegalBreak(Breakin gAlgorithm.java:685) at org.apache.fop.layoutmgr.PageBreakingAlgorithm.considerLegalBreak(Pag eBreakingAlgorithm.java:309) at org.apache.fop.layoutmgr.BreakingAlgorithm.findBreakingPoints(Breakin gAlgorithm.java:485) at org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.doPhas e3WithLastPage(PageSequenceLayoutManager.java:411) at org.apache.fop.layoutmgr.PageSequenceLayoutMana
Re: attributes of
Hello, I have this error: C:\fop-0.93>fop -xml solucion2/prueba.xml -xsl solucion2/prueba.xsl -pdf solucio n2/prueba.pdf "java" 03-ene-2008 13:07:01 org.apache.fop.fo.FOTreeBuilder$MainFOHandler endElement ADVERTENCIA: Mismatch: page-sequence (http://www.w3.org/1999/XSL/Format) vs. roo t (http://www.w3.org/1999/XSL/Format) 03-ene-2008 13:07:01 org.apache.fop.fo.FOTreeBuilder fatalError GRAVE: javax.xml.transform.TransformerException: java.lang.IndexOutOfBoundsExcep tion: Index: 90, Size: 90 03-ene-2008 13:07:01 org.apache.fop.cli.Main startFOP GRAVE: Exception javax.xml.transform.TransformerException: java.lang.IndexOutOfBoundsException: I ndex: 90, Size: 90 at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115) at org.apache.fop.cli.Main.startFOP(Main.java:160) at org.apache.fop.cli.Main.main(Main.java:191) - ; SystemID: file:///C:/fop-0.93/solucion2/prueba.xsl; Line#: 6; Column#: 57 javax.xml.transform.TransformerException: java.lang.IndexOutOfBoundsException: I ndex: 90, Size: 90 at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Un known Source) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Unkn own Source) at org.apache.xalan.transformer.TransformerImpl.transformNode(Unknown So urce) 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:165) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115) at org.apache.fop.cli.Main.startFOP(Main.java:160) at org.apache.fop.cli.Main.main(Main.java:191) Caused by: java.lang.IndexOutOfBoundsException: Index: 90, Size: 90 at java.util.ArrayList.RangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at org.apache.fop.layoutmgr.KnuthSequence.getElement(KnuthSequence.java: 159) at org.apache.fop.layoutmgr.PageBreakingAlgorithm.noBreakBetween(PageBre akingAlgorithm.java:408) at org.apache.fop.layoutmgr.PageBreakingAlgorithm.checkCanDeferOldFootno tes(PageBreakingAlgorithm.java:377) at org.apache.fop.layoutmgr.PageBreakingAlgorithm.computeDifference(Page BreakingAlgorithm.java:336) at org.apache.fop.layoutmgr.BreakingAlgorithm.considerLegalBreak(Breakin gAlgorithm.java:685) at org.apache.fop.layoutmgr.PageBreakingAlgorithm.considerLegalBreak(Pag eBreakingAlgorithm.java:309) at org.apache.fop.layoutmgr.BreakingAlgorithm.findBreakingPoints(Breakin gAlgorithm.java:485) at org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.doPhas e3WithLastPage(PageSequenceLayoutManager.java:411) at org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.doPhas e3(PageSequenceLayoutManager.java:366) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.jav a:345) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.jav a:263) at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(Pag eSequenceLayoutManager.java:157) at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.j ava:385) at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java :148) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilde r.java:378) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194) at org.apache.xalan.transformer.ResultTreeHandler.endElement(Unknown Sou rce) at org.apache.xalan.templates.ElemLiteralResult.execute(Unknown Source) ... 10 more - java.lang.IndexOutOfBoundsException: Index: 90, Size: 90 at java.util.ArrayList.RangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at org.apache.fop.layoutmgr.KnuthSequence.getElement(KnuthSequence.java: 159) at org.apache.fop.layoutmgr.PageBreakingAlgorithm.noBreakBetween(PageBre akingAlgorithm.java:408) at org.apache.fop.layoutmgr.PageBreakingAlgorithm.checkCanDeferOldFootno tes(PageBreakingAlgorithm.java:377) at org.apache.fop.layoutmgr.PageBreakingAlgorithm.computeDifference(Page BreakingAlgorithm.java:336) at org.apache.fop.layoutmgr.BreakingAlgorithm.considerLegalBreak(Breakin gAlgorithm.java:685) at org.apache.fop.layoutmgr.PageBreakingAlgorithm.considerLegalBreak(Pag eBreakingAlgorithm.java:309) at org.apache.fop.layoutmgr.BreakingAlgorithm.findBreakingPoints(Breakin gAlgorithm.java:485) at org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.doPhas e3WithLastPag
Re: attributes of
Hello, I have this error: C:\fop-0.93>fop -xml solucion2/prueba.xml -xsl solucion2/prueba.xsl -pdf solucio n2/prueba.pdf "java" 03-ene-2008 13:07:01 org.apache.fop.fo.FOTreeBuilder$MainFOHandler endElement ADVERTENCIA: Mismatch: page-sequence (http://www.w3.org/1999/XSL/Format) vs. roo t (http://www.w3.org/1999/XSL/Format) 03-ene-2008 13:07:01 org.apache.fop.fo.FOTreeBuilder fatalError GRAVE: javax.xml.transform.TransformerException: java.lang.IndexOutOfBoundsExcep tion: Index: 90, Size: 90 03-ene-2008 13:07:01 org.apache.fop.cli.Main startFOP GRAVE: Exception javax.xml.transform.TransformerException: java.lang.IndexOutOfBoundsException: I ndex: 90, Size: 90 at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115) at org.apache.fop.cli.Main.startFOP(Main.java:160) at org.apache.fop.cli.Main.main(Main.java:191) - ; SystemID: file:///C:/fop-0.93/solucion2/prueba.xsl; Line#: 6; Column#: 57 javax.xml.transform.TransformerException: java.lang.IndexOutOfBoundsException: I ndex: 90, Size: 90 at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Un known Source) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Unkn own Source) at org.apache.xalan.transformer.TransformerImpl.transformNode(Unknown So urce) 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:165) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115) at org.apache.fop.cli.Main.startFOP(Main.java:160) at org.apache.fop.cli.Main.main(Main.java:191) Caused by: java.lang.IndexOutOfBoundsException: Index: 90, Size: 90 at java.util.ArrayList.RangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at org.apache.fop.layoutmgr.KnuthSequence.getElement(KnuthSequence.java: 159) at org.apache.fop.layoutmgr.PageBreakingAlgorithm.noBreakBetween(PageBre akingAlgorithm.java:408) at org.apache.fop.layoutmgr.PageBreakingAlgorithm.checkCanDeferOldFootno tes(PageBreakingAlgorithm.java:377) at org.apache.fop.layoutmgr.PageBreakingAlgorithm.computeDifference(Page BreakingAlgorithm.java:336) at org.apache.fop.layoutmgr.BreakingAlgorithm.considerLegalBreak(Breakin gAlgorithm.java:685) at org.apache.fop.layoutmgr.PageBreakingAlgorithm.considerLegalBreak(Pag eBreakingAlgorithm.java:309) at org.apache.fop.layoutmgr.BreakingAlgorithm.findBreakingPoints(Breakin gAlgorithm.java:485) at org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.doPhas e3WithLastPage(PageSequenceLayoutManager.java:411) at org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.doPhas e3(PageSequenceLayoutManager.java:366) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.jav a:345) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.jav a:263) at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(Pag eSequenceLayoutManager.java:157) at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.j ava:385) at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java :148) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilde r.java:378) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194) at org.apache.xalan.transformer.ResultTreeHandler.endElement(Unknown Sou rce) at org.apache.xalan.templates.ElemLiteralResult.execute(Unknown Source) ... 10 more - java.lang.IndexOutOfBoundsException: Index: 90, Size: 90 at java.util.ArrayList.RangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at org.apache.fop.layoutmgr.KnuthSequence.getElement(KnuthSequence.java: 159) at org.apache.fop.layoutmgr.PageBreakingAlgorithm.noBreakBetween(PageBre akingAlgorithm.java:408) at org.apache.fop.layoutmgr.PageBreakingAlgorithm.checkCanDeferOldFootno tes(PageBreakingAlgorithm.java:377) at org.apache.fop.layoutmgr.PageBreakingAlgorithm.computeDifference(Page BreakingAlgorithm.java:336) at org.apache.fop.layoutmgr.BreakingAlgorithm.considerLegalBreak(Breakin gAlgorithm.java:685) at org.apache.fop.layoutmgr.PageBreakingAlgorithm.considerLegalBreak(Pag eBreakingAlgorithm.java:309) at org.apache.fop.layoutmgr.BreakingAlgorithm.findBreakingPoints(Breakin gAlgorithm.java:485) at org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.doPhas e3WithLastPag
Noisy output when formatting DocBook despite -q
I'm trying to fix or suppress the warnings I'm getting from FOP 0.94 in formatting MySQL++'s (http://tangentsoft.net/mysql++/) user manual. (To try it yourself, download MySQL++, then go in to doc/userman and say "make pdf".) I get 1800+ lines of errors, but there are just a few types: - fo:table, table-layout="auto" is currently not supported by FOP I've tried disabling this one by trying to set the default table width to 100% in my fo.xsl customization layer, but it doesn't help. I'm aware that I could probably turn on FOP extensions to suppress it, but I'd rather use a standard method. - Line 1 of a paragraph overflows the available area. (fo:block, location: 2/33495) - The contents of row 1 are taller than they should be Are these problems due to the DocBook stylesheets (using 1.69.1 here) or are they problems in FOP? Can I suppress these without just redirecting stderr to /dev/null? I actually used to do that, but it also suppresses true errors like Java stack traces when I crash FOP. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to put batch process into background on Mac OS
This is not a huge matter. More on the line of an annoyance. And I may need to take this question to a java list rather than this list. If so, just point me in the right direction. At any rate, I have an XSLT stylesheet that produces 50+ separate fo documents. I then run the shell script below to batch produce the pdf documents: #!/bin/sh for foo in *.fo do state=`basename $foo .fo` /Applications/fop-0.94/fop -fo $foo -pdf ../pdf_files/$state.pdf done When I run this script on my Mac (OS X 10.4.11, java version "1.5.0_13" fop-0.94), org.apache.fop.cli.main takes control of the desktop, stopping whatever it is I am doing for about 5 seconds. I gain control again for about 5 seconds until fop pumps out another pdf document. I basically have to step away from the computer for the 8 minutes that the batch process takes. Adding & and wait to the main line of the script does not seem to work: /Applications/fop-0.94/fop -fo $foo -pdf ../pdf_files/$state.pdf & wait done The first script above on Ubuntu linux runs in the background without interrupting other running process. Any simple solutions? Terry Ofner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to put batch process into background on Mac OS
Use 'nice' to run it. Alter the script so that the fop execution looks like: nice /Applications/fop-0.94/fop -fo $foo -pdf ../pdf_files/$state.pdf You can check the man page for nice for more info. Steve On Thu, 3 Jan 2008, Terry Ofner wrote: This is not a huge matter. More on the line of an annoyance. And I may need to take this question to a java list rather than this list. If so, just point me in the right direction. At any rate, I have an XSLT stylesheet that produces 50+ separate fo documents. I then run the shell script below to batch produce the pdf documents: #!/bin/sh for foo in *.fo do state=`basename $foo .fo` /Applications/fop-0.94/fop -fo $foo -pdf ../pdf_files/$state.pdf done When I run this script on my Mac (OS X 10.4.11, java version "1.5.0_13" fop-0.94), org.apache.fop.cli.main takes control of the desktop, stopping whatever it is I am doing for about 5 seconds. I gain control again for about 5 seconds until fop pumps out another pdf document. I basically have to step away from the computer for the 8 minutes that the batch process takes. Adding & and wait to the main line of the script does not seem to work: /Applications/fop-0.94/fop -fo $foo -pdf ../pdf_files/$state.pdf & wait done The first script above on Ubuntu linux runs in the background without interrupting other running process. Any simple solutions? Terry Ofner - 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: How to put batch process into background on Mac OS
nice does not seem to change the outcome. It only changes the priority of the process. When it runs, it still places fop in the foreground. Here is what I have tried: nice /Applications/fop-0.94/fop -fo $foo -pdf ../pdf_files/$state.pdf & nice -n 20 /Applications/fop-0.94/fop -fo $foo -pdf ../pdf_files/ $state.pdf & I have also added & at the command line: ./createPDF.sh & Any other options? On Jan 3, 2008, at 11:36 AM, Steve Quirk wrote: Use 'nice' to run it. Alter the script so that the fop execution looks like: nice /Applications/fop-0.94/fop -fo $foo -pdf ../pdf_files/$state.pdf You can check the man page for nice for more info. Steve On Thu, 3 Jan 2008, Terry Ofner wrote: This is not a huge matter. More on the line of an annoyance. And I may need to take this question to a java list rather than this list. If so, just point me in the right direction. At any rate, I have an XSLT stylesheet that produces 50+ separate fo documents. I then run the shell script below to batch produce the pdf documents: #!/bin/sh for foo in *.fo do state=`basename $foo .fo` /Applications/fop-0.94/fop -fo $foo -pdf ../pdf_files/$state.pdf done When I run this script on my Mac (OS X 10.4.11, java version "1.5.0_13" fop-0.94), org.apache.fop.cli.main takes control of the desktop, stopping whatever it is I am doing for about 5 seconds. I gain control again for about 5 seconds until fop pumps out another pdf document. I basically have to step away from the computer for the 8 minutes that the batch process takes. Adding & and wait to the main line of the script does not seem to work: /Applications/fop-0.94/fop -fo $foo -pdf ../pdf_files/$state.pdf & wait done The first script above on Ubuntu linux runs in the background without interrupting other running process. Any simple solutions? Terry Ofner - 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]
Re: How to put batch process into background on Mac OS
Actually that probably won't do what you want. Adding - Djava.awt.headless=true to the vm arguments in the fop script probably will work. On Jan 3, 2008, at 8:36 AM, Steve Quirk <[EMAIL PROTECTED]> wrote: Use 'nice' to run it. Alter the script so that the fop execution looks like: nice /Applications/fop-0.94/fop -fo $foo -pdf ../pdf_files/$state.pdf You can check the man page for nice for more info. Steve On Thu, 3 Jan 2008, Terry Ofner wrote: This is not a huge matter. More on the line of an annoyance. And I may need to take this question to a java list rather than this list. If so, just point me in the right direction. At any rate, I have an XSLT stylesheet that produces 50+ separate fo documents. I then run the shell script below to batch produce the pdf documents: #!/bin/sh for foo in *.fo do state=`basename $foo .fo` /Applications/fop-0.94/fop -fo $foo -pdf ../pdf_files/$state.pdf done When I run this script on my Mac (OS X 10.4.11, java version "1.5.0_13" fop-0.94), org.apache.fop.cli.main takes control of the desktop, stopping whatever it is I am doing for about 5 seconds. I gain control again for about 5 seconds until fop pumps out another pdf document. I basically have to step away from the computer for the 8 minutes that the batch process takes. Adding & and wait to the main line of the script does not seem to work: /Applications/fop-0.94/fop -fo $foo -pdf ../pdf_files/$state.pdf & wait done The first script above on Ubuntu linux runs in the background without interrupting other running process. Any simple solutions? Terry Ofner - 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]
Re: How to put batch process into background on Mac OS
James, Your suggestion works. I have no idea where the vm arguments are in the fop script. So I changed my script to invoke the jar directly, adding the headless argument. I had to move all the jar files in fop/ lib to the build directory to get this to work: java -Djava.awt.headless=true -jar /Applications/fop-0.94/build/ fop.jar -fo $foo -pdf ../pdf_files/$state.pdf Thanks for the tip. Terry On Jan 3, 2008, at 12:35 PM, James Howard wrote: Actually that probably won't do what you want. Adding - Djava.awt.headless=true to the vm arguments in the fop script probably will work. On Jan 3, 2008, at 8:36 AM, Steve Quirk <[EMAIL PROTECTED]> wrote: Use 'nice' to run it. Alter the script so that the fop execution looks like: nice /Applications/fop-0.94/fop -fo $foo -pdf ../pdf_files/$state.pdf You can check the man page for nice for more info. Steve On Thu, 3 Jan 2008, Terry Ofner wrote: This is not a huge matter. More on the line of an annoyance. And I may need to take this question to a java list rather than this list. If so, just point me in the right direction. At any rate, I have an XSLT stylesheet that produces 50+ separate fo documents. I then run the shell script below to batch produce the pdf documents: #!/bin/sh for foo in *.fo do state=`basename $foo .fo` /Applications/fop-0.94/fop -fo $foo -pdf ../pdf_files/$state.pdf done When I run this script on my Mac (OS X 10.4.11, java version "1.5.0_13" fop-0.94), org.apache.fop.cli.main takes control of the desktop, stopping whatever it is I am doing for about 5 seconds. I gain control again for about 5 seconds until fop pumps out another pdf document. I basically have to step away from the computer for the 8 minutes that the batch process takes. Adding & and wait to the main line of the script does not seem to work: /Applications/fop-0.94/fop -fo $foo -pdf ../pdf_files/$state.pdf & wait done The first script above on Ubuntu linux runs in the background without interrupting other running process. Any simple solutions? Terry Ofner - 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] - 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: How to put batch process into background on Mac OS
I had looked at the fop script I had and saw it there. I wasn't sure that I had made the change or not. In any case, if it's helpful, it should look like: fop_exec_command="exec \"$JAVACMD\" ${ENDORSED} -Djava.awt.headless=true $LOGCHOICE $LOGLEVEL -classpath \"$LOCALCLASSPATH\" $FOP_OPTS org.apache.fop.cli.Main $fop_exec_args" (I'm using 0.93, so it might be slightly different). That should avoid any icons or desktop interaction. steve On Thu, 3 Jan 2008, James Howard wrote: Actually that probably won't do what you want. Adding -Djava.awt.headless=true to the vm arguments in the fop script probably will work. On Jan 3, 2008, at 8:36 AM, Steve Quirk <[EMAIL PROTECTED]> wrote: Use 'nice' to run it. Alter the script so that the fop execution looks like: nice /Applications/fop-0.94/fop -fo $foo -pdf ../pdf_files/$state.pdf You can check the man page for nice for more info. Steve On Thu, 3 Jan 2008, Terry Ofner wrote: This is not a huge matter. More on the line of an annoyance. And I may need to take this question to a java list rather than this list. If so, just point me in the right direction. At any rate, I have an XSLT stylesheet that produces 50+ separate fo documents. I then run the shell script below to batch produce the pdf documents: #!/bin/sh for foo in *.fo do state=`basename $foo .fo` /Applications/fop-0.94/fop -fo $foo -pdf ../pdf_files/$state.pdf done When I run this script on my Mac (OS X 10.4.11, java version "1.5.0_13" fop-0.94), org.apache.fop.cli.main takes control of the desktop, stopping whatever it is I am doing for about 5 seconds. I gain control again for about 5 seconds until fop pumps out another pdf document. I basically have to step away from the computer for the 8 minutes that the batch process takes. Adding & and wait to the main line of the script does not seem to work: /Applications/fop-0.94/fop -fo $foo -pdf ../pdf_files/$state.pdf & wait done The first script above on Ubuntu linux runs in the background without interrupting other running process. Any simple solutions? Terry Ofner - 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] - 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: How to put batch process into background on Mac OS
Steve, Yep. That works too. On 0.94 the fop_exec_command is near the bottom of the fop script and looks like this: fop_exec_command="exec \"$JAVACMD\" -Djava.awt.headless=true $LOGCHOICE $LOGLEVEL -classpath \"$LOCALCLASSPATH\" $FOP_OPTS org.apache.fop.cli.Main $fop_exec_args" Note: The -Djava.awt.headless=true was originally missing. The only problem with changing the fop script is that it will only impact my installation. If I ever pass this process off to someone else (or update my version of fop), I will have to remember to change the exec command. I suppose that I would have to mess with something either way. (I would have to move all the jar files to the build directory.) Either way, all is well now. Thanks. Terry On Jan 3, 2008, at 1:14 PM, Steve Quirk wrote: I had looked at the fop script I had and saw it there. I wasn't sure that I had made the change or not. In any case, if it's helpful, it should look like: fop_exec_command="exec \"$JAVACMD\" ${ENDORSED} - Djava.awt.headless=true $LOGCHOICE $LOGLEVEL -classpath \"$LOCALCLASSPATH\" $FOP_OPTS org.apache.fop.cli.Main $fop_exec_args" (I'm using 0.93, so it might be slightly different). That should avoid any icons or desktop interaction. steve On Thu, 3 Jan 2008, James Howard wrote: Actually that probably won't do what you want. Adding - Djava.awt.headless=true to the vm arguments in the fop script probably will work. On Jan 3, 2008, at 8:36 AM, Steve Quirk <[EMAIL PROTECTED]> wrote: Use 'nice' to run it. Alter the script so that the fop execution looks like: nice /Applications/fop-0.94/fop -fo $foo -pdf ../pdf_files/ $state.pdf You can check the man page for nice for more info. Steve On Thu, 3 Jan 2008, Terry Ofner wrote: This is not a huge matter. More on the line of an annoyance. And I may need to take this question to a java list rather than this list. If so, just point me in the right direction. At any rate, I have an XSLT stylesheet that produces 50+ separate fo documents. I then run the shell script below to batch produce the pdf documents: #!/bin/sh for foo in *.fo do state=`basename $foo .fo` /Applications/fop-0.94/fop -fo $foo -pdf ../pdf_files/$state.pdf done When I run this script on my Mac (OS X 10.4.11, java version "1.5.0_13" fop-0.94), org.apache.fop.cli.main takes control of the desktop, stopping whatever it is I am doing for about 5 seconds. I gain control again for about 5 seconds until fop pumps out another pdf document. I basically have to step away from the computer for the 8 minutes that the batch process takes. Adding & and wait to the main line of the script does not seem to work: /Applications/fop-0.94/fop -fo $foo -pdf ../pdf_files/$state.pdf & wait done The first script above on Ubuntu linux runs in the background without interrupting other running process. Any simple solutions? Terry Ofner --- -- To unsubscribe, e-mail: fop-users- [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] - 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]
Re: Noisy output when formatting DocBook despite -q
Warren Young wrote: I'm trying to fix or suppress the warnings I'm getting from FOP 0.94 in formatting MySQL++'s (http://tangentsoft.net/mysql++/) user manual. I'm afraid you wont have much luck... ... - fo:table, table-layout="auto" is currently not supported by FOP I've tried disabling this one by trying to set the default table width to 100% in my fo.xsl customization layer, but it doesn't help. You can fix this by adding an attribute table-layout="fixed" to every table in your customization layer. If there is no such attribute, FOP uses the default table-layout="auto", but automatic table layout isn't supported yet, alas. The error message doesn't have anything to do with the table width. - Line 1 of a paragraph overflows the available area. (fo:block, location: 2/33495) - The contents of row 1 are taller than they should be I don't think you can easily silence these messages without overriding the FOP logger. Are these problems due to the DocBook stylesheets (using 1.69.1 here) or are they problems in FOP? I don't know. I'd have to take a look at the generated FO files. Can I suppress these without just redirecting stderr to /dev/null? I actually used to do that, but it also suppresses true errors like Java stack traces when I crash FOP. Indeed. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error
irene23 wrote: I have this error: ... Caused by: java.lang.IndexOutOfBoundsException: Index: 90, Size: 90 at java.util.ArrayList.RangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at org.apache.fop.layoutmgr.KnuthSequence.getElement(KnuthSequence.java: 159) That's a problem with the global page layout. I suggest upgrading to the latest FOP release (0.94), which is a bit further advanced in this area. If the problem persists, we'll need a complete FO file in order to track down the defect. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to put batch process into background on Mac OS
If you are doing that much formatting, you may really want to check out using ant for your build process, especially if doing multiple output formats. I use this on Mac OS X and have no problem with background running or anything else. My rule for PDF formatting is just: It is easy to adapt this to use a glob rule to build a list of files to format and I also have my process automatically validate DocBook inputs, produce single file and chunked HTML, ODF, convert graphics files from SVG as necessary, automatically check dates to only format what is needed, zip the formatted files and graphics for distribution, clean up the working directories, and even do some dependency tracking on what versions of DocBook, the XSLT stylesheets, fop and other libraries I am using for a particular document so I don't have trouble when I check out an old one from version control. I have a template build file I include for each project and then customize. It took me a good bit of work to set up the environment but has been very easy to maintain. This is not a huge matter. More on the line of an annoyance. And I may need to take this question to a java list rather than this list. If so, just point me in the right direction. At any rate, I have an XSLT stylesheet that produces 50+ separate fo documents. I then run the shell script below to batch produce the pdf documents: #!/bin/sh for foo in *.fo do state=`basename $foo .fo` /Applications/fop-0.94/fop -fo $foo -pdf ../pdf_files/$state.pdf done When I run this script on my Mac (OS X 10.4.11, java version "1.5.0_13" fop-0.94), org.apache.fop.cli.main takes control of the desktop, stopping whatever it is I am doing for about 5 seconds. I gain control again for about 5 seconds until fop pumps out another pdf document. I basically have to step away from the computer for the 8 minutes that the batch process takes. Adding & and wait to the main line of the script does not seem to work: /Applications/fop-0.94/fop -fo $foo -pdf ../pdf_files/$state.pdf & wait done The first script above on Ubuntu linux runs in the background without interrupting other running process. Any simple solutions? Terry Ofner Sincerely, Eric Vought "Deserves Death? I daresay he does. Many who live deserve death. Many who die deserve life. Can you give it to them, Frodo? Do not be so quick to deal death in the name of justice. Even the very wise cannot see all ends." -- Gandalf the Grey
How to supress page breaks between bullet and text?
I have some bulleted items that consist solely of a gif file. Fop is inserting page breaks between the bullet and the gif file. How may I suppress this in my XSLT? In the case that I have a paragraph of text, I would want it to break after the first line of text. Thanks, Siegfried
Re: How to supress page breaks between bullet and text?
I have some bulleted items that consist solely of a gif file. Fop is inserting page breaks between the bullet and the gif file. How may I suppress this in my XSLT? In the case that I have a paragraph of text, I would want it to break after the first line of text. Hi, Siegfried, Try putting the image and text into two different cells in a one-row table and setting keep-together="always" on the row. FOP eats memory when it creates tables, which may be a problem in a very large document. However, this trick works for most documents. I've used it in documents that are hundreds of pages long (think software manuals with lots of images and tables). HTH Jay Bryant Bryant Communication Services http://www.bryantcs.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]