You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Jean-François El Fouly <je...@elfouly.fr> on 2010/01/28 15:02:12 UTC
"Yellow pages"
Aviation regulation authorities state that certain pages of aircraft manuals (maintenance, policy, etc.) must be printed on yellow paper.
I need to simulate that in PDF by painting the background of my FOP document yellow.
I had no problem generating the blank pages with a 5-line iText program (first page) but for the pages I generate with FOP the best I could do (until now) is to add the background-color="yellow" attribute to fo:region-body, fo:region-before and fo:region-after. All in all the result doesn't look that good (second page).
There must be a better/simpler solution.
If anyone could help me or give me a hint I'd be very grateful !
Jean-Fran�ois El Fouly
Re: "Yellow pages"
Posted by Jean-François El Fouly <je...@elfouly.fr>.
Nice result !
It works that way.
Thanks Pascal and Jeremias for helping once more, I'm even more grateful to both of you :-)
Jean-François
Le 28 janv. 2010 à 16:07, Jeremias Maerki a écrit :
> Just replace absolute-position="absolute" with absolute-position="fixed"
> (and leave the rest).
>
> On 28.01.2010 15:58:10 Jean-François El Fouly wrote:
>> Wow. This looks very much like black magic -- or a FOP black belt trick :-)
>> Is there another deeper layer of magic in $x_left, $page_width.. ?
>> I tried with left="0" top="0" width="210mm" height="297mm" in the static content area of the page header. But I guess the origin is the upper left corner of that area so now I have the right and bottom margins colored yellow but the top and left margins still white.
>> In a certain sense my problem is half solved but the page looks even more strange.
>>
>> Le 28 janv. 2010 à 15:22, Pascal Sancho a écrit :
>>
>>> Hi,
>>> You can add a fo:block-container in a static region, and place it in
>>> absolute-position:
>>> <fo:block-container absolute-position="absolute" background-color="yellow"
>>> left="{$x_left}" top="{$y_top}" width="{$page_width}"
>>> height="{$page_height}">
>>> <fo:block/>
>>> </fo:block-container>
>>> Pascal
>>>
>>> Jean-François El Fouly a écrit :
>>>> Aviation regulation authorities state that certain pages of aircraft manuals (maintenance, policy, etc.) must be printed on yellow paper.
>>>> I need to simulate that in PDF by painting the background of my FOP document yellow.
>>>> I had no problem generating the blank pages with a 5-line iText program (first page) but for the pages I generate with FOP the best I could do (until now) is to add the background-color="yellow" attribute to fo:region-body, fo:region-before and fo:region-after. All in all the result doesn't look that good (second page).
>>>> There must be a better/simpler solution.
>>>> If anyone could help me or give me a hint I'd be very grateful !
>>>>
>>>> Jean-François El Fouly
>>>>
>>>>
>
>
>
> Jeremias Maerki
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: "Yellow pages"
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Just replace absolute-position="absolute" with absolute-position="fixed"
(and leave the rest).
On 28.01.2010 15:58:10 Jean-François El Fouly wrote:
> Wow. This looks very much like black magic -- or a FOP black belt trick :-)
> Is there another deeper layer of magic in $x_left, $page_width.. ?
> I tried with left="0" top="0" width="210mm" height="297mm" in the static content area of the page header. But I guess the origin is the upper left corner of that area so now I have the right and bottom margins colored yellow but the top and left margins still white.
> In a certain sense my problem is half solved but the page looks even more strange.
>
> Le 28 janv. 2010 à 15:22, Pascal Sancho a écrit :
>
> > Hi,
> > You can add a fo:block-container in a static region, and place it in
> > absolute-position:
> > <fo:block-container absolute-position="absolute" background-color="yellow"
> > left="{$x_left}" top="{$y_top}" width="{$page_width}"
> > height="{$page_height}">
> > <fo:block/>
> > </fo:block-container>
> > Pascal
> >
> > Jean-François El Fouly a écrit :
> >> Aviation regulation authorities state that certain pages of aircraft manuals (maintenance, policy, etc.) must be printed on yellow paper.
> >> I need to simulate that in PDF by painting the background of my FOP document yellow.
> >> I had no problem generating the blank pages with a 5-line iText program (first page) but for the pages I generate with FOP the best I could do (until now) is to add the background-color="yellow" attribute to fo:region-body, fo:region-before and fo:region-after. All in all the result doesn't look that good (second page).
> >> There must be a better/simpler solution.
> >> If anyone could help me or give me a hint I'd be very grateful !
> >>
> >> Jean-François El Fouly
> >>
> >>
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: "Yellow pages"
Posted by Jean-François El Fouly <je...@elfouly.fr>.
I tried position="absolute" instead but it doesn't help...
Le 28 janv. 2010 à 15:58, Jean-François El Fouly a écrit :
> Wow. This looks very much like black magic -- or a FOP black belt trick :-)
> Is there another deeper layer of magic in $x_left, $page_width.. ?
> I tried with left="0" top="0" width="210mm" height="297mm" in the static content area of the page header. But I guess the origin is the upper left corner of that area so now I have the right and bottom margins colored yellow but the top and left margins still white.
> In a certain sense my problem is half solved but the page looks even more strange.
>
> Le 28 janv. 2010 à 15:22, Pascal Sancho a écrit :
>
>> Hi,
>> You can add a fo:block-container in a static region, and place it in
>> absolute-position:
>> <fo:block-container absolute-position="absolute" background-color="yellow"
>> left="{$x_left}" top="{$y_top}" width="{$page_width}"
>> height="{$page_height}">
>> <fo:block/>
>> </fo:block-container>
>> Pascal
>>
>> Jean-François El Fouly a écrit :
>>> Aviation regulation authorities state that certain pages of aircraft manuals (maintenance, policy, etc.) must be printed on yellow paper.
>>> I need to simulate that in PDF by painting the background of my FOP document yellow.
>>> I had no problem generating the blank pages with a 5-line iText program (first page) but for the pages I generate with FOP the best I could do (until now) is to add the background-color="yellow" attribute to fo:region-body, fo:region-before and fo:region-after. All in all the result doesn't look that good (second page).
>>> There must be a better/simpler solution.
>>> If anyone could help me or give me a hint I'd be very grateful !
>>>
>>> Jean-François El Fouly
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: "Yellow pages"
Posted by Jean-François El Fouly <je...@elfouly.fr>.
You're probably right, I think I understand -- I didn't place the stanza in the correct region.
I can try it that way, too.
Thanks !
Le 28 janv. 2010 à 16:13, Pascal Sancho a écrit :
> If you leave precedence properties to default, the upper-left corner of
> the page is within the region-start...
> So, the (0,0) coordinates of the page is same as in the static region
> that correspond to left margin, not page-header.
>
> Pascal
>
> Jean-François El Fouly a écrit :
>> Wow. This looks very much like black magic -- or a FOP black belt trick :-)
>> Is there another deeper layer of magic in $x_left, $page_width.. ?
>> I tried with left="0" top="0" width="210mm" height="297mm" in the static content area of the page header. But I guess the origin is the upper left corner of that area so now I have the right and bottom margins colored yellow but the top and left margins still white.
>> In a certain sense my problem is half solved but the page looks even more strange.
>>
>> Le 28 janv. 2010 à 15:22, Pascal Sancho a écrit :
>>
>>
>>> Hi,
>>> You can add a fo:block-container in a static region, and place it in
>>> absolute-position:
>>> <fo:block-container absolute-position="absolute" background-color="yellow"
>>> left="{$x_left}" top="{$y_top}" width="{$page_width}"
>>> height="{$page_height}">
>>> <fo:block/>
>>> </fo:block-container>
>>> Pascal
>>>
>>> Jean-François El Fouly a écrit :
>>>
>>>> Aviation regulation authorities state that certain pages of aircraft manuals (maintenance, policy, etc.) must be printed on yellow paper.
>>>> I need to simulate that in PDF by painting the background of my FOP document yellow.
>>>> I had no problem generating the blank pages with a 5-line iText program (first page) but for the pages I generate with FOP the best I could do (until now) is to add the background-color="yellow" attribute to fo:region-body, fo:region-before and fo:region-after. All in all the result doesn't look that good (second page).
>>>> There must be a better/simpler solution.
>>>> If anyone could help me or give me a hint I'd be very grateful !
>>>>
>>>> Jean-François El Fouly
>>>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: "Yellow pages"
Posted by Pascal Sancho <pa...@takoma.fr>.
If you leave precedence properties to default, the upper-left corner of
the page is within the region-start...
So, the (0,0) coordinates of the page is same as in the static region
that correspond to left margin, not page-header.
Pascal
Jean-François El Fouly a écrit :
> Wow. This looks very much like black magic -- or a FOP black belt trick :-)
> Is there another deeper layer of magic in $x_left, $page_width.. ?
> I tried with left="0" top="0" width="210mm" height="297mm" in the static content area of the page header. But I guess the origin is the upper left corner of that area so now I have the right and bottom margins colored yellow but the top and left margins still white.
> In a certain sense my problem is half solved but the page looks even more strange.
>
> Le 28 janv. 2010 à 15:22, Pascal Sancho a écrit :
>
>
>> Hi,
>> You can add a fo:block-container in a static region, and place it in
>> absolute-position:
>> <fo:block-container absolute-position="absolute" background-color="yellow"
>> left="{$x_left}" top="{$y_top}" width="{$page_width}"
>> height="{$page_height}">
>> <fo:block/>
>> </fo:block-container>
>> Pascal
>>
>> Jean-François El Fouly a écrit :
>>
>>> Aviation regulation authorities state that certain pages of aircraft manuals (maintenance, policy, etc.) must be printed on yellow paper.
>>> I need to simulate that in PDF by painting the background of my FOP document yellow.
>>> I had no problem generating the blank pages with a 5-line iText program (first page) but for the pages I generate with FOP the best I could do (until now) is to add the background-color="yellow" attribute to fo:region-body, fo:region-before and fo:region-after. All in all the result doesn't look that good (second page).
>>> There must be a better/simpler solution.
>>> If anyone could help me or give me a hint I'd be very grateful !
>>>
>>> Jean-François El Fouly
>>>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: "Yellow pages"
Posted by Jean-François El Fouly <je...@elfouly.fr>.
Wow. This looks very much like black magic -- or a FOP black belt trick :-)
Is there another deeper layer of magic in $x_left, $page_width.. ?
I tried with left="0" top="0" width="210mm" height="297mm" in the static content area of the page header. But I guess the origin is the upper left corner of that area so now I have the right and bottom margins colored yellow but the top and left margins still white.
In a certain sense my problem is half solved but the page looks even more strange.
Le 28 janv. 2010 à 15:22, Pascal Sancho a écrit :
> Hi,
> You can add a fo:block-container in a static region, and place it in
> absolute-position:
> <fo:block-container absolute-position="absolute" background-color="yellow"
> left="{$x_left}" top="{$y_top}" width="{$page_width}"
> height="{$page_height}">
> <fo:block/>
> </fo:block-container>
> Pascal
>
> Jean-François El Fouly a écrit :
>> Aviation regulation authorities state that certain pages of aircraft manuals (maintenance, policy, etc.) must be printed on yellow paper.
>> I need to simulate that in PDF by painting the background of my FOP document yellow.
>> I had no problem generating the blank pages with a 5-line iText program (first page) but for the pages I generate with FOP the best I could do (until now) is to add the background-color="yellow" attribute to fo:region-body, fo:region-before and fo:region-after. All in all the result doesn't look that good (second page).
>> There must be a better/simpler solution.
>> If anyone could help me or give me a hint I'd be very grateful !
>>
>> Jean-François El Fouly
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: "Yellow pages"
Posted by Pascal Sancho <pa...@takoma.fr>.
Hi,
You can add a fo:block-container in a static region, and place it in
absolute-position:
<fo:block-container absolute-position="absolute" background-color="yellow"
left="{$x_left}" top="{$y_top}" width="{$page_width}"
height="{$page_height}">
<fo:block/>
</fo:block-container>
Pascal
Jean-François El Fouly a écrit :
> Aviation regulation authorities state that certain pages of aircraft manuals (maintenance, policy, etc.) must be printed on yellow paper.
> I need to simulate that in PDF by painting the background of my FOP document yellow.
> I had no problem generating the blank pages with a 5-line iText program (first page) but for the pages I generate with FOP the best I could do (until now) is to add the background-color="yellow" attribute to fo:region-body, fo:region-before and fo:region-after. All in all the result doesn't look that good (second page).
> There must be a better/simpler solution.
> If anyone could help me or give me a hint I'd be very grateful !
>
> Jean-François El Fouly
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org