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 "Forest, Sebastien" <Se...@L-3Com.com> on 2004/01/30 15:38:50 UTC

Change page size

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.

Thanks

Sébastien Forest
Spécialiste, Applications logicielles / Software Application Specialist
Publications techniques / Technical Publications
> L-3 MAS (Canada)
J  (450) 476-4850
e-mail:  sebastien.forest@l-3com.com









Re: Gap beetween images

Posted by Clay Leeds <cl...@medata.com>.
I don't know. I just did a query on the Bug List for "gap" but "Zarro 
Boogs found." is what it says... Sorry I can't help much...

Web Maestro Clay

On Jan 30, 2004, at 9:24 AM, Selber Jean-François wrote:
> Is it a known bug or not?
>
> Thanks
> jf
>
> ----- Original Message -----
> From: "Clay Leeds" <cl...@medata.com>
> To: <fo...@xml.apache.org>
> Sent: Friday, January 30, 2004 5:41 PM
> Subject: Re: Gap beetween images
>
>
>> This isn't a fix, but... Perhaps you can add enough "white" or
>> background-color to the top of the first.jpg so that it's larger than 
>> 10px
>> but retains the appearance of the shape you need?
>> --
>> Clay Leeds - cleeds@medata.com
>> Web Developer - Medata, Inc. - http://www.medata.com
>> PGP Public Key: https://mail.medata.com/pgp/cleeds.asc
>>
>> Selber Jean-François said:
>>> Hi
>>>
>>> I use fop 0.20.5
>>>
>>> I whould like to concatenate images vertically. The problem is that 
>>> FOP
>>> add
>>> a blank space in between. By adding space-before="-2.5pt", the blank
> space
>>> disappear. Unfortunately, this doesn't work in all cases. It works if
>>> preceding image is bigger than 10 pixels, otherwise, a blank space
> appears
>>> again.
>>>
>>> In the example hereafter, if first.jpg is smaller than around 10 
>>> pixels,
>>> then the space-before="-2.5pt" applied on  "second.jpg" is not
>>> sufficient..
>>> A value of -6pt or more is needed to compensate the bigger space 
>>> added
> by
>>> FOP. Seemingly, the smaller is the preceding image, the bigger is the
> gap.
>>>
>>>   <fo:external-graphic src="first.jpg"/>
>>>   <fo:external-graphic space-before="-2.5pt" src="second.jpg"/>
>>>   <fo:external-graphic space-before="-2.5pt" src="third.jpg"/>
>>> Can anybody provide me with an explanation and some help to find the
> good
>>> value for space-before
>>>
>>> many thanks in advance
>>> jf
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
>>> For additional commands, e-mail: fop-user-help@xml.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
>> For additional commands, e-mail: fop-user-help@xml.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Gap beetween images

Posted by Selber Jean-François <jf...@oxymel.com>.
Is it a known bug or not?

Thanks
jf

----- Original Message -----
From: "Clay Leeds" <cl...@medata.com>
To: <fo...@xml.apache.org>
Sent: Friday, January 30, 2004 5:41 PM
Subject: Re: Gap beetween images


> This isn't a fix, but... Perhaps you can add enough "white" or
> background-color to the top of the first.jpg so that it's larger than 10px
> but retains the appearance of the shape you need?
> --
> Clay Leeds - cleeds@medata.com
> Web Developer - Medata, Inc. - http://www.medata.com
> PGP Public Key: https://mail.medata.com/pgp/cleeds.asc
>
> Selber Jean-François said:
> > Hi
> >
> > I use fop 0.20.5
> >
> > I whould like to concatenate images vertically. The problem is that FOP
> > add
> > a blank space in between. By adding space-before="-2.5pt", the blank
space
> > disappear. Unfortunately, this doesn't work in all cases. It works if
> > preceding image is bigger than 10 pixels, otherwise, a blank space
appears
> > again.
> >
> > In the example hereafter, if first.jpg is smaller than around 10 pixels,
> > then the space-before="-2.5pt" applied on  "second.jpg" is not
> > sufficient..
> > A value of -6pt or more is needed to compensate the bigger space added
by
> > FOP. Seemingly, the smaller is the preceding image, the bigger is the
gap.
> >
> >   <fo:external-graphic src="first.jpg"/>
> >   <fo:external-graphic space-before="-2.5pt" src="second.jpg"/>
> >   <fo:external-graphic space-before="-2.5pt" src="third.jpg"/>
> > Can anybody provide me with an explanation and some help to find the
good
> > value for space-before
> >
> > many thanks in advance
> > jf
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> > For additional commands, e-mail: fop-user-help@xml.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Gap beetween images

Posted by Clay Leeds <cl...@medata.com>.
This isn't a fix, but... Perhaps you can add enough "white" or
background-color to the top of the first.jpg so that it's larger than 10px
but retains the appearance of the shape you need?
-- 
Clay Leeds - cleeds@medata.com
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc

Selber Jean-François said:
> Hi
>
> I use fop 0.20.5
>
> I whould like to concatenate images vertically. The problem is that FOP
> add
> a blank space in between. By adding space-before="-2.5pt", the blank space
> disappear. Unfortunately, this doesn't work in all cases. It works if
> preceding image is bigger than 10 pixels, otherwise, a blank space appears
> again.
>
> In the example hereafter, if first.jpg is smaller than around 10 pixels,
> then the space-before="-2.5pt" applied on  "second.jpg" is not
> sufficient..
> A value of -6pt or more is needed to compensate the bigger space added by
> FOP. Seemingly, the smaller is the preceding image, the bigger is the gap.
>
>   <fo:external-graphic src="first.jpg"/>
>   <fo:external-graphic space-before="-2.5pt" src="second.jpg"/>
>   <fo:external-graphic space-before="-2.5pt" src="third.jpg"/>
> Can anybody provide me with an explanation and some help to find the good
> value for space-before
>
> many thanks in advance
> jf
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Gap beetween images

Posted by Selber Jean-François <jf...@oxymel.com>.
Hi

I use fop 0.20.5

I whould like to concatenate images vertically. The problem is that FOP add
a blank space in between. By adding space-before="-2.5pt", the blank space
disappear. Unfortunately, this doesn't work in all cases. It works if
preceding image is bigger than 10 pixels, otherwise, a blank space appears
again.

In the example hereafter, if first.jpg is smaller than around 10 pixels,
then the space-before="-2.5pt" applied on  "second.jpg" is not sufficient..
A value of -6pt or more is needed to compensate the bigger space added by
FOP. Seemingly, the smaller is the preceding image, the bigger is the gap.

  <fo:external-graphic src="first.jpg"/>
  <fo:external-graphic space-before="-2.5pt" src="second.jpg"/>
  <fo:external-graphic space-before="-2.5pt" src="third.jpg"/>
Can anybody provide me with an explanation and some help to find the good
value for space-before

many thanks in advance
jf



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Change page size

Posted by Chris Bowditch <bo...@hotmail.com>.
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.

Chris



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


RE: Change page size

Posted by George Yi <gy...@srds.com>.
You can use 2 page sequences to achieve this, talk a look at the
examples coming with fop: franklin_2pageseqs.fo. To do this, you have to
know how many material you want to dump into each page.

 

George

 

-----Original Message-----
From: Forest, Sebastien [mailto:Sebastien.Forest@L-3Com.com] 
Sent: Friday, January 30, 2004 8:39 AM
To: 'fop-user@xml.apache.org'
Subject: Change page size

 

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.

Thanks 

Sébastien Forest 
Spécialiste, Applications logicielles / Software Application Specialist 
Publications techniques / Technical Publications 
L-3 MAS (Canada) 
J  (450) 476-4850 
e-mail:  sebastien.forest@l-3com.com