AW: Table footer should fill remaining space on page. Possible?
Hi Vincent, Well, would be too nice if every problem was solvable. Thanks anyway. Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH:www.irs-nbg.de Willmy PrintMedia GmbH:www.willmy.de Willmy Consult Content GmbH: www.willmycc.de -Ursprüngliche Nachricht- Von: Vincent Hennebert [mailto:vhenneb...@gmail.com] Gesendet: Montag, 15. Dezember 2008 12:09 An: fop-users@xmlgraphics.apache.org Betreff: Re: Table footer should fill remaining space on page. Possible? Hi Georg, Georg Datterl wrote: Hi everybody, Is it possible to define a table footer which takes up all the remaining space on the page? I want a table which always spreads over the whole page, no matter how many rows of data it actually contains. Theoretically yes, in practice this hasn't been implemented. Always the optimum value is used when laying out the table (that applies to the 'height' property on table-row as well). I can't think of any work around, I'm afraid. :-( I tried to use line-height.minimum=0pt line-height.optimum=0pt line-height.maximum=841.8898pt on table-row, tabe-cell and block, but no use. Without content in the block, the footer cells are always 0pt, with content the cells are always line-height.optimum. Any ideas? Regards, Georg Datterl Vincent - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: PDF Image extension and encryption don't go together?
Thanks. One can also use PDFBox in such a setup. It works in my case and PDFBox is already part of the FOP PDF image extension. That avoids the platform problem and does not introduce another dependency to manage. I just wanted to avoid a two step process. Peter From: Jay Berkenbilt e...@ql.org Reply-To: fop-users@xmlgraphics.apache.org Date: Thu, 11 Dec 2008 22:22:51 -0500 To: fop-users@xmlgraphics.apache.org Subject: Re: PDF Image extension and encryption don't go together? Jeremias Maerki d...@jeremias-maerki.ch wrote: It appears this is not so simple. Depending on which approach I try I end up missing functionality in either the PDFBox or FOP PDF library APIs to cover that requirement: If I work with the decoded stream but get a PDF with JPEG images I get a warning from PDFBox: Warning: DCTFilter.decode is not implemented yet, skipping this stream. And the resulting PDF is corrupt. I would need the ability to ignore the DCT filter which is currently not possible. On the other side, if I want to try to just encrypt the undecoded stream AbstractPDFStream currently lacks finer control over the applied filters. So I either have to modify PDFBox or the FOP PDF library for which I don't currently have enough time. It also creates a dependency on a new version of either package. So for now, that means: no support for encrypting PDFs when PDF images are used. If you want to try yourself, feel free. Sorry if this is a little bit of a shameless plug, but Linux users would most likely be able to use my qpdf software, http://qpdf.sourceforge.net/, which can encrypt arbitrary PDF files. The licensing terms are relatively unrestrictive (Artistic license), so if there's any logic there that you could steal, have at it. It's C++ code, so it would have to be translated, of course. To use it outright, one could generate a non-encrypted PDF with fop and then encrypt it with qpdf. qpdf can also linearize and do other transformations on the file. I haven't tried this on a PDF file that fop is encrypting incorrectly, but I would be willing to try it. I don't have a windows version of qpdf at this time. -- Jay Berkenbilt - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
FOP and AFPDS
Hi, I'm new on FOP (but legacy afp expert which could help apache community) and would like to know evaluate AFP renderer capabilities. I really need some info: 1) How to setup a simple job to render an AFPDS stream (with embedded fonts); 2) Get an AFP roadmap about FOP engine (what/when about improvements); 3) Get the list of consultant/developers involved on AFP renderer. Any help would be very appreciated. Thanks. Best, Davide Daccico eBilling S.p.a. name Davide Daccico /name company ebilling S.p.A./company area Professional Services /area address V.le Virgilio 54/F 41100 Modena, Italy /address voice +39 059 88680 direct 248 /voice mobile +39 335 1358266 /mobile email mailto:ddacc...@ebilling.it ddacc...@ebilling.it /email _ STRICTLY PERSONAL AND CONFIDENTIAL This message may contain confidential and proprietary material for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient please contact the sender and delete all copies. The contents of this message that do not relate to the official business of our company shall be understood as neither given nor endorsed by it. _ image001.jpg
RE: Force page break to skip immediate next page and continue writing on third page
I tried to use a second simple page master now however I am getting stuck with the error as fo:Validation Exception: Error(Unknown location): fo:page-sequence is missing child elements. Required Content Model: (title?,static-content*,flow) The updated stylesheet is below. Please tell me what exactly am doing wrong over here xsl:template match=/ fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=simple page-height=18.5cm page-width=21.6cm fo:region-body / fo:region-after/ /fo:simple-page-master fo:simple-page-master master-name=blank-page page-height=18.5cm page-width=21.6cm fo:region-body region-name=blank/ fo:region-after/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=blank-page fo:static-content flow-name=blank fo:block font-size=32pt font-weight=bold font-family=Helvetica xsl:value-of select=data/footer/ /fo:block /fo:static-content /fo:page-sequence fo:page-sequence master-reference=simple fo:flow flow-name=xsl-region-body fo:block font-size=32pt font-weight=bold font-family=Helvetica xsl:value-of select=data/header/ /fo:block /fo:flow /fo:page-sequence /fo:root fo:page-sequence-master master-name=document fo:single-page-master-reference master-reference=simple/ fo:single-page-master-reference master-reference=blank-page/ fo:repeatable-page-master-reference master-reference=simple/ /fo:page-sequence-master /xsl:template From: Amick, Eric [mailto:eric.am...@mail.house.gov] Sent: Monday, December 15, 2008 8:34 AM To: fop-users@xmlgraphics.apache.org Subject: RE: Force page break to skip immediate next page and continue writing on third page That isn't necessarily a problem. Is there only one data/footer element? If so, you can just put the needed xsl:value-of in the fo:static-content. Eric Amick Legislative Computer Systems Office of the Clerk From: Chakravarty, Abhishek [mailto:abhis...@accidentfund.com] Sent: Friday, December 12, 2008 16:35 To: fop-users@xmlgraphics.apache.org Subject: RE: Force page break to skip immediate next page and continue writing on third page Yes, unfortunately the footer content is dynamic and will change depending on the content being pulled in by the xml. :-( From: Amick, Eric [mailto:eric.am...@mail.house.gov] Sent: Friday, December 12, 2008 4:26 PM To: fop-users@xmlgraphics.apache.org Subject: RE: Force page break to skip immediate next page and continue writing on third page I assume that simple is a simple-page-master. Create a second simple-page-master called, say, blank-page which is a copy of simple with one difference: Define the region-body in blank-page as fo:region-body region-name=blank/ You'll then need an fo:page-sequence-master that looks something like this: fo:page-sequence-master master-name=document fo:single-page-master-reference master-reference=simple/ fo:single-page-master-reference master-reference=blank-page/ fo:repeatable-page-master-reference master-reference=simple/ /fo:page-sequence-master Take the page break off the fo:block as well. If you use that page-sequence-master, you will get a blank second page if and only if the data overflows the first page. Putting the footer on the second page is trickier and depends on whether that footer can change. If this was FO 1.1, you could use flow maps; you may have to resort to having fo:static-content in blank-page instead. Eric Amick Legislative Computer Systems Office of the Clerk From: Chakravarty, Abhishek [mailto:abhis...@accidentfund.com] Sent: Friday, December 12, 2008 14:53 To: fop-users@xmlgraphics.apache.org Subject: Force page break to skip immediate next page and continue writing on third page Hi I need to force page break within my fo block such that If there is content from page 1('header') which is overflowing onto page 2 then it skips page 2 but continuous onto page 3 while at the same time the 'footer' is written on page 2. This is what my XSL looks like fo:page-sequence master-reference=simple fo:flow flow-name=xsl-region-body fo:block break-after=page
collapse whites space fop .20.5
Hi, I am having trouble collapsing some whitespace. I hope you may help. Take the following resulting fo: fo:block line-height=12pt font-family=sans-serif font-size=10pt text-align=left fo:inline white-space=nowrap white-space-collapse=true wrap-option=no-wrapSee ( fo:basic-link internal-destination=idM01005 color=blackFigure 3/fo:basic-link , Item 2) and ( fo:basic-link internal-destination=idM01006 color=blackFigure 2/fo:basic-link , Item 5). /fo:inline /fo:block The pdf looks like this: See ( Figure 3 , Item 2) and ( Figure 2 , Item 5). But I want: See (Figure 3 , Item 2) and (Figure 2 , Item 5). Notice, no space between ( and F. Any line break between text and the start of the fo:basic-link element is seen as text(). How do I delete this space? I have tried setting the white-space-collapse=true on the fo:inline and the parent fo:block... Thanks -- View this message in context: http://www.nabble.com/collapse-whites-space-fop-.20.5-tp21016442p21016442.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 to skip immediate next page and continue writing on third page
Try putting your fo:page-sequence-master node in the fo:layout-master-set Thanks Barry From: Chakravarty, Abhishek [mailto:abhis...@accidentfund.com] Sent: 15 December 2008 15:22 To: fop-users@xmlgraphics.apache.org Subject: RE: Force page break to skip immediate next page and continue writing on third page I tried to use a second simple page master now however I am getting stuck with the error as fo:Validation Exception: Error(Unknown location): fo:page-sequence is missing child elements. Required Content Model: (title?,static-content*,flow) The updated stylesheet is below. Please tell me what exactly am doing wrong over here xsl:template match=/ fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=simple page-height=18.5cm page-width=21.6cm fo:region-body / fo:region-after/ /fo:simple-page-master fo:simple-page-master master-name=blank-page page-height=18.5cm page-width=21.6cm fo:region-body region-name=blank/ fo:region-after/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=blank-page fo:static-content flow-name=blank fo:block font-size=32pt font-weight=bold font-family=Helvetica xsl:value-of select=data/footer/ /fo:block /fo:static-content /fo:page-sequence fo:page-sequence master-reference=simple fo:flow flow-name=xsl-region-body fo:block font-size=32pt font-weight=bold font-family=Helvetica xsl:value-of select=data/header/ /fo:block /fo:flow /fo:page-sequence /fo:root fo:page-sequence-master master-name=document fo:single-page-master-reference master-reference=simple/ fo:single-page-master-reference master-reference=blank-page/ fo:repeatable-page-master-reference master-reference=simple/ /fo:page-sequence-master /xsl:template From: Amick, Eric [mailto:eric.am...@mail.house.gov] Sent: Monday, December 15, 2008 8:34 AM To: fop-users@xmlgraphics.apache.org Subject: RE: Force page break to skip immediate next page and continue writing on third page That isn't necessarily a problem. Is there only one data/footer element? If so, you can just put the needed xsl:value-of in the fo:static-content. Eric Amick Legislative Computer Systems Office of the Clerk From: Chakravarty, Abhishek [mailto:abhis...@accidentfund.com] Sent: Friday, December 12, 2008 16:35 To: fop-users@xmlgraphics.apache.org Subject: RE: Force page break to skip immediate next page and continue writing on third page Yes, unfortunately the footer content is dynamic and will change depending on the content being pulled in by the xml. L From: Amick, Eric [mailto:eric.am...@mail.house.gov] Sent: Friday, December 12, 2008 4:26 PM To: fop-users@xmlgraphics.apache.org Subject: RE: Force page break to skip immediate next page and continue writing on third page I assume that simple is a simple-page-master. Create a second simple-page-master called, say, blank-page which is a copy of simple with one difference: Define the region-body in blank-page as fo:region-body region-name=blank/ You'll then need an fo:page-sequence-master that looks something like this: fo:page-sequence-master master-name=document fo:single-page-master-reference master-reference=simple/ fo:single-page-master-reference master-reference=blank-page/ fo:repeatable-page-master-reference master-reference=simple/ /fo:page-sequence-master Take the page break off the fo:block as well. If you use that page-sequence-master, you will get a blank second page if and only if the data overflows the first page. Putting the footer on the second page is trickier and depends on whether that footer can change. If this was FO 1.1, you could use flow maps; you may have to resort to having fo:static-content in blank-page instead. Eric Amick Legislative Computer Systems Office of the Clerk From: Chakravarty, Abhishek [mailto:abhis...@accidentfund.com] Sent: Friday, December 12, 2008 14:53 To: fop-users@xmlgraphics.apache.org Subject: Force page break to skip immediate next page and continue writing on third page Hi I need to force page break within my fo block such that If there is content from page 1('header') which is overflowing onto page 2 then it skips page 2 but
RE: Force page break to skip immediate next page and continue writing on third page
I tried moving the fo:page-sequence master-reference=blank-page and fo:page-sequence master-reference=simple into the fo:layout-master-set but this time around I am getting stuck with the error as fo:page-sequence is not a valid child element of fo:layout-master-set. I even tried moving the fo:page-sequence-master master-name=document into the fo:layout-master-set and keeping the other fo:page-sequence master-reference(s) as the same but then I am back to the same error as fo:Validation Exception: Error(Unknown location): fo:page-sequence is missing child elements. Required Content Model: (title?,static-content*,flow) From: Barry Whiting [mailto:barry_whit...@londonmarketing.com] Sent: Monday, December 15, 2008 11:17 AM To: fop-users@xmlgraphics.apache.org Subject: RE: Force page break to skip immediate next page and continue writing on third page Try putting your fo:page-sequence-master node in the fo:layout-master-set Thanks Barry From: Chakravarty, Abhishek [mailto:abhis...@accidentfund.com] Sent: 15 December 2008 15:22 To: fop-users@xmlgraphics.apache.org Subject: RE: Force page break to skip immediate next page and continue writing on third page I tried to use a second simple page master now however I am getting stuck with the error as fo:Validation Exception: Error(Unknown location): fo:page-sequence is missing child elements. Required Content Model: (title?,static-content*,flow) The updated stylesheet is below. Please tell me what exactly am doing wrong over here xsl:template match=/ fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=simple page-height=18.5cm page-width=21.6cm fo:region-body / fo:region-after/ /fo:simple-page-master fo:simple-page-master master-name=blank-page page-height=18.5cm page-width=21.6cm fo:region-body region-name=blank/ fo:region-after/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=blank-page fo:static-content flow-name=blank fo:block font-size=32pt font-weight=bold font-family=Helvetica xsl:value-of select=data/footer/ /fo:block /fo:static-content /fo:page-sequence fo:page-sequence master-reference=simple fo:flow flow-name=xsl-region-body fo:block font-size=32pt font-weight=bold font-family=Helvetica xsl:value-of select=data/header/ /fo:block /fo:flow /fo:page-sequence /fo:root fo:page-sequence-master master-name=document fo:single-page-master-reference master-reference=simple/ fo:single-page-master-reference master-reference=blank-page/ fo:repeatable-page-master-reference master-reference=simple/ /fo:page-sequence-master /xsl:template From: Amick, Eric [mailto:eric.am...@mail.house.gov] Sent: Monday, December 15, 2008 8:34 AM To: fop-users@xmlgraphics.apache.org Subject: RE: Force page break to skip immediate next page and continue writing on third page That isn't necessarily a problem. Is there only one data/footer element? If so, you can just put the needed xsl:value-of in the fo:static-content. Eric Amick Legislative Computer Systems Office of the Clerk From: Chakravarty, Abhishek [mailto:abhis...@accidentfund.com] Sent: Friday, December 12, 2008 16:35 To: fop-users@xmlgraphics.apache.org Subject: RE: Force page break to skip immediate next page and continue writing on third page Yes, unfortunately the footer content is dynamic and will change depending on the content being pulled in by the xml. :-( From: Amick, Eric [mailto:eric.am...@mail.house.gov] Sent: Friday, December 12, 2008 4:26 PM To: fop-users@xmlgraphics.apache.org Subject: RE: Force page break to skip immediate next page and continue writing on third page I assume that simple is a simple-page-master. Create a second simple-page-master called, say, blank-page which is a copy of simple with one difference: Define the region-body in blank-page as fo:region-body region-name=blank/ You'll then need an fo:page-sequence-master that looks something like this: fo:page-sequence-master master-name=document fo:single-page-master-reference master-reference=simple/ fo:single-page-master-reference master-reference=blank-page/ fo:repeatable-page-master-reference master-reference=simple/
RE: Force page break to skip immediate next page and continue writing on third page
First, you must have the page-sequence-master inside the layout-master-set. Second, you should have only one page-sequence with the master-reference set to document. The page-sequence should contain the static-content from your current blank-page page-sequence and the flow from the current simple page-sequence. Once you've moved the approriate pieces into this new page-sequence, delete the two you currently have. Eric Amick Legislative Computer Systems Office of the Clerk From: Chakravarty, Abhishek [mailto:abhis...@accidentfund.com] Sent: Monday, December 15, 2008 10:22 To: fop-users@xmlgraphics.apache.org Subject: RE: Force page break to skip immediate next page and continue writing on third page I tried to use a second simple page master now however I am getting stuck with the error as fo:Validation Exception: Error(Unknown location): fo:page-sequence is missing child elements. Required Content Model: (title?,static-content*,flow) The updated stylesheet is below. Please tell me what exactly am doing wrong over here xsl:template match=/ fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=simple page-height=18.5cm page-width=21.6cm fo:region-body / fo:region-after/ /fo:simple-page-master fo:simple-page-master master-name=blank-page page-height=18.5cm page-width=21.6cm fo:region-body region-name=blank/ fo:region-after/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=blank-page fo:static-content flow-name=blank fo:block font-size=32pt font-weight=bold font-family=Helvetica xsl:value-of select=data/footer/ /fo:block /fo:static-content /fo:page-sequence fo:page-sequence master-reference=simple fo:flow flow-name=xsl-region-body fo:block font-size=32pt font-weight=bold font-family=Helvetica xsl:value-of select=data/header/ /fo:block /fo:flow /fo:page-sequence /fo:root fo:page-sequence-master master-name=document fo:single-page-master-reference master-reference=simple/ fo:single-page-master-reference master-reference=blank-page/ fo:repeatable-page-master-reference master-reference=simple/ /fo:page-sequence-master /xsl:template From: Amick, Eric [mailto:eric.am...@mail.house.gov] Sent: Monday, December 15, 2008 8:34 AM To: fop-users@xmlgraphics.apache.org Subject: RE: Force page break to skip immediate next page and continue writing on third page That isn't necessarily a problem. Is there only one data/footer element? If so, you can just put the needed xsl:value-of in the fo:static-content. Eric Amick Legislative Computer Systems Office of the Clerk From: Chakravarty, Abhishek [mailto:abhis...@accidentfund.com] Sent: Friday, December 12, 2008 16:35 To: fop-users@xmlgraphics.apache.org Subject: RE: Force page break to skip immediate next page and continue writing on third page Yes, unfortunately the footer content is dynamic and will change depending on the content being pulled in by the xml. :-( From: Amick, Eric [mailto:eric.am...@mail.house.gov] Sent: Friday, December 12, 2008 4:26 PM To: fop-users@xmlgraphics.apache.org Subject: RE: Force page break to skip immediate next page and continue writing on third page I assume that simple is a simple-page-master. Create a second simple-page-master called, say, blank-page which is a copy of simple with one difference: Define the region-body in blank-page as fo:region-body region-name=blank/ You'll then need an fo:page-sequence-master that looks something like this: fo:page-sequence-master master-name=document fo:single-page-master-reference master-reference=simple/ fo:single-page-master-reference master-reference=blank-page/ fo:repeatable-page-master-reference master-reference=simple/ /fo:page-sequence-master Take the page break off the fo:block as well. If you use that page-sequence-master, you will get a blank second page if and only if the data overflows the first page. Putting the footer on the second page is trickier and depends on whether that footer can change. If this was FO 1.1, you could use flow maps; you may have to resort to having fo:static-content in blank-page instead. Eric Amick Legislative Computer Systems Office of the Clerk
Table footer should fill remaining space on page. Possible?
Hi everybody, Is it possible to define a table footer which takes up all the remaining space on the page? I want a table which always spreads over the whole page, no matter how many rows of data it actually contains. I tried to use line-height.minimum=0pt line-height.optimum=0pt line-height.maximum=841.8898pt on table-row, tabe-cell and block, but no use. Without content in the block, the footer cells are always 0pt, with content the cells are always line-height.optimum. Any ideas? Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH:www.irs-nbg.de Willmy PrintMedia GmbH:www.willmy.de Willmy Consult Content GmbH: www.willmycc.de - 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 to skip immediate next page and continue writing on third page
That isn't necessarily a problem. Is there only one data/footer element? If so, you can just put the needed xsl:value-of in the fo:static-content. Eric Amick Legislative Computer Systems Office of the Clerk From: Chakravarty, Abhishek [mailto:abhis...@accidentfund.com] Sent: Friday, December 12, 2008 16:35 To: fop-users@xmlgraphics.apache.org Subject: RE: Force page break to skip immediate next page and continue writing on third page Yes, unfortunately the footer content is dynamic and will change depending on the content being pulled in by the xml. :-( From: Amick, Eric [mailto:eric.am...@mail.house.gov] Sent: Friday, December 12, 2008 4:26 PM To: fop-users@xmlgraphics.apache.org Subject: RE: Force page break to skip immediate next page and continue writing on third page I assume that simple is a simple-page-master. Create a second simple-page-master called, say, blank-page which is a copy of simple with one difference: Define the region-body in blank-page as fo:region-body region-name=blank/ You'll then need an fo:page-sequence-master that looks something like this: fo:page-sequence-master master-name=document fo:single-page-master-reference master-reference=simple/ fo:single-page-master-reference master-reference=blank-page/ fo:repeatable-page-master-reference master-reference=simple/ /fo:page-sequence-master Take the page break off the fo:block as well. If you use that page-sequence-master, you will get a blank second page if and only if the data overflows the first page. Putting the footer on the second page is trickier and depends on whether that footer can change. If this was FO 1.1, you could use flow maps; you may have to resort to having fo:static-content in blank-page instead. Eric Amick Legislative Computer Systems Office of the Clerk From: Chakravarty, Abhishek [mailto:abhis...@accidentfund.com] Sent: Friday, December 12, 2008 14:53 To: fop-users@xmlgraphics.apache.org Subject: Force page break to skip immediate next page and continue writing on third page Hi I need to force page break within my fo block such that If there is content from page 1('header') which is overflowing onto page 2 then it skips page 2 but continuous onto page 3 while at the same time the 'footer' is written on page 2. This is what my XSL looks like fo:page-sequence master-reference=simple fo:flow flow-name=xsl-region-body fo:block break-after=page xsl:apply-templates select=data/header/ /fo:block fo:block xsl:apply-templates select=data/footer/ /fo:block /fo:flow /fo:page-sequence /fo:root /xsl:template xsl:template match=header fo:block font-size=32pt font-weight=bold font-family=Helvetica xsl:value-of select=./ /fo:block /xsl:template xsl:template match=footer fo:block font-size=32pt font-weight=bold font-family=Helvetica xsl:value-of select=./ /fo:block /xsl:template Regards Abhishek Regards Abhishek
Re: Table footer should fill remaining space on page. Possible?
Hi Georg, Georg Datterl wrote: Hi everybody, Is it possible to define a table footer which takes up all the remaining space on the page? I want a table which always spreads over the whole page, no matter how many rows of data it actually contains. Theoretically yes, in practice this hasn’t been implemented. Always the optimum value is used when laying out the table (that applies to the ‘height’ property on table-row as well). I can’t think of any work around, I’m afraid. :-( I tried to use line-height.minimum=0pt line-height.optimum=0pt line-height.maximum=841.8898pt on table-row, tabe-cell and block, but no use. Without content in the block, the footer cells are always 0pt, with content the cells are always line-height.optimum. Any ideas? Regards, Georg Datterl Vincent - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: collapse whites space fop .20.5
On 15 Dec 2008, at 16:59, Philip V wrote: Hi Well, 0.20.5 was always slightly non-compliant where it came to white- space handling. That said, it is not an issue of non-compliance in this case. I am having trouble collapsing some whitespace. I hope you may help. Take the following resulting fo: fo:block line-height=12pt font-family=sans-serif font-size=10pt text-align=left fo:inline white-space=nowrap white-space-collapse=true wrap-option=no-wrap Specifying those properties on an fo:inline has no result (at least, not one you would generally expect). Explanation: The properties in question only apply to blocks and are inherited by their descendants. The value for the white-space-collapse property that governs the fo:inline will be the one of the parent fo:block. The one you specify on the fo:inline may be inherited by deeper fo:blocks, though... Not that this would solve your issue, but I'm adding this just for completeness. See ( fo:basic-link internal-destination=idM01005 color=blackFigure 3/fo:basic-link , Item 2) and ( fo:basic-link internal-destination=idM01006 color=blackFigure 2/fo:basic-link , Item 5). /fo:inline /fo:block This will lead to the same (unexpected) result with 0.95, given that: - white-space-collapse='true' refers ONLY to sequences of white-space characters (so: if you have N white-spaces adjacent to each other, only one will survive the white-space handling) - linefeed-preserve=treat-as-space (unspecified default) means convert linefeeds to regular spaces - white-space-preserve=ignore-if-surrounding-linefeed (unspecified default) means disregard any spaces surrounding preserved linefeeds or implicit line-breaks Now, as long as you have: fo:inlineSee (#x0A; fo:basic-link ... This will, with those property settings, ALWAYS yield at least one space between the opening bracket and the content of the fo:basic- link. Even worse: there is no combination of properties that will strip that white-space during formatting. To avoid this, you need to make sure that no linefeed is generated between the text and the fo:basic-link element. In practice, such spaces are (almost always) added: a) either by the XSLT stylesheet, due to an xsl:output indent=yes / (if the result is serialized to a file before FOP gets its hands on it) b) or because XSLT's built-in template rule for text() nodes gets applied to white-space only nodes (in which case they just get copied from the XML source file) Case a) is bad practice, and best avoided, unless during development, when you need to debug the intermediate FO result. If you plan on feeding FOP XML+XSLT input directly, the indent attribute should normally be ignored by the XSLT processor. If you have clearly distinct transformation formatting stages, then it's better not to use that output-hint to make sure the stylesheet produce processor- friendly XML/FO. Case b) can be avoided, for example, by providing an override for the built-in template rule, like: xsl:template match=text() / Note: this ONLY works if your stylesheet does not rely on xsl:apply- templates for outputting the value of text() nodes. If you're not sure, then you can do something like: xsl:template match=text()[string-length(normalize-space(.))=0] / Alternative approach would be to adapt the stylesheet, and make sure you have no: xsl:apply-templates / but always xsl:apply-templates select=* / which would process only element nodes from your input, and leaves the text() nodes alone. HTH! Cheers Andreas - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: collapse whites space fop .20.5
On 15 Dec 2008, at 19:14, Andreas Delmelle wrote: Small mistake: snip / - linefeed-preserve=treat-as-space (unspecified default) means convert linefeeds to regular spaces - white-space-preserve=ignore-if-surrounding-linefeed (unspecified default) means disregard any spaces surrounding preserved linefeeds or implicit line-breaks Should be 'linefeed-treatment' (resp. 'white-space-treatment'). Cheers Andreas - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org