Re: FOP: external-grahicS

2002-06-04 Thread Swanil_Ruth

Hi Andre,
   Try defining it in the fo:page-sequence. Your code within the fo:root should look something like below..
fo:layout-master-set
 fo:simple-page-master master-name=Test 
   page-height=29.3cm 
   page-width=21cm
   margin-top=1cm 
   margin-bottom=2cm 
   margin-left=0.75cm 
   margin-right=0.75cm
 fo:region-body margin-top=3cm/
 fo:region-before extent=5cm/
 fo:region-after extent=1.5cm/
  /fo:simple-page-master
  
/fo:layout-master-set

fo:page-sequence master-reference=Test

 fo:static-content flow-name=xsl-region-before
 fo:block
  fo:external-graphic src="">
 /fo:block
 /fo:static-content
 fo:static-content flow-name=xsl-region-after
 fo:block
  fo:external-graphic src="">
 /fo:block
 /fo:static-content

 fo:flow flow-name=xsl-region-body
xsl:apply-templates/
 /fo:flow
/fo:page-sequence

Regards,
Roopa
 








Andre Marthaler [EMAIL PROTECTED]
06/04/02 02:38 PM
Please respond to fop-user


To:[EMAIL PROTECTED]
cc:
Subject:FOP: external-grahicS


Hello,

i use FOP 0.20.3 under Linux and Win2k.

I have a Problem intregation External Pictures in xsl-region-before and in
xsl-region-after
i use an XML with an XSL File.
Here are my code:

  fo:static-content flow-name=xsl-region-after
   fo:block
   fo:external-graphic src="">
   /fo:block
  /fo:static-content

--
I define both in the simple-page-master, but everytime he say Some static
content could not fit in the area.
I dont understand, why i can't integrate External Pictures in Before and
After.

Is this an burg or what??


André Marthaler
(Sorry for bad English :-) )






Re: FOP: external-grahicS

2002-06-04 Thread J.Pietschmann
Andre Marthaler wrote:
fo:external-graphic src=file:/bild1.jpg/
Use file:///bild1.jpg
--
I define both in the simple-page-master, but everytime he say Some static
content could not fit in the area.
I dont understand, why i can't integrate External Pictures in Before and
After.
You can use external graphics in static content.
The pictures are simply too big.
Bitmap graphics like JPG images are rendered at 72dpi
unless width and/or height is explicitely specified for
the fo:external-graphics element. This means a
100x100 Pixel image is rendered roughly at a size
of 3.53cm x 3.53cm. Your region is probably not high
enough. Increase the extent of the region, or specify
a height=1cm or something, or rescale your image.
J.Pietschmann