redirect stderr and stdout message
Hi, I am using FOP 1.1 embedded. Is there a way to redirect or capture all the fop messages (stderr and stdout messages)? Thanks -- View this message in context: http://apache-fop.1065347.n5.nabble.com/redirect-stderr-and-stdout-message-tp40642.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: redirect stderr and stdout message
Never mind... found it. https://xmlgraphics.apache.org/fop/1.1/events.html -- View this message in context: http://apache-fop.1065347.n5.nabble.com/redirect-stderr-and-stdout-message-tp40642p40643.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: fo:table-row bleeds into footer
I've tried a number of page different page-sequence-master sequences and they all seem to result in an org.apache.fop.fo.pagination.PageProductionException: Subsequences exhausted in page-sequence-master. Below is an example. fo:layout-master-set fo:page-sequence-master master-name=invoice fo:repeatable-page-master-alternatives fo:conditional-page-master-reference odd-or-even=odd master-reference=page blank-or-not-blank=not-blank page-position=first/ fo:conditional-page-master-reference odd-or-even=even master-reference=page blank-or-not-blank=not-blank page-position=first/ fo:conditional-page-master-reference odd-or-even=odd master-reference=page-odd blank-or-not-blank=not-blank page-position=rest/ fo:conditional-page-master-reference odd-or-even=even master-reference=page-even blank-or-not-blank=not-blank page-position=rest/ fo:conditional-page-master-reference odd-or-even=any master-reference=page-last blank-or-not-blank=not-blank page-position=last/ /fo:repeatable-page-master-alternatives /fo:page-sequence-master fo:simple-page-master master-name=page page-height=11in page-width=8.5in margin-top=0.25in margin-bottom=.250in margin-left=0.25in margin-right=.25in fo:region-body region-name=xsl-region-body margin-top=3.45in margin-bottom=1.0in/ fo:region-before region-name=xsl-region-before extent=3.55in/ fo:region-after region-name=xsl-region-after-first extent=1.0in/ /fo:simple-page-master fo:simple-page-master master-name=page-odd page-height=11in page-width=8.5in margin-top=0.25in margin-bottom=.250in margin-left=0.25in margin-right=.25in fo:region-body region-name=xsl-region-body margin-top=3.45in margin-bottom=1.0in/ fo:region-before region-name=xsl-region-before extent=3.55in/ fo:region-after region-name=xsl-region-after extent=1.0in/ /fo:simple-page-master fo:simple-page-master master-name=page-even page-height=11in page-width=8.5in margin-top=0.25in margin-bottom=.250in margin-left=0.25in margin-right=.25in fo:region-body region-name=xsl-region-body margin-top=3.45in margin-bottom=1.0in/ fo:region-before region-name=xsl-region-before extent=3.55in/ fo:region-after region-name=xsl-region-after extent=1.0in/ /fo:simple-page-master fo:simple-page-master master-name=page-last page-height=11in page-width=8.5in margin-top=0.25in margin-left=0.25in margin-right=.25in margin-bottom=.250in fo:region-body region-name=xsl-region-body margin-top=3.45in margin-bottom=3.65in/ fo:region-before region-name=xsl-region-before extent=3.55in/ fo:region-after region-name=xsl-region-after-last extent=3.650in/ /fo:simple-page-master /fo:layout-master-set -- View this message in context: http://apache-fop.1065347.n5.nabble.com/fo-table-row-bleeds-into-footer-tp40003p40015.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: fo:table-row bleeds into footer
Thanks for helping. I guess I need help with what would be next. If I have: fo:conditional-page-master-reference odd-or-even=odd master-reference=page blank-or-not-blank=not-blank page-position=first/ fo:conditional-page-master-reference odd-or-even=even master-reference=page blank-or-not-blank=not-blank page-position=first/ fo:conditional-page-master-reference odd-or-even=odd master-reference=page-odd blank-or-not-blank=not-blank page-position=rest/ fo:conditional-page-master-reference odd-or-even=even master-reference=page-even blank-or-not-blank=not-blank page-position=rest/ fo:conditional-page-master-reference odd-or-even=any master-reference=page-last blank-or-not-blank=not-blank page-position=last/ doesn't that cover first, rest and last. What else could there be? -- View this message in context: http://apache-fop.1065347.n5.nabble.com/fo-table-row-bleeds-into-footer-tp40003p40017.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: fo:table-row bleeds into footer
First, I want to say thank you for all the help. I really appreciate it. Your solution seems to work most of the time. I did notice that the page breaking is a little off from going from 2-3 pages, which leaves a gap and the bottom of the flow and the last page's flow is empty. Nevertheless, I think I can live with that as I don't expect to have more than 2 pages ever. Thanks again! -- View this message in context: http://apache-fop.1065347.n5.nabble.com/fo-table-row-bleeds-into-footer-tp40003p40023.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: fo:table-row bleeds into footer
Thank you - I've been working on this for hours and can't seem to figure out the solution. I've adjusted the footer sizes and margins but still no luck. Below is a link to download a working example. I kept it as simple as possible. I appropriate any help. FO Sample - Bleed Issue https://app.box.com/s/rntc9ot39bjcqkurycgg -- View this message in context: http://apache-fop.1065347.n5.nabble.com/fo-table-row-bleeds-into-footer-tp40003p40007.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: fo:table-row bleeds into footer
same here - its seems if the simple-page-master's margin-bottom for all pages and the simple-page-master's margin-bottom for the last page are different sizes, it throws an exception org.apache.fop.fo.pagination.PageProductionException: Subsequences exhausted in page-sequence-master invoice, cannot recover. This doesn't make sense to me because the last page is allowed to have it own set of properties. I'm am thinking this is a bug. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/fo-table-row-bleeds-into-footer-tp40003p40009.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: fo:table-row bleeds into footer
Thanks - I will have a minimum if 1 and mostly likely a max of 4 or 5. I'll try to add a definition for what's to come after page-last. I assume since page-last is last, but needs to calculate? -- View this message in context: http://apache-fop.1065347.n5.nabble.com/fo-table-row-bleeds-into-footer-tp40003p40011.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
fo:table-row bleeds into footer
Hi, I am using FOP 1.1. I have the following page layout. Basically the last page's footer (either odd or even) will have a big footer. The issue I am having is if I have a table, the rows bleed into the last-page-even footer (xsl-region-after-last) when it should break to 3rd page. My xsl-region-after-last is large (3.75in). Any ideas on how I can resolve this? fo:layout-master-set fo:page-sequence-master master-name=invoice fo:repeatable-page-master-alternatives fo:conditional-page-master-reference odd-or-even=odd master-reference=last-page-odd blank-or-not-blank=not-blank page-position=last/ fo:conditional-page-master-reference odd-or-even=even master-reference=last-page-even blank-or-not-blank=not-blank page-position=last/ fo:conditional-page-master-reference odd-or-even=odd master-reference=page-odd blank-or-not-blank=not-blank page-position=any/ fo:conditional-page-master-reference odd-or-even=even master-reference=page-even blank-or-not-blank=not-blank page-position=any/ /fo:repeatable-page-master-alternatives /fo:page-sequence-master fo:simple-page-master master-name=page-even page-height=11in page-width=8.5in margin-top=0.25in margin-left=0.25in margin-right=.25in fo:region-body region-name=xsl-region-body margin-top=3.55in margin-bottom=1.65in/ fo:region-before region-name=xsl-region-before extent=1in/ fo:region-after region-name=xsl-region-after extent=1.5in/ /fo:simple-page-master fo:simple-page-master master-name=page-odd page-height=11in page-width=8.5in margin-top=0.25in margin-left=0.25in margin-right=.25in fo:region-body region-name=xsl-region-body margin-top=3.55in margin-bottom=1.65in/ fo:region-before region-name=xsl-region-before extent=1in/ fo:region-after region-name=xsl-region-after extent=1.5in/ /fo:simple-page-master fo:simple-page-master master-name=last-page-odd page-height=11in page-width=8.5in margin-top=0.25in margin-left=0.25in margin-right=.25in fo:region-body region-name=xsl-region-body margin-top=3.55in margin-bottom=1.65in/ fo:region-before region-name=xsl-region-before extent=1in/ fo:region-after region-name=xsl-region-after-last-odd extent=3.75in/ /fo:simple-page-master fo:simple-page-master master-name=last-page-even page-height=11in page-width=8.5in margin-top=0.25in margin-left=0.25in margin-right=.25in fo:region-body region-name=xsl-region-body margin-top=3.55in margin-bottom=1.65in/ fo:region-before region-name=xsl-region-before extent=1in/ fo:region-after region-name=xsl-region-after-last-even extent=3.75in/ /fo:simple-page-master /fo:layout-master-set -- View this message in context: http://apache-fop.1065347.n5.nabble.com/fo-table-row-bleeds-into-footer-tp40003.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: Greater than or Equal to symbol Fop 1.0
I wanted to follow up on this thread. After finally spending some time to really see what was causing this issue, I noticed that on output from xml to fo, the symbol was wrapped in a fo:inline with the text-declaration set to upper-case. If I set the symbol lower-case, it works. Which makes sense if there is no upper-case for the character, it renders as #. So simple... I missed it. Thanks for all the help. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Greater-than-or-Equal-to-symbol-Fop-1-0-tp39197p39603.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: Informal FOP Users/Developers/Sponsors Meeting
Too bad this is in Mass, and not NY. I would have loved to attend. Good Luck! -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Informal-FOP-Users-Developers-Sponsors-Meeting-tp39403p39417.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: Is is possible to have fop abort with non-zero exit code when an image isn't found
Another approach if you are using xslt. is to use an extension to check if a file exists and if it does not exist terminate with xsl:message terminate=yes -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Is-is-possible-to-have-fop-abort-with-non-zero-exit-code-when-an-image-isn-t-found-tp39340p39361.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
Greater than or Equal to symbol Fop 1.0
Hi, I want to output the Greater than or Equal (≥) and Less than or equal (≤) to symbols in Fop 1.0. But the output displays as #. I have tried: ≥ #x2265; #8805; ge; Any suggestions to get this to output correctly in 1.0. In works in 1.1, but my project is in 1.0. Also my xml in encoded UTF-8. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Greater-than-or-Equal-to-symbol-Fop-1-0-tp39197.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: Greater than or Equal to symbol Fop 1.0
Thanks Glenn, Unfortunately my customer requires arial as the font. Is there another work-around? -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Greater-than-or-Equal-to-symbol-Fop-1-0-tp39197p39199.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: Greater than or Equal to symbol Fop 1.0
Thanks Robert. I will troubleshoot. If you got it working, then there is something wrong in my config. Thx Phil -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Greater-than-or-Equal-to-symbol-Fop-1-0-tp39197p39202.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: Getting a list of font names without the memory hit...
Why don't you just read the config file which list all the available fonts? -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Getting-a-list-of-font-names-without-the-memory-hit-tp38952p38958.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: RTF - Only simple-page-masters are supported on page-sequences
Thanks. Logged: https://issues.apache.org/jira/browse/FOP-2270 https://issues.apache.org/jira/browse/FOP-2270 -- View this message in context: http://apache-fop.1065347.n5.nabble.com/RTF-Only-simple-page-masters-are-supported-on-page-sequences-tp38734p38808.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: RTF - Only simple-page-masters are supported on page-sequences
Hi Robert, Below is a small repo. Thanks for looking into this. ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#; fo:layout-master-set xmlns:xs=http://www.w3.org/2001/XMLSchema; xmlns:fn=http://www.w3.org/2005/xpath-functions; fo:page-sequence-master master-name=page-sequence fo:repeatable-page-master-alternatives fo:conditional-page-master-reference odd-or-even=even master-reference=seq-page-first blank-or-not-blank=not-blank page-position=first/ fo:conditional-page-master-reference odd-or-even=odd master-reference=seq-page-odd blank-or-not-blank=not-blank/ /fo:repeatable-page-master-alternatives /fo:page-sequence-master fo:simple-page-master master-name=seq-page-first page-height=11in page-width=8.5in margin-top=0.5in margin-left=1.0in margin-right=0.5in fo:region-body region-name=xsl-region-body margin-top=0.80in margin-bottom=.5in overflow=auto/ fo:region-before region-name=xsl-region-before extent=0.5in/ fo:region-after region-name=xsl-region-after extent=0.5in/ /fo:simple-page-master fo:simple-page-master master-name=seq-page-odd page-height=11in page-width=8.5in margin-top=0.5in margin-left=1.0in margin-right=0.5in fo:region-body region-name=xsl-region-body margin-top=0.35in margin-bottom=.5in overflow=auto/ fo:region-before region-name=xsl-region-before extent=0.5in/ fo:region-after region-name=xsl-region-after extent=0.5in/ /fo:simple-page-master fo:simple-page-master master-name=alternate-blank page-height=11in page-width=8.5in margin-left=1.0in margin-right=1.0in fo:region-body/ fo:region-before region-name=header-blank extent=11in/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence initial-page-number=1 force-page-count=end-on-even format=1 master-reference=page-sequence id=ps-0006 fo:static-content flow-name=xsl-region-before fo:blockdata/fo:block /fo:static-content fo:static-content flow-name=header-blank fo:block line-height=12pt font-family=Arial font-size=10pt font-weight=bold text-align=center /fo:block /fo:static-content fo:static-content flow-name=xsl-region-after fo:blockdata/fo:block /fo:static-content fo:flow flow-name=xsl-region-body fo:blockdata/fo:block /fo:flow /fo:page-sequence /fo:root -- View this message in context: http://apache-fop.1065347.n5.nabble.com/RTF-Only-simple-page-masters-are-supported-on-page-sequences-tp38734p38793.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: Implementing Change bars
See below. The key is how you set up your page layout. data p rev=1text with revbar/p note ptext in a note No revbar/p p rev=1text in a note with revbar/p /note pno rev bar/p /data xslt: xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:r=http://nwalsh.com/xmlns/extreme2006/recipes/; xmlns=http://www.w3.org/1999/xhtml; xmlns:fn=http://www.w3.org/2005/xpath-functions; xmlns:fo=http://www.w3.org/1999/XSL/Format; version=1.0 xsl:template match=data fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=A4 page-height=11in page-width=8.5in margin-top=0.5in margin-left=0.5in margin-right=1.0in fo:region-body region-name=xsl-region-body margin-top=.6in margin-bottom=1in overflow=auto/ fo:region-before region-name=xsl-region-before extent=1in/ fo:region-after region-name=xsl-region-after-last-even extent=0.75in/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=A4 fo:flow flow-name=xsl-region-body xsl:apply-templates/ /fo:flow /fo:page-sequence /fo:root /xsl:template xsl:template match=p fo:block xsl:call-template name=rev.bar/ xsl:attribute name=margin-top5px/xsl:attribute xsl:attribute name=margin-bottom5px/xsl:attribute xsl:apply-templates/ /fo:block /xsl:template xsl:template match=note fo:block xsl:attribute name=text-aligncenter/xsl:attribute xsl:attribute name=font-size10pt/xsl:attribute xsl:attribute name=font-weightbold/xsl:attribute xsl:apply-templates/ /fo:block /xsl:template xsl:template name=rev.bar xsl:if test=@rev xsl:attribute name=border-start-colorblack/xsl:attribute xsl:attribute name=border-start-stylesolid/xsl:attribute xsl:attribute name=padding-start13pt/xsl:attribute xsl:attribute name=border-start-width2pt/xsl:attribute /xsl:if /xsl:template /xsl:stylesheet -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Implementing-Change-bars-tp16058p38762.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: Implementing Change bars
Dont use margins, use start-indent or end-indent on the fo:block instead of margin. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Implementing-Change-bars-tp16058p38770.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: Implementing Change bars
try this... xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:r=http://nwalsh.com/xmlns/extreme2006/recipes/; xmlns=http://www.w3.org/1999/xhtml; xmlns:fn=http://www.w3.org/2005/xpath-functions; xmlns:fo=http://www.w3.org/1999/XSL/Format; version=1.0 xsl:template match=data fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=A4 page-height=11in page-width=8.5in margin-top=0.5in margin-left=0.5in margin-right=1.0in fo:region-body region-name=xsl-region-body margin-top=.6in margin-bottom=1in overflow=auto/ fo:region-before region-name=xsl-region-before extent=1in/ fo:region-after region-name=xsl-region-after-last-even extent=0.75in/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=A4 fo:flow flow-name=xsl-region-body xsl:apply-templates/ /fo:flow /fo:page-sequence /fo:root /xsl:template xsl:template match=p fo:block xsl:call-template name=rev.bar/ xsl:attribute name=margin-top5px/xsl:attribute xsl:attribute name=margin-bottom5px/xsl:attribute xsl:choose xsl:when test=parent::note fo:block start-indent=1.5in end-indent=1.5in xsl:apply-templates/ /fo:block /xsl:when xsl:otherwise xsl:apply-templates/ /xsl:otherwise /xsl:choose /fo:block /xsl:template xsl:template match=note fo:block xsl:attribute name=text-aligncenter/xsl:attribute xsl:attribute name=font-size10pt/xsl:attribute xsl:attribute name=font-weightbold/xsl:attribute xsl:apply-templates/ /fo:block /xsl:template xsl:template name=rev.bar xsl:if test=@rev xsl:attribute name=border-start-colorblack/xsl:attribute xsl:attribute name=border-end-colorwhite/xsl:attribute xsl:attribute name=border-after-colorwhite/xsl:attribute xsl:attribute name=border-start-stylesolid/xsl:attribute xsl:attribute name=padding-start13pt/xsl:attribute xsl:attribute name=border-start-width2pt/xsl:attribute /xsl:if /xsl:template /xsl:stylesheet -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Implementing-Change-bars-tp16058p38772.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
RTF - Only simple-page-masters are supported on page-sequences
Hi, I had a customer yesterday request a RTF version of a document rather than a PDF. When I ran my FO through the Latest nightly trunk snapshot, I received this error. Only simple-page-masters are supported on page-sequences. Using default simple-page-master from page-sequence-master warning-recto-verso-document. (See position 1402:42) Exception org.apache.fop.apps.FOPException java.lang.NullPointerException I know this use to work in older version of FOP. Is this a bug or was this disabled? Thanks Phil -- View this message in context: http://apache-fop.1065347.n5.nabble.com/RTF-Only-simple-page-masters-are-supported-on-page-sequences-tp38734.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: Implementing Change bars
Note sure if this work, but try calling xsl:call-template name=rev.bar / on the the note template. xsl:template match=note fo:block xsl:use-attribute-sets=atsNote xsl:call-template name=rev.bar / xsl:apply-templates / /fo:block /xsl:template -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Implementing-Change-bars-tp16058p38735.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: Implementing Change bars
Hi David, Remember you are using XSLT. You can wrap the rev.bar template call in a choose/if statement and check if a condition is met to apply the template rev.bar. e.g. if child::p/@change='true' -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Implementing-Change-bars-tp16058p38737.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: Implementing Change bars
Hi David, I would need to see a sample of the xml as well as the xslt to help more. But basically you need to use XSLT axes http://www.w3schools.com/xpath/xpath_axes.asp http://www.w3schools.com/xpath/xpath_axes.asp to test node conditions. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Implementing-Change-bars-tp16058p38739.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: Implementing Change bars
I have been able to use the following with XSLT to render change bars with much success: fo:block xsl:call-template name=rev.bar/ . xsl:template name=rev.bar xsl:if test=(matches($changetype, 'changed') or matches($changetype, 'revised') or matches($changetype, 'revised-pending') or matches($changetype, 'modify')) and not(matches($changetype, 'new')) xsl:attribute name=border-end-colorblack/xsl:attribute xsl:attribute name=border-after-colorwhite/xsl:attribute xsl:attribute name=border-before-colorwhite/xsl:attribute xsl:attribute name=border-end-stylesolid/xsl:attribute xsl:attribute name=font-family select=$default-font/ xsl:attribute name=padding-end13pt/xsl:attribute xsl:attribute name=border-end-width2pt/xsl:attribute /xsl:if /xsl:template -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Implementing-Change-bars-tp16058p38718.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: Implementing Change bars
the outer most fo:block... If should work with alternating page margins. My odd pages have a 1 inch margin on the left and my even has a 1in margin on the right and it works. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Implementing-Change-bars-tp16058p38720.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
EventListener - SEVERE events
Hi, I have an EventListner that listens for events and I am able to listen and catch Info, Warning, Error and Fatal. However, I am unable to listen for SEVERE: Jun 4, 2013 6:36:38 AM org.apache.fop.fo.properties.LengthRangeProperty checkConsistency SEVERE: forcing max to min in LengthRange http://xmlgraphics.apache.org/fop/1.1/events.html How can I catch SEVERE events? I am using FOP Trunk. Thx Phil -- View this message in context: http://apache-fop.1065347.n5.nabble.com/EventListener-SEVERE-events-tp38650.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: EventListener - SEVERE events
Thanks. These errors are being handled by the Apache Common Logging. I was able to turn off Logging: System.setProperty(org.apache.commons.logging.Log, org.apache.commons.logging.impl.NoOpLog); -- View this message in context: http://apache-fop.1065347.n5.nabble.com/EventListener-SEVERE-events-tp38650p38652.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: Node value on a header page
This is more of a XSLT question then FOP. In xslt 1.0 you can use the the Muenchian Method http://www.jenitennison.com/xslt/grouping/muenchian.html http://www.jenitennison.com/xslt/grouping/muenchian.html and in xslt 2.0 you can use xsl:for-each-group -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Node-value-on-a-header-page-tp38557p38558.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: FOP memory growing with a lot of page-sequence blocks (250000)
Hi, I've created some pretty large PDFs (e.g 500+ pages) with a lot of graphics. IMO, although memory usage increases, eventually Java's Garbage Collection will free up your memory. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-memory-growing-with-a-lot-of-page-sequence-blocks-25-tp38355p38356.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
Error after updating trunk
Hi, After update my local copy of trunk this morning and rebuilding FOP I get the following error while running a FO to PDF transformation. java.lang.IllegalStateException: Event model isn't consistent with the EventProducer interface. Please rebuild FOP! Affected method: org.apache.fop.layoutmgr.BlockLevelEventProducer.staticRegionOverflow Any ideas? I'll try to put a repo together, but this usually takes be about a day.. Stack: java.lang.IllegalStateException: Event model isn't consistent with the EventProducer interface. Please rebuild FOP! Affected method: org.apache.fop.layoutmgr.BlockLevelEventProducer.staticRegionOverflow at org.apache.fop.events.DefaultEventBroadcaster$1.invoke(DefaultEventBroadcaster.java:156) at com.sun.proxy.$Proxy0.staticRegionOverflow(Unknown Source) at org.apache.fop.layoutmgr.StaticContentLayoutManager.doLayout(StaticContentLayoutManager.java:150) at org.apache.fop.layoutmgr.PageSequenceLayoutManager.layoutSideRegion(PageSequenceLayoutManager.java:179) at org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:186) at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:114) at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267) at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:129) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:349) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:181) at net.sf.saxon.event.ContentHandlerProxy.endElement(ContentHandlerProxy.java:391) at net.sf.saxon.event.NamespaceReducer.endElement(NamespaceReducer.java:213) at net.sf.saxon.event.ReceivingContentHandler.endElement(ReceivingContentHandler.java:443) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 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 Source) at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:404) at net.sf.saxon.event.Sender.send(Sender.java:214) at net.sf.saxon.IdentityTransformer.transform(IdentityTransformer.java:30) at com.sdi.apache.Testing.generateDoc(Testing.java:163) at com.gui.MainForm.GeneratePdf(MainForm.java:159) -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Error-after-updating-trunk-tp38326.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: Error after updating trunk
Thanks Luis. Rebuild and Clean did not solve the issue. I was able to track down the issue to a missing graphic. It seems after this last update, if the graphic is missing, the error occurs. Once again, I'll try to come up with a repo. Thanks for the help. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Error-after-updating-trunk-tp38326p38330.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: Error after updating trunk
Forgot to mention, this is in the flow region. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Error-after-updating-trunk-tp38326p38334.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: java.lang.IllegalArgumentException: Message pattern contains unsupported field name: elementName
Thanks Luis, I'll try your code and report back. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/java-lang-IllegalArgumentException-Message-pattern-contains-unsupported-field-name-elementName-tp38286p38314.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: java.lang.IllegalArgumentException: Message pattern contains unsupported field name: elementName
I was able to track this down and it is not related to a corrupt graphic. It looks like if the text overflows a column, then the error occurs. Below is a link to a repo of the issue. I made it as small as possible. Search for the sentence BUG HERE LONG TEXT OVERFLOW. If you delete the text it renders fine. Example FO http://www.aviationcontentmanagement.com/images/error2.txt -- View this message in context: http://apache-fop.1065347.n5.nabble.com/java-lang-IllegalArgumentException-Message-pattern-contains-unsupported-field-name-elementName-tp38286p38305.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: java.lang.IllegalArgumentException: Message pattern contains unsupported field name: elementName
Hi Sorry, I am a running FO to PDF transformation. I am using embedded FOP (calling FOP from my Java app). When I run the FO file from my app, I get the error. When I run the FOP file from the command line for FOP, it transforms with no problem. Here is my code: try { OutputStream out = new FileOutputStream(out.pdf); System.out.println(Creating PDF Now.); FopFactoryBuilder builder = new FopConfParser(new File(com.acm.constants.Constants.FOPCONFIG)).getFopFactoryBuilder(); builder.setBaseURI(new File(workingFolder).getAbsoluteFile().toURI()); builder.setStrictFOValidation(false); // builder.setComplexScriptFeatures(complexScriptFeatures); FopFactory fopFactory = builder.build(); try { System.out.println(FOUserAgent); FOUserAgent foUserAgent = fopFactory.newFOUserAgent(); // configure foUserAgent as desired // Setup output stream. Note: Using BufferedOutputStream // for performance reasons (helpful with FileOutputStreams). out = new BufferedOutputStream(out); System.out.println(FOP object.); // Construct fop with desired output format Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out); // Setup JAXP using identity transformer TransformerFactory factory = TransformerFactory.newInstance(); Transformer transformer = factory.newTransformer(); // identity transformer // Setup input stream Source src = new StreamSource(com.acm.constants.Constants.FoResult); // Resulting SAX events (the generated FO) must be piped through to FOP Result res = new SAXResult(fop.getDefaultHandler()); System.out.println(Transforming); // Start XSLT transformation and FOP processing transformer.transform(src, res); // Result processing FormattingResults foResults = fop.getResults(); System.out.println(Generated + foResults.getPageCount() + pages in total.); System.out.println(Deleting FO); } catch (Exception e) { System.out.println(Error); e.printStackTrace(System.err); } finally { out.close(); } } catch (SAXException ex) { Logger.getLogger(XmlToPdfWorker.class.getName()).log(Level.SEVERE, null, ex); } catch (IOException ex) { Logger.getLogger(XmlToPdfWorker.class.getName()).log(Level.SEVERE, null, ex); } -- View this message in context: http://apache-fop.1065347.n5.nabble.com/java-lang-IllegalArgumentException-Message-pattern-contains-unsupported-field-name-elementName-tp38286p38291.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: java.lang.IllegalArgumentException: Message pattern contains unsupported field name: elementName
I was able to trace the error down to some graphics. I am not sure if the images are corrupt. I will try to put a small repo together... stand by Thx -- View this message in context: http://apache-fop.1065347.n5.nabble.com/java-lang-IllegalArgumentException-Message-pattern-contains-unsupported-field-name-elementName-tp38286p38292.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: FopFactory in Trunk
Hi Luis, Thank you for the help. Since the error is being thrown from org.apache.xmlgraphics.image.loader.ImageException, I would have to assume this issue has to do with XML Graphics Common trunk. I'll do more investigating... -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FopFactory-in-Trunk-tp38261p38285.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
java.lang.IllegalArgumentException: Message pattern contains unsupported field name: elementName
Running embedded code in trunk, I am getting the follow error: Any ideas? If you need a small repo, I'll put one together. Thx java.lang.IllegalArgumentException: Message pattern contains unsupported field n ame: elementName at org.apache.fop.util.text.AdvancedMessageFormat$SimpleFieldPart.write( AdvancedMessageFormat.java:324) at org.apache.fop.util.text.AdvancedMessageFormat$CompositePart.write(Ad vancedMessageFormat.java:450) at org.apache.fop.util.text.AdvancedMessageFormat.format(AdvancedMessage Format.java:207) at org.apache.fop.util.text.AdvancedMessageFormat.format(AdvancedMessage Format.java:197) at org.apache.fop.events.EventFormatter.format(EventFormatter.java:139) at org.apache.fop.events.EventFormatter.format(EventFormatter.java:93) at org.apache.fop.events.EventFormatter.format(EventFormatter.java:81) at org.apache.fop.events.EventFormatter.format(EventFormatter.java:71) at org.apache.fop.events.LoggingEventListener.processEvent(LoggingEventL istener.java:80) at org.apache.fop.events.CompositeEventListener.processEvent(CompositeEv entListener.java:61) at org.apache.fop.events.FOPEventListenerProxy.processEvent(FOPEventList enerProxy.java:70) at org.apache.fop.apps.FOUserAgent$FOPEventBroadcaster.broadcastEvent(FO UserAgent.java:608) at org.apache.fop.events.DefaultEventBroadcaster$1.invoke(DefaultEventBr oadcaster.java:172) at com.sun.proxy.$Proxy4.lineOverflows(Unknown Source) at org.apache.fop.layoutmgr.inline.LineLayoutManager$LineBreakingAlgorit hm.updateData2(LineLayoutManager.java:402) at org.apache.fop.layoutmgr.BreakingAlgorithm.calculateBreakPoints(Break ingAlgorithm.java:1439) at org.apache.fop.layoutmgr.BreakingAlgorithm.findBreakingPoints(Breakin gAlgorithm.java:600) at org.apache.fop.layoutmgr.BreakingAlgorithm.findBreakingPoints(Breakin gAlgorithm.java:506) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findOptimalBreaking Points(LineLayoutManager.java:901) at org.apache.fop.layoutmgr.inline.LineLayoutManager.createLineBreaks(Li neLayoutManager.java:821) at org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElement s(LineLayoutManager.java:637) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(Bloc kLayoutManager.java:142) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthEleme nts(BlockStackingLayoutManager.java:288) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(Bloc kLayoutManager.java:114) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(Bloc kLayoutManager.java:106) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(Bloc kLayoutManager.java:142) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthEleme nts(BlockStackingLayoutManager.java:288) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(Bloc kLayoutManager.java:114) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(Bloc kLayoutManager.java:106) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextChildElements(Bloc kLayoutManager.java:142) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthEleme nts(BlockStackingLayoutManager.java:288) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(Bloc kLayoutManager.java:114) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(Bloc kLayoutManager.java:106) at org.apache.fop.layoutmgr.table.TableCellLayoutManager.getNextKnuthEle ments(TableCellLayoutManager.java:188) at org.apache.fop.layoutmgr.table.RowGroupLayoutManager.createElementsFo rRowGroup(RowGroupLayoutManager.java:120) at org.apache.fop.layoutmgr.table.RowGroupLayoutManager.getNextKnuthElem ents(RowGroupLayoutManager.java:63) at org.apache.fop.layoutmgr.table.TableContentLayoutManager.getKnuthElem entsForRowIterator(TableContentLayoutManager.java:246) at org.apache.fop.layoutmgr.table.TableContentLayoutManager.getNextKnuth Elements(TableContentLayoutManager.java:185) at org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElement s(TableLayoutManager.java:267) at org.apache.fop.layoutmgr.FlowLayoutManager.getNextChildElements(FlowL ayoutManager.java:221) at org.apache.fop.layoutmgr.FlowLayoutManager.addChildElements(FlowLayou tManager.java:145) at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowL ayoutManager.java:114) at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowL ayoutManager.java:67) at org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker .java:221) at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBre aker.java:682) at
Re: FopFactory in Trunk
Thanks Luis. By chance do you know what version for JAI is used to render graphics is trunk? I can not seem to find the right version. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FopFactory-in-Trunk-tp38261p38279.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: FopFactory in Trunk
Hi Luis, Yes I am talking about jai_imageio.jar. However I have put the jai file in my class path and get this error. I am also attaching the image. Thanks for the help. SEVERE: Image not available. URI: file:/Users/Content/Media/ICN-LOGO-AAA-DA1-0-U8025-00512-A-04-1.png. Reason: org.apache.xmlgraphics.image.loader.ImageException: The file format is not supported. No ImagePreloader found for file:/Users/Content/Media/ICN-LOGO-AAA-DA1-0-U8025-00512-A-04-1.png (See position 1224:-1) org.apache.xmlgraphics.image.loader.ImageException: The file format is not supported. No ImagePreloader found for file:/Users/Content/Media/ICN-LOGO-AAA-DA1-0-U8025-00512-A-04-1.png at org.apache.xmlgraphics.image.loader.ImageManager.preloadImage(ImageManager.java:181) at org.apache.xmlgraphics.image.loader.cache.ImageCache.needImageInfo(ImageCache.java:128) at org.apache.xmlgraphics.image.loader.ImageManager.getImageInfo(ImageManager.java:123) at org.apache.fop.fo.flow.ExternalGraphic.bind(ExternalGraphic.java:81) at org.apache.fop.fo.FObj.processNode(FObj.java:128) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:280) at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:175) http://apache-fop.1065347.n5.nabble.com/file/n38283/ICN-LOGO-AAA-DA1-0-U8025-00512-A-04-1.png -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FopFactory-in-Trunk-tp38261p38283.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
FopFactory in Trunk
Hi, I am not sure if this is a change in 1.1 or the trunk, but on the newInstance() Method on the static class FopFactory, it now requires an argument that interfaces the FopFactoryConfig() class. private FopFactory fopFactory = FopFactory.newInstance(new MyFopFactoryConfig()); By chance is there any sample code to do a simple transformation? Thanks. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FopFactory-in-Trunk-tp38261.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: How to get trunk working
This is a bit outdated. I wrote the setup for Netbeans 6.5 years ago, but was able to use it as a reference in later versions of Netbeans. Make sure you have the latest Xml Graphics Library. http://wiki.apache.org/xmlgraphics-fop/FOPIDESetupGuide http://wiki.apache.org/xmlgraphics-fop/FOPIDESetupGuide -- View this message in context: http://apache-fop.1065347.n5.nabble.com/How-to-get-trunk-working-tp38213p38216.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: How to get trunk working
Instead of referencing the the XML Graphics Library, you can check out that XML Graphics trunk and reference that in your project. I found that the FOP trunk has dependencies on the XML Graphics trunk. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/How-to-get-trunk-working-tp38213p38218.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: FOP- Trunk - Nested tables with retrieve-table-marker
For whats it's worth. I just updated my local copy of the trunk, compiled and ran the example. I didn't have any issues. I would most definitely get the latest from the trunk. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-Trunk-Nested-tables-with-retrieve-table-marker-tp37656p37947.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: FOP- Trunk - Nested tables with retrieve-table-marker
I believe it will be release in the next version (1.2). In the mean time you can check out the trunk and compile it. I've already updated my stylesheets to work with the trunk. This change is a great improvement to how the markers behave. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-Trunk-Nested-tables-with-retrieve-table-marker-tp37656p37946.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: FOP- Trunk - Nested tables with retrieve-table-marker
Thanks Luis! Appreciate the help. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-Trunk-Nested-tables-with-retrieve-table-marker-tp37656p37658.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
FOP- Trunk - Nested tables with retrieve-table-marker
Hi, I am using table markers for printing continuation labels for paragraphs and tables when they get split over pages. So there is always nested tables. In the attached example my inner table spans over the first, second and third page. The marker PARA TITLE - Cont should appear in the header of the second and third page. However it only appears on the third (last) page. I believe this is because the table-cell in which the nested table is, spans more than on page. I am not sure how to get the marker to show on the second page. This only is happening when my table-cell spans more than one page. Here is the FO: output-marker-issue.fo http://apache-fop.1065347.n5.nabble.com/file/n37656/output-marker-issue.fo Current output: Page one - PARA TITLE Page two - PARA TITLE Page three - PARA TITLE - Cont Desired output: Current output: Page one - PARA TITLE Page two - PARA TITLE - Cont Page three - PARA TITLE - Cont -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-Trunk-Nested-tables-with-retrieve-table-marker-tp37656.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: Omitting Bottom table border on page-break
Thanks Chris and sorry for the delay. I will give it a try. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Omitting-Bottom-table-border-on-page-break-tp37527p37601.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: Omitting Bottom table border on page-break
Thank you Chris, but unfortunately this is the opposite of what I want to accomplish (if I understand your post). In this case I want the bottom border to be absent except on the last page. Chris Bowditch wrote Your requirement sounds similar to the conditionality component of border property properties. By default this is set to discard, so I would expect border-bottom to be absence on the bottom of a table spanning 2 pages on page 1 and present on page 2. Setting conditionality to retain will make the border be drawn on all pages that the table spans over. - To unsubscribe, e-mail: fop-users-unsubscribe@.apache For additional commands, e-mail: fop-users-help@.apache -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Omitting-Bottom-table-border-on-page-break-tp37527p37553.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
Omitting Bottom table border on page-break
Hello, I have the following requirement for my xsl:fo : When a table is continued on more than one page.. The closing rule is omitted at the foot of a continued table; the opening rule is continued at the head of the continued portion along with the heading title data. Using xslt I could omit the bottom border if and only if I knew where the page-break was going to occur. This could be problematic and could be a lot of work for the xml author. Especially if the xml file is modified. That could change the location of where the page breaks. Is there a way to do this in xsl-fo, to know if the page is going to break? If not, any ideas on how to do this automatically? Thx -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Omitting-Bottom-table-border-on-page-break-tp37527.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: FOP- Trunk - Duplicate LayoutManagers for class
Thanks for the update Luis. I've been able to work around this issue, so no worries. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-Trunk-Duplicate-LayoutManagers-for-class-tp37393p37422.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
FOP- Trunk - Duplicate LayoutManagers for class
Hi, I am receiving the below error using table-markers in the trunk. Usually when I receive an error, I will try to cut the FO down to the page sequence and then cut it down to the block to isolate the error. In this case, I the FO file is large. When I think I have the table/block, the error does not occur. When the FO is created, my xslt stylesheet does not indent the xml. When I run the FO with no-indent, I do not get the error. When I pretty-print or indent the FO, the error occurs. Trying to narrow this down to a working sample for you to reproduce the error is proving difficult. I will continue to try to get a repo, but in the mean while can someone give me a little more info on the error if possible. Exception java.lang.IllegalStateException: Duplicate LayoutManagers for class class org.ap ache.fop.fo.flow.RetrieveTableMarker found, only one may be declared. Thx -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-Trunk-Duplicate-LayoutManagers-for-class-tp37393.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: FOP- Trunk - Duplicate LayoutManagers for class
I was able to narrow down the error to a marker with a child fo:inline: fo:marker marker-class-name=primary-para-continuation fo:inlineMY PARA - Cont/fo:inline /fo:marker Would this be a markup error rather than a java.lang.IllegalStateException: Duplicate LayoutManagers class org.apache.fop.fo.flow.RetrieveTableMarker exception? Also, is it possible for the Exception to provide the FO line number? -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-Trunk-Duplicate-LayoutManagers-for-class-tp37393p37394.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: FOP- Trunk - Duplicate LayoutManagers for class
Hi Luis, Please see attached sample. I got it as small as possible. Search for the 2 comments: Uncomment this marker and it works and or remove this fo:inline I noticed that if I add a marker before the first fo:table-row, it works even with the fo:inline. If I comment out the first marker and leave the fo:inline, I get the error. Thanks for looking at this. Phil output-marker-error.fo http://apache-fop.1065347.n5.nabble.com/file/n37399/output-marker-error.fo -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-Trunk-Duplicate-LayoutManagers-for-class-tp37393p37399.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: FOP- Trunk - Duplicate LayoutManagers for class
Here is another copy with the marker commented out output-marker-error.fo http://apache-fop.1065347.n5.nabble.com/file/n37400/output-marker-error.fo which also triggers the error. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-Trunk-Duplicate-LayoutManagers-for-class-tp37393p37400.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: Extract font width using FOP
Hi Glenn, Would this measurement be considered relative? If I pass my java extension (per example), a string with a Font that is Arial 9, Font Metrics will return a length. This is outside of FOP. Are you saying that Font 9 width can be different if FOP is not using AWT? Thx Phil -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Extract-font-width-using-FOP-tp37360p37366.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: Extract font width using FOP
You can right an extension in Java and use Font Metrics... I wrote this a while back, so it might need to be updated. This example will return the width of a String. import java.awt.Font; import java.awt.FontMetrics; import java.awt.Toolkit; public class StringLength { public static void main(String[] args) throws NumberFormatException { if(args.length 2){ System.out.println(StringLength string int font size); System.exit(0); }else{ getStringLength(args[0], Integer.parseInt(args[1])); } } @SuppressWarnings(deprecation) public static int getStringLength(String str, int size){ Toolkit toolkit = Toolkit.getDefaultToolkit(); int stringlen = 0; Font font = new Font(Arial, Font.PLAIN, 9); FontMetrics fontMetrics = toolkit.getFontMetrics(font); System.out.println ([Stylesheet Info] Calculating width for: + str + : + fontMetrics.stringWidth(str)); stringlen = fontMetrics.stringWidth(str); return stringlen; } } -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Extract-font-width-using-FOP-tp37360p37361.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: text on even pages, images on odd pages
Thanks, I'll give your suggestion a try. My xml comes in as fragments, so images can be associated with the text. In my case, A fragment defines a block of content about a subject. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/text-on-odd-pages-images-on-even-pages-tp37330p37354.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
text on even pages, images on odd pages
Hi, I have an odd requirement for outputting text and images for a pocket size book (4in x 5.5in). The requirement states: Place text for pocket-sized manuals on the right-hand pages with supporting illustration on the facing left-hand pages Is this possible with xsl-fo, that is, to request a figure be rendered on an even page only or do I need to manipulated the xml-xsl-fo to rearrange the text images into alternating page sequences? After some though, I think this is almost an impossible requirement to handle by xslt/xsl-fo programing. Any suggestions or ideas? -- View this message in context: http://apache-fop.1065347.n5.nabble.com/text-on-even-pages-images-on-odd-pages-tp37330.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: text on even pages, images on odd pages
Thanks. This is a good approach except I could have text only which would render on both odd and even. Perhaps I could use markers defined on the odd pages for the images, but this might be an issue if more than one image is found on a page... I'll work on it. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/text-on-odd-pages-images-on-even-pages-tp37330p37332.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: FOP 1.0 out of memory on a fo with 100.000 fo:table
Hi, It looks like you're only allocating 1024mb. If you want to allocate more memory, you need to tell the JVM to do so: from: java.exe -Xmx1024m –Xms1024m to: java.exe -Xmx2048m –Xms1024m Also, I am curious. What are your systems specs? Especially if its 32 or 64 bit. I have had to move to a 64bit machine on Windows XP because on a 32 bit machine. Windows would not allow me not allocate more than 2048 memory to the JVM. Moving to a 64 bit machine allows me up to 6GB (I never need to go higher or tried to either). -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-1-0-out-of-memory-on-a-fo-with-100-000-fo-table-tp37151p37152.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: FOP 1.0 out of memory on a fo with 100.000 fo:table
In my experience FOP consumes a lot of memory when there are large images. From what I remember a page sequence is held in memory not a page. However I could be mistaken. I did see a posting about large paragraphs and tables -- see http://apache-fop.1065347.n5.nabble.com/FOP-1-1-out-of-memory-td37143.html -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-1-0-out-of-memory-on-a-fo-with-100-000-fo-table-tp37151p37163.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
FOP Trunk - . No ImagePreloader found
Hi, I am using trunk to render a pdf and receive the following error: image not available. URI: file:C:/sandbox/A-02-1.png. Reason: org.apache.xmlgraphics.image.loader.ImageException: The file format is not supported. No ImagePreloader found for file:C:/sandbox/A-02-1.png (See position 7109:180) org.apache.xmlgraphics.image.loader.ImageException: The file format is not supported. No ImagePreloader found for file: C:/sandbox/A-02-1.png It should be noted that in order to compile the trunk, I have to compile the latest version of xmlgraphics trunk. Perhaps I am missing a reference or conf setting. Any ideas as to why this is happening? Thx Phil -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-Trunk-No-ImagePreloader-found-tp37038.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: Skipping page numbers on cover sheets
Hi Samuel, Its difficult to see what your xslt is outputting to FO without an input file. You should provide a small FO file that demonstrates the issue your having. If you post an FO file, I'll gladly take a look. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Skipping-page-numbers-on-cover-sheets-tp37037p37041.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: FOP Trunk - . No ImagePreloader found
Solved - I was missing the JAI files. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/FOP-Trunk-No-ImagePreloader-found-tp37038p37043.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
fo:retrieve-table-marker, exclude first page
Hi, I am working on using the new fo:retrieve-table-marker that was implemented in the trunk and have a question in regards to how to achieve the following: I want my a marker to appear only on the first page and another marker to appear on the Second page thru last: fo:retrieve-table-marker retrieve-class-name=primary-para-continuation-first retrieve-position-within-table=first-starting retrieve-boundary-within-table=table/ fo:retrieve-table-marker retrieve-class-name=primary-para-continuation retrieve-position-within-table=last-ending retrieve-boundary-within-table=table/ The above markers show up on all pages. Desired output: Para Title (primary-para-continuation-first) Para Title Continued (primary-para-continuation) Para Title Continued (primary-para-continuation) Thanks For the help -- View this message in context: http://apache-fop.1065347.n5.nabble.com/fo-retrieve-table-marker-exclude-first-page-tp37020.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: fo:retrieve-table-marker, exclude first page
Thanks. I'll give this a try. -- View this message in context: http://apache-fop.1065347.n5.nabble.com/fo-retrieve-table-marker-exclude-first-page-tp37020p37022.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: Force Page Break in fo:list-item
Thanks - I will try the later for now. Putting the block between the list items seem to be easier solution at this point. Thx I will report back -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Force-Page-Break-in-fo-list-item-tp36554p36556.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
Force Page Break in fo:list-item
Hi all, I am using FOP 1.0 and 0.95. How can I force a Page Break in a fo:list-item? I've tried break-before which drops the content and keep-with-next on the list-block or list-item. Neither work. Thx -- View this message in context: http://apache-fop.1065347.n5.nabble.com/Force-Page-Break-in-fo-list-item-tp36554.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
WARNING: 1 link target could not be fully resolved and was now point to the top of the page or is dysfunctional.
Hi, I am using FOP 0.95 and get the below error. I am using a somewhat complicated page-sequence-master. I narrowed the area of the FO that is for some reason not printing out. WARNING: 1 link target could not be fully resolved and was now point to the top of the page or is dysfunctional. What does this mean? I can prepare a repo of the problem if needed. Thx -- View this message in context: http://old.nabble.com/WARNING%3A-1-link-target-could-not-be-fully-resolved-and-was-now-point-to-the-top-of-the-page-or-is-dysfunctional.-tp33435771p33435771.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: WARNING: 1 link target could not be fully resolved and was now point to the top of the page or is dysfunctional.
Thanks. I confirmed that this does not happen in 1.0. I think I found a work-a-around for 0.95. If I have any issues, I will post back. thx for the help. lmpmbernardo wrote: First you should test with FOP 1.0. If the problem is also present there please provide a (slimmed down if possible) example fo file that shows the issue and then it will be easier to help. -- View this message in context: http://old.nabble.com/WARNING%3A-1-link-target-could-not-be-fully-resolved-and-was-now-point-to-the-top-of-the-page-or-is-dysfunctional.-tp33435771p33436690.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: fo:marker bleeding issue [fop 0.95 FOP 1.0]
Hi, Sorry for the delay in responding. As Chris mentioned, there are some limitations. However, you can email me directly to help get you started. Markers are not my favorite subject, but once you get the hang of them you can do some really cool stuff. Phil champagne_chary wrote: One line is all it need.. If only I could get to grips with the method used/ see how xslt is formated to produce given xsl.fo -- View this message in context: http://old.nabble.com/fo%3Amarker-bleeding-issue--fop-0.95---FOP-1.0--tp29532209p32310558.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: region-before auto size
You can write your xslt to check for an image text or image or text and write the correct fo:region-before -- View this message in context: http://old.nabble.com/region-before-auto-size-tp29621196p29654794.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: fo:marker bleeding issue [fop 0.95 FOP 1.0]
Hi Jeremias, Thanks for following up. In your opinion, how hard would it be to either create an extension (like what was used in 20.5) or implementing it in the next release? Thanks, Phil Jeremias Maerki-2 wrote: The hard truth is that someone has to implement table markers to achieve that. And that's going to be tricky which is mostly the reason why it hasn't been done, yet. On 27.08.2010 19:31:44 bonekrusher wrote: Hi List, Can anyone provide some guidance on this issue? Thanks, bonekrusher wrote: Hi, In order to have table headers continued in my pdf output, I am using markers. Everything works fine until there is more then one line on the 1st marker and there is a second marker. If the 1st marker is more than one line and I add a second marker, the marker bleeds into the table on the second page (see attached pdf). One solution to to increase the @margin-top on the region-body. The problem with that is there are many times when the markers are not needed and there is a huge whitespace where the markers would go. For example, if the margin-top=1.0in, there would be a one inch whitespace if the markers are not called. See attached example fo and pdf. Page 2 of the pdf is where the problem occurs. I need the table to start below Table 3. Table Title Marker - Continued. I am not sure how to resolve this. http://old.nabble.com/file/p29532209/testMaint.fo testMaint.fo http://old.nabble.com/file/p29532209/example.pdf example.pdf Thanks for the help -- View this message in context: http://old.nabble.com/fo%3Amarker-bleeding-issue--fop-0.95---FOP-1.0--tp29532209p29555037.html Sent from the FOP - Users mailing list archive at Nabble.com. Jeremias Maerki - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- View this message in context: http://old.nabble.com/fo%3Amarker-bleeding-issue--fop-0.95---FOP-1.0--tp29532209p29573703.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: fo:marker bleeding issue [fop 0.95 FOP 1.0]
Hi List, Can anyone provide some guidance on this issue? Thanks, bonekrusher wrote: Hi, In order to have table headers continued in my pdf output, I am using markers. Everything works fine until there is more then one line on the 1st marker and there is a second marker. If the 1st marker is more than one line and I add a second marker, the marker bleeds into the table on the second page (see attached pdf). One solution to to increase the @margin-top on the region-body. The problem with that is there are many times when the markers are not needed and there is a huge whitespace where the markers would go. For example, if the margin-top=1.0in, there would be a one inch whitespace if the markers are not called. See attached example fo and pdf. Page 2 of the pdf is where the problem occurs. I need the table to start below Table 3. Table Title Marker - Continued. I am not sure how to resolve this. http://old.nabble.com/file/p29532209/testMaint.fo testMaint.fo http://old.nabble.com/file/p29532209/example.pdf example.pdf Thanks for the help -- View this message in context: http://old.nabble.com/fo%3Amarker-bleeding-issue--fop-0.95---FOP-1.0--tp29532209p29555037.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
fo:marker bleeding issue [fop 0.95 FOP 1.0]
Hi, In order to have table headers continued in my pdf output, I am using markers. Everything works fine until there is more then one line on the 1st marker and there is a second marker. If the 1st marker is more than one line and I add a second marker, the marker bleeds into the table on the second page (see attached pdf). One solution to to increase the @margin-top on the region-body. The problem with that is there are many times when the markers are not needed and there is a huge whitespace where the markers would go. For example, if the margin-top=1.0in, there would be a one inch whitespace if the markers are not called. See attached example fo and pdf. Page 2 of the pdf is where the problem occurs. I need the table to start below Table 3. Table Title Marker - Continued. I am not sure how to resolve this. http://old.nabble.com/file/p29532209/testMaint.pdf.fo testMaint.pdf.fo http://old.nabble.com/file/p29532209/example.pdf example.pdf Thanks for the help -- View this message in context: http://old.nabble.com/fo%3Amarker-bleeding-issue--fop-0.95---FOP-1.0--tp29532209p29532209.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: Created XSLT_FO by Altova StyleVision, not work on Apache FOP
Happy to help. It looks like you are using the default xslt processor for fop which uses Apache Xalan-J, a xslt 1.0 processor (http://xalan.apache.org/). Your stylesheets is for a 2.0 processor. Export your stylevision sps project to a xsl-fo 1.0 file. Good luck. Phil -- View this message in context: http://old.nabble.com/Created-XSLT_FO-by-Altova-StyleVision%2C-not-work-on-Apache-FOP-tp28492466p28502469.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: Created XSLT_FO by Altova StyleVision, not work on Apache FOP
Hi, Your xml and xslt transform fine via FOP 0.95 command line. What version of apache are you using? I am confused about what you mean by export the .sps file and save as xsl_fo. Do you mean you generate the xslt file from stylevision? Are you using apache from the command line or through XMLSpy? I would suggest breaking away from using stylevision. This is a cool tool to make the WYSIWYG, but has a lot of limitations when writing FO. soph wrote: I have an XML file and its schema. I want to create an XSL_FO file for converting XML to PDF by Apache FOP. I created an XSLT_FO file by using Altova StyleVision. The pdf looks fine on Preview PDF in Altova StyleVision. I export the sps and save as XSLT_FO. When I use Apache FOP to process the XML and the XSLT_FO to PDF. I keep receiving error :Can not resolve namespace prefix... The XML is valid in XMLSPy. I don't see any namespace problem. Can any one help me? The xml http://old.nabble.com/file/p28492466/ClinicalDoc.xml ClinicalDoc.xml and the xslt_fo http://old.nabble.com/file/p28492466/XSLT_Fo_bystylevision.xslt XSLT_Fo_bystylevision.xslt are attached. Thank you !! -- View this message in context: http://old.nabble.com/Created-XSLT_FO-by-Altova-StyleVision%2C-not-work-on-Apache-FOP-tp28492466p28497034.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: fox:external-document not showing all pages
Thanks for the help. I have verified that the machine which is having the problem is running a 64bit version of java. java version 1.6.0_11 Java(TM) SE Runtime Environment (build 1.6.0_11-b03) Java HotSpot(TM) 64-Bit Server VM (build 11.0-b16, mixed mode) We need to run FOP on a 64 bit server because our documents required about 5 gb of heap, which can not be done on our 32 bit machines... Thanks for the help -- View this message in context: http://old.nabble.com/fox%3Aexternal-document-not-showing-all-pages-tp28393726p28410793.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: fox:external-document not showing all pages
Hi Pascal, I am running FOP via a batch file on the server (no Jboss). FOP runs fine. I think this has something to with the FOX extension. I will continue to investigate. Thanks, - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- View this message in context: http://old.nabble.com/fox%3Aexternal-document-not-showing-all-pages-tp28393726p28410910.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: fox:external-document not showing all pages
Thanks John, I double checked and reloaded the files on the PC that its not working and still having the problem. Perhaps the issue lies in the pdf... Any other thoughts? -- View this message in context: http://old.nabble.com/fox%3Aexternal-document-not-showing-all-pages-tp28393726p28398990.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
fox:external-document not showing all pages
Hi I am using fox:external-document to add a 8 page pdf to my pdf output via Apache FOP. On my machine (PC) the pdf is added and all 8 pages show up, however on another machine (PC) only the first page shows up. I am using all the exact files on both machines (via svn). here is the fo code: fox:external-document xmlns:fox=http://xmlgraphics.apache.org/fop/extensions; content-type=pdf src=C:\stylesheets\forms.pdf/ Any thoughts why this would work on one machine and not another? Thanks, -- View this message in context: http://old.nabble.com/fox%3Aexternal-document-not-showing-all-pages-tp28393726p28393726.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: Help embeding fonts
Thanks for the help. I added base base-uri=file:///C:/Program Files(x86)/fop-0.95/fonts./base to the .xconf file, but get the same message and the fonts are not embedding. Is my markup correct in the xconf file? Thanks, -- View this message in context: http://old.nabble.com/Help-embeding-fonts-tp28254961p28255545.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: Help embeding fonts
Awesome. Thx -- View this message in context: http://old.nabble.com/Help-embeding-fonts-tp28254961p28257449.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: fo:repeatable-page-master-alternatives - first only page blank condition
Thanks Pascal, With your suggestion, it works. Thanks again. Phil -- View this message in context: http://old.nabble.com/fo%3Arepeatable-page-master-alternatives---first-only-page-blank-condition-tp28041214p28169058.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
fo:repeatable-page-master-alternatives - first only page blank condition
Hi, How can I set up my repeatable-page-master-alternatives to detect a page sequence that has only one page and the next page is blank? My desired output is to have a recto-verso document, so the pages end-on-even. If the last page is odd, an even blank page is printed. The odd page will display in the region after Page 1 / 2 Blank to indicate the next page is intentionally left blank. Everything works with the following code, unless the page sequence is only a single odd page. fo:page-sequence-master master-name=document fo:repeatable-page-master-alternatives fo:conditional-page-master-reference odd-or-even=even master-reference=page-even blank-or-not-blank=not-blank/ fo:conditional-page-master-reference blank-or-not-blank=not-blank odd-or-even=odd page-position=last master-reference=last-page-odd/ fo:conditional-page-master-reference odd-or-even=odd master-reference=page-odd blank-or-not-blank=not-blank/ fo:conditional-page-master-reference blank-or-not-blank=blank master-reference=alternate-blank/ /fo:repeatable-page-master-alternatives /fo:page-sequence-master When I add another condition: fo:conditional-page-master-reference odd-or-even=odd page-position=only blank-or-not-blank=not-blank master-reference=only-page/ Like this: fo:page-sequence-master master-name=recto-verso-document fo:repeatable-page-master-alternatives fo:conditional-page-master-reference odd-or-even=odd page-position=only blank-or-not-blank=not-blank master-reference=only-page/ fo:conditional-page-master-reference odd-or-even=even master-reference=page-even blank-or-not-blank=not-blank/ fo:conditional-page-master-reference blank-or-not-blank=not-blank odd-or-even=odd page-position=last master-reference=last-page-odd/ fo:conditional-page-master-reference odd-or-even=odd master-reference=page-odd blank-or-not-blank=not-blank/ fo:conditional-page-master-reference blank-or-not-blank=blank master-reference=alternate-blank/ /fo:repeatable-page-master-alternatives /fo:page-sequence-master every first page gets the condition applied (page-position=only). How do I set the condition for a page sequence for one-page-only-odd? Thanks -- View this message in context: http://old.nabble.com/fo%3Arepeatable-page-master-alternatives---first-only-page-blank-condition-tp28041214p28041214.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: fo:repeatable-page-master-alternatives - first only page blank condition
No, but I will give it a try. Thanks. Pascal Sancho wrote: Hi, did you try a solution mixing page-sequence-master odd/even with a fo:marker that comes at the end of the fo:flow? that should do the trick, but I didn't tried it. -- Pascal bonekrusher a écrit : Hi, How can I set up my repeatable-page-master-alternatives to detect a page sequence that has only one page and the next page is blank? My desired output is to have a recto-verso document, so the pages end-on-even. If the last page is odd, an even blank page is printed. The odd page will display in the region after Page 1 / 2 Blank to indicate the next page is intentionally left blank. Everything works with the following code, unless the page sequence is only a single odd page. fo:page-sequence-master master-name=document fo:repeatable-page-master-alternatives fo:conditional-page-master-reference odd-or-even=even master-reference=page-even blank-or-not-blank=not-blank/ fo:conditional-page-master-reference blank-or-not-blank=not-blank odd-or-even=odd page-position=last master-reference=last-page-odd/ fo:conditional-page-master-reference odd-or-even=odd master-reference=page-odd blank-or-not-blank=not-blank/ fo:conditional-page-master-reference blank-or-not-blank=blank master-reference=alternate-blank/ /fo:repeatable-page-master-alternatives /fo:page-sequence-master When I add another condition: fo:conditional-page-master-reference odd-or-even=odd page-position=only blank-or-not-blank=not-blank master-reference=only-page/ Like this: fo:page-sequence-master master-name=recto-verso-document fo:repeatable-page-master-alternatives fo:conditional-page-master-reference odd-or-even=odd page-position=only blank-or-not-blank=not-blank master-reference=only-page/ fo:conditional-page-master-reference odd-or-even=even master-reference=page-even blank-or-not-blank=not-blank/ fo:conditional-page-master-reference blank-or-not-blank=not-blank odd-or-even=odd page-position=last master-reference=last-page-odd/ fo:conditional-page-master-reference odd-or-even=odd master-reference=page-odd blank-or-not-blank=not-blank/ fo:conditional-page-master-reference blank-or-not-blank=blank master-reference=alternate-blank/ /fo:repeatable-page-master-alternatives /fo:page-sequence-master every first page gets the condition applied (page-position=only). How do I set the condition for a page sequence for one-page-only-odd? Thanks - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- View this message in context: http://old.nabble.com/fo%3Arepeatable-page-master-alternatives---first-only-page-blank-condition-tp28041214p28041585.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
reference-orientation and tables (FOP 0.95)
Hi, please see attached example. I have a table with in a block container that is rotated 90 degrees. I am having a problem with the cell alignment. If you look at the pdf output, my cells are centered. I need them to be aligned bottom (the word test should start at the bottom of the cell) Any suggestions on how to resolve this? http://www.nabble.com/file/p25294461/example.fo example.fo http://www.nabble.com/file/p25294461/example.png example.png Thanks -- View this message in context: http://www.nabble.com/reference-orientation-and-tables-%28FOP-0.95%29-tp25294461p25294461.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: reference-orientation and tables (FOP 0.95)
Pascal et al, Thanks... this was actually causing another problem on a nested table also. Thanks a bunch Phil -- View this message in context: http://www.nabble.com/reference-orientation-and-tables-%28FOP-0.95%29-tp25294461p25294844.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
fo:table breaks in fo:block-container
Hi, I have a table inside a fo:block-container. The block-container's orientation is 90 degrees (see attached). When the table rows exceeds the table width, the table does not break to the next page. I've attached a working example. How do I get the the table to break to the next page? http://www.nabble.com/file/p25300387/example2.png example2.png http://www.nabble.com/file/p25300387/example.fo example.fo Thanks, Phil -- View this message in context: http://www.nabble.com/fo%3Atable-breaks-in-fo%3Ablock-container-tp25300387p25300387.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: fo:table breaks in fo:block-container
Thanks Andreas, A bit over my head :). I guess I can break the tables up as the documents is not often updated. Thanks again Phil -- View this message in context: http://www.nabble.com/fo%3Atable-breaks-in-fo%3Ablock-container-tp25300387p25303179.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: xslt and xslfo
Hi Ming, No, you can not build the fo file first and add the xsl piece later on. XSLT does not work this way. The fo namespace is required to output fo instructions to meet the xsl-fo specification which is read by FOP. Altova's stylevision is good when you are just learning, but eventually you will need to learn how to code xsl-fo. Regards, Phil Ming Yu wrote: . Hi, I'm new to xslfo but I have been using xslt for a while. My question is, what is the best practice to output xml to pdf? As far as I understand, those are the step involved: 1. xml - xslfo through xslt 2. xslfo - pdf through FOP But when writing xsl for step 1, I have to put all the fo coding inside xsl for the formatting. It seems to be very distracting. If I know what data I want from the xml file and what design I want for the pdf output, is it possible to build the fo file first and add the xsl piece later on? I saw that xmlspy provides a tool to generate xsl:fo file from a design. Is this a good tool to use? Any help is highly appreciated! Ming - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- View this message in context: http://www.nabble.com/xslt-and-xslfo-tp24572152p24572979.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
Command Line xsl paramters
Hi, Using FOP 20.5 command line, I am trYing to pass a xsl parameter to my stylesheet but I think my syntax is incorrect. Is this correct? -param file-path testtest EXAMPLE: java -Dfile.path=%XPATH% -Djava.endorsed.dirs=..\ -cp .;%LOCALCLASSPATH%;%FOPHOME%fop.jar -Xms256m -Xmx1056m org.apache.fop.apps.Fop -xml %1 -xsl %xslfile% -pdf %1.pdf -param output-graphics %outgraphics% -param file-path testtest -- View this message in context: http://www.nabble.com/Command-Line-xsl-paramters-tp24053277p24053277.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: Command Line xsl paramters
Thanks again Andreas - you're always a great help. As of now, I am stuck with 20.5 for this project. I will perform the stages separately. Thx Phil -- View this message in context: http://www.nabble.com/Command-Line-xsl-paramters-tp24053277p24054056.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
java.lang.NullPointerException in FOP 20.5
Hi, I can not upgrade to .95, so I am forced to use 20.5 for a project. I know .20.5 is out-dated, but I dont have any options. I have a strange error that occurs only when outputing graphics. If I produce the PDF without graphics, it runs fine. here is the error: java.lang.NullPointerException org.apache.fop.apps.FOPException: java.lang.NullPointerException at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:111) at org.apache.fop.apps.Fop.main(Fop.java:62) - java.lang.RuntimeException: java.lang.NullPointerException at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3363) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.ja va:427) at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endDocument(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(Unknown Source) at org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipSpaces(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Sou rce) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:191) at org.apache.fop.apps.Driver.render(Driver.java:498) at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:106) at org.apache.fop.apps.Fop.main(Fop.java:62) here is my command line: java -Djava.endorsed.dirs=%LOCAL_COMP_HOME% -cp %LOCAL_COMP_HOME%fop;%LOCAL_COMP_HOME%Fop\fop.jar;%LOCAL_COMP_HOME%xml-apis.jar;%LOCAL_COMP_HOME%xercesImpl.jar;C%LOCAL_COMP_HOME%fop\batik.jar;%LOCAL_COMP_HOME%fop\avalon-framework-cvs-20020806.jar;%LOCAL_COMP_HOME%fop\jimi-1.0.jar;%LOCAL_COMP_HOME%fop\jai_core.jar;%LOCAL_COMP_HOME%fop\jai_codec.jar; -Xms256m -Xmx1056m org.apache.fop.apps.Fop -d -xml %1 -xsl %STYLESHEET_HOME%my-fo.xsl -pdf %1.pdfpause Thanks for the help. -- View this message in context: http://www.nabble.com/java.lang.NullPointerException-in-FOP-20.5-tp23946221p23946221.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: java.lang.NullPointerException in FOP 20.5
nevermind... I was missing a .class file for an extension! a bonekrusher wrote: Hi, I can not upgrade to .95, so I am forced to use 20.5 for a project. I know .20.5 is out-dated, but I dont have any options. I have a strange error that occurs only when outputing graphics. If I produce the PDF without graphics, it runs fine. here is the error: java.lang.NullPointerException org.apache.fop.apps.FOPException: java.lang.NullPointerException at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:111) at org.apache.fop.apps.Fop.main(Fop.java:62) - java.lang.RuntimeException: java.lang.NullPointerException at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3363) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.ja va:427) at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endDocument(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(Unknown Source) at org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipSpaces(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Sou rce) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:191) at org.apache.fop.apps.Driver.render(Driver.java:498) at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:106) at org.apache.fop.apps.Fop.main(Fop.java:62) here is my command line: java -Djava.endorsed.dirs=%LOCAL_COMP_HOME% -cp %LOCAL_COMP_HOME%fop;%LOCAL_COMP_HOME%Fop\fop.jar;%LOCAL_COMP_HOME%xml-apis.jar;%LOCAL_COMP_HOME%xercesImpl.jar;C%LOCAL_COMP_HOME%fop\batik.jar;%LOCAL_COMP_HOME%fop\avalon-framework-cvs-20020806.jar;%LOCAL_COMP_HOME%fop\jimi-1.0.jar;%LOCAL_COMP_HOME%fop\jai_core.jar;%LOCAL_COMP_HOME%fop\jai_codec.jar; -Xms256m -Xmx1056m org.apache.fop.apps.Fop -d -xml %1 -xsl %STYLESHEET_HOME%my-fo.xsl -pdf %1.pdfpause Thanks for the help. -- View this message in context: http://www.nabble.com/java.lang.NullPointerException-in-FOP-20.5-tp23946221p23946717.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
Error occurred during initialization of VM
Hi All, This question is probably Java issue, but I want to run by this list first. I am running FOP 0.025 on 2 machines. Because the XML files are very large I set the heap size to Xmx1056mb. On one machine it works and another I get this error: Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine. Machine 1 (works) stats: Intel Duel Core CPU @2.10GHz/2.07 GHz 2.99 GB Ram Java 1.6.0_11 jdk 1.6.0_11 Machine 2 (doesnt work) Stats: Pentium Dual CPU E2180 @ 2.00 GHz 2.00 GHz, 3.24 GB of RAM Java 1.6.0_11 As you can see I have enough memory in both machines. The only difference is Machine 1 has the JDK. Could this be the issue or its a configuration issue. Any suggestions? Thanks, -- View this message in context: http://www.nabble.com/Error-occurred-during-initialization-of-VM-tp22849015p22849015.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: Error occurred during initialization of VM
Thanks... I am running from the command line. We are in the process of upgrading to 95 - in the mean time I have 18 tech writers using 0.025 - Andreas, How can I check whether there is enough *free* memory at JVM startup time? Thanks, -- View this message in context: http://www.nabble.com/Error-occurred-during-initialization-of-VM-tp22849015p22854270.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