fop ant task: change working directory?
I'm not sure if this is an ant question or a fop question, but I was trying to use the fop custom task, and I want to set the current working directory that fop runs from. How does one do that with fop ant task? Do I set a property somewhere? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xhtml to pdf
Saigeetha Govindarajan wrote: Hi, I am new to fop. I was wondering whether there is any xsl already exist for converting xhtml to pdf? This has only just been discussed in a separate thread. There are XSLT stylesheets out there that convert XHTML to XSL-FO (and then to PDF). For example; http://www.antennahouse.com/XSLsample/sample-xsl-xhtml2fo-200201.zip However, FOP doesnt support the full set of features available in XSL-FO. And since antenna house's formatter supports more features youll get errors if you try to use this stylesheet. I suggest you take this stylesheet and refine it to work with FOP. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP - infinite loop problem
Mark Ivs wrote: I encountered an endless loop problem in the addRealText method in FOText.java. la.addText in the while loop always returns 0. So the while statement goes into an endless loop. The way I fixed the problem is by adding a counter inside the while loop and once it exceeds the threshold (I set it to 50) I throw a FOP Exception. Has anyone else encountered this problem before ? yes weve seen this problem a few times before. Is this problem already reported in FOP bug list ? take a look at: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21641 Also, please let me know if there is a better solution to fix this problem. I really appreciate your help. I am using FOP0.20.5. This problem dosen't happen everytime. It happens only with certain data in the XML. So, not sure what triggers this. Usually when your data is too big for a small area (like a table-cell) One thing to note. I have hyphenate=true in one of the fo:block. When I remove the hyphenate property, FOP never goes into endless loop. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Embedded Carriage Returns Ignored
I have carriage returns that show up within my xml source but when that text block gets tranformed to pdf through fop they are removed --- So: i)point one ii)point two Becomes: i)point one ii)point two Is there an attribute/tag that tells fop NOT to ignore these carriage returns and allow them to show up in the pdf output? Thanks. Devon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Embedded Carriage Returns Ignored
Readman, Devon wrote: I have carriage returns that show up within my xml source but when that text block gets tranformed to pdf through fop they are removed --- So: i)point one ii)point two Becomes: i)point one ii)point two Is there an attribute/tag that tells fop NOT to ignore these carriage returns and allow them to show up in the pdf output? This is a FAQ. Have a look at: http://xml.apache.org/fop/faq.html#fo-preformat Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Embedded Carriage Returns Ignored
Is there an attribute/tag that tells fop NOT to ignore these carriage returns and allow them to show up in the pdf output? try : white-space-collapse=false linefeed-treatment=preserve in fo:block tag You can find more on this topic in the mailing list archive Mathieu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Change page size
Title: RE: Change page size Forest, Sebastien wrote: Hi I need to produce a pdf with fop 0.20.5rc3a with a combinaison of two differents page size. The document is in 8.5 X 11 inch but when I encounter a special tag in the xml file I need to switch to 11 X 17 inch. Is there a way to switch page-master depending on the tag in the xml. Create a new page-sequence when you encounter the tag thats orders a change in page dimensions. Of course, this will cause text after the tag to be moved to a new page. When I encounter the tag I create a new page-sequence but FOP give me an error because the page-sequence must be in the fo:root and not in a fo:block. I'am able to change page-sequence, but only if the tag I'm looking for is at the root. If this tag (graphic in my example) is a child of another tag I didn't find a way to control it. Exemple: ?xml version=1.0 encoding=UTF-8? wp parapara 1 parapara 1.1/para /para parapara 2/para parapara 3/para graphicgraphic 1/graphic parapara 4/para graphicgraphic 2/graphic graphicgraphic 3/graphic parapara 5 parapara 5.1 graphicgraphic 4/graphic /para /para /wp Can anyone help me?
alignment question
If my image is centered, how do I get the next line (of text) to start at the left edge of the image? Thanks, Derrick This electronic transmission is strictly confidential to Smith & Nephew and intended solely for the addressee. It may contain information which is covered by legal, professional or other privilege. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message.
Re: Change page size
Forest, Sebastien wrote: When I encounter the tag I create a new page-sequence but FOP give me an error because the page-sequence must be in the fo:root and not in a fo:block. I'am able to change page-sequence, but only if the tag I'm looking for is at the root. If this tag (graphic in my example) is a child of another tag I didn't find a way to control it. You need to look into grouping techniques in order to sort of pull the special tag to the top level. It's somewhat hairrising though. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fop ant task: change working directory?
S. Alan Ezust wrote: I'm not sure if this is an ant question or a fop question, but I was trying to use the fop custom task, and I want to set the current working directory that fop runs from. How does one do that with fop ant task? Do I set a property somewhere? I'm notsure what you mean by working directory. Ant has the concept of project directory, and relative pathnames used in tasks are resolved agains this. If you mean the base directory FOP uses for resolving relative URLs in the external graphics src, I think the task has a parameter for it. If not, well, check the source whether it sets the base directory to the base directory of the currently processed FO document, as it actually should. Now that I think of it, the task should be updated to have a parameter for the font base directory as well. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: alignment question
Koes, Derrick wrote: If my image is centered, how do I get the next line (of text) to start at the left edge of the image? That's a though one. I suggest using a table for centering, and put the text in another row, roughly: fo:table table-layout=fixed width=100% fo:table-column column-width=proportional-column-width(1)/ fo:table-column column-width={$your-image-width}/ fo:table-column column-width=proportional-column-width(1)/ fo:table-body fo:table-row fo:table-cell/ fo:table-cell fo:block fo:external-image src=.../ /fo:block /fo:table-cell fo:table-cell/ /fo:table-row fo:table-row fo:table-cell/ fo:table-cell number-of columns spanned=2 fo:blocktext.../fo:block /fo:table-cell fo:table-cell/ /fo:table-row /fo:table-body /fo:table J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Change page size
-Original Message- From: Forest, Sebastien [mailto:[EMAIL PROTECTED] Hi Hi Some friendly advice to start: Would you be so kind the next time, to post in plain-text? Not a problem for me specifically, but some would find it a reason to ignore your question if you don't... Just imagine for a moment what all that HTML looks like in plain text view. Now as to your question: When I encounter the tag I create a new page-sequence but FOP give me an error because the page-sequence must be in the fo:root and not in a fo:block. I'am able to change page-sequence, but only if the tag I'm looking for is at the root. If this tag (graphic in my example) is a child of another tag I didn't find a way to control it. I think you're going to need three XSL templates for this: (more of a Mulberry-question, come to think of it) - one for the plain para .../ elements (sans graphiques ;) ) - one for the graphic .../ elements that are children of the root - one to handle graphic / elements with para .../ ancestors Example stylesheet: ?xml version=1.0 encoding=iso-8859-1 ? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:output method=xml / xsl:template match=wp foroot xsl:apply-templates select=para[not(descendant::graphic)] | //graphic / /foroot /xsl:template xsl:template match=para[not(descendant::graphic)] xsl:choose xsl:when test=parent::wp fopageseq ref=a foblock xsl:apply-templates / /foblock /fopageseq /xsl:when xsl:otherwise foblock xsl:apply-templates / /foblock /xsl:otherwise /xsl:choose /xsl:template xsl:template match=graphic[parent::wp] fopageseq ref=b foextgraph src={.} / /fopageseq /xsl:template xsl:template match=graphic[ancestor::para] fopageseq ref=a xsl:for-each select=ancestor::para xsl:sort select=position() order=ascending / foblock xsl:value-of select=text() / /foblock /xsl:for-each /fopageseq fopageseq ref=b foextgraph src={.} / /fopageseq /xsl:template /xsl:stylesheet Modify this to use real fo's, and use it to transform your example XML. Only case not handled by the above template is: a para that would be following 'graphic 4' in your example, but would still be a child of the 'para 5' node... Just to give you an idea. Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fop ant task: change working directory?
The basedir attribute for our FOP task has not been programmed yet, I believe. Could you check to see if the example at the bottom of http://xml.apache.org/fop/anttask.html (i.e., where you use fileset) is of help to you? Let us know. Thanks, Glen --- S. Alan Ezust [EMAIL PROTECTED] wrote: I'm not sure if this is an ant question or a fop question, but I was trying to use the fop custom task, and I want to set the current working directory that fop runs from. How does one do that with fop ant task? Do I set a property somewhere? __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xhtml to pdf
--- Chris Bowditch [EMAIL PROTECTED] wrote: And since antenna house's formatter supports more features youll get errors if you try to use this stylesheet. I suggest you take this stylesheet and refine it to work with FOP. Or take FOP and refine it to work with the stylesheet. Patches always welcome... ;) Glen Chris __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Footnotes on the following page
My footnotes always appear on the following page where the footnote reference is inserted in the pdf document. Has anyone seen this before? Thanks. Devon P.S. Thanks for the tip on how to preserve carriage returns --works perfect! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: stylesheets for XHTML - XSL-FO
There's an article and stylesheet for XHTML - XSL-FO on IBM DeveloperWorks: http://www-106.ibm.com/developerworks/library/x-xslfo2app/ -- --- M. Sean Gilligan: Catalla Systems, Inc. : 831-439-9568 x11 --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Footnotes on the following page
Can you post the fo:static-content section you are using for the footer? If you are not using a header/footer layout, try the fragment below: fo:static-content flow-name=xsl-region-after display-align=after fo:block fo:table width=100% fo:table-body fo:table-row fo:table-cell text-align=center fo:block fo:block fo:leader leader-pattern=space / /fo:blockfootnote text/fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /fo:block /fo:static-content -Original Message- From: Readman, Devon [mailto:[EMAIL PROTECTED] Sent: Monday, February 02, 2004 1:37 PM To: '[EMAIL PROTECTED]' Subject: Footnotes on the following page My footnotes always appear on the following page where the footnote reference is inserted in the pdf document. Has anyone seen this before? Thanks. Devon P.S. Thanks for the tip on how to preserve carriage returns --works perfect! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FOP - infinite loop problem
I encountered an endless loop problem in the addRealText method in FOText.java. la.addText in the while loop always returns 0. So the while statement goes into an endless loop. The way I fixed the problem is by adding a counter inside the while loop and once it exceeds the threshold (I set it to 50) I throw a FOP Exception. Has anyone else encountered this problem before ? Is this problem already reported in FOP bug list ? Also, please let me know if there is a better solution to fix this problem. I really appreciate your help. I am using FOP0.20.5. This problem dosen't happen everytime. It happens only with certain data in the XML. So, not sure what triggers this. One thing to note. I have hyphenate=true in one of the fo:block. When I remove the hyphenate property, FOP never goes into endless loop. Thanks. __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]