You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Olivier Rossel <ol...@anyware-tech.com> on 2002/03/06 17:27:35 UTC

Bug report.

I try to generate a PDF from this FO:
--- cut here ---
<?xml version="1.0"?>

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

 <fo:layout-master-set>
  <fo:simple-page-master master-name="page" page-width="297mm" 
page-height="28mm" margin-left="1cm" margin-right="1cm" margin-top="1cm" 
margin-bottom="1cm">
   <fo:region-before extent="1cm"/>
   <fo:region-body margin-bottom="1.5cm" margin-top="1cm"/>
   <fo:region-after extent="0.5cm"/>
  </fo:simple-page-master>
 </fo:layout-master-set>

 <fo:page-sequence master-reference="page">
  <fo:static-content flow-name="xsl-region-before"/>
  <fo:static-content flow-name="xsl-region-after"/>
  <fo:flow flow-name="xsl-region-body">
   <fo:block width="3cm" height="3cm">Foo</fo:block>   
  </fo:flow>
 </fo:page-sequence>
</fo:root>
--- cut here ---


My command line is:
java -cp 
/opt/COCOON/WEB-INF/lib/batik-libs.jar:/opt/COCOON/WEB-INF/lib/xerces-1.4.4.jar:/opt/COCOON/WEB-INF/lib/avalon-framework-4.0.jar:/opt/COCOON/WEB-INF/lib/logkit-1.0.jar:/opt/COCOON/WEB-INF/lib/fop.jar 
org.apache.fop.apps.Fop ~/hello.fo file.pdf

My version of FOP is 0.20.3rc2.

It seems that FOP does not like AT ALL my file. It begins to generate a 
HUGE PDF file, and never ends.


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


Re: Bug report.

Posted by Olivier Rossel <ol...@anyware-tech.com>.
Olivier Rossel wrote:

> I try to generate a PDF from this FO:
> --- cut here ---
> <?xml version="1.0"?>
>
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
>
> <fo:layout-master-set>
>  <fo:simple-page-master master-name="page" page-width="297mm" 
> page-height="28mm" margin-left="1cm" margin-right="1cm" 
> margin-top="1cm" margin-bottom="1cm">
>   <fo:region-before extent="1cm"/>
>   <fo:region-body margin-bottom="1.5cm" margin-top="1cm"/>
>   <fo:region-after extent="0.5cm"/>
>  </fo:simple-page-master>
> </fo:layout-master-set>
>
> <fo:page-sequence master-reference="page">
>  <fo:static-content flow-name="xsl-region-before"/>
>  <fo:static-content flow-name="xsl-region-after"/>
>  <fo:flow flow-name="xsl-region-body">
>   <fo:block width="3cm" height="3cm">Foo</fo:block>    </fo:flow>
> </fo:page-sequence>
> </fo:root>
> --- cut here ---
>
>
> My command line is:
> java -cp 
> /opt/COCOON/WEB-INF/lib/batik-libs.jar:/opt/COCOON/WEB-INF/lib/xerces-1.4.4.jar:/opt/COCOON/WEB-INF/lib/avalon-framework-4.0.jar:/opt/COCOON/WEB-INF/lib/logkit-1.0.jar:/opt/COCOON/WEB-INF/lib/fop.jar 
> org.apache.fop.apps.Fop ~/hello.fo file.pdf
>
> My version of FOP is 0.20.3rc2.
>
> It seems that FOP does not like AT ALL my file. It begins to generate 
> a HUGE PDF file, and never ends.

I wonder if the static-content does REQUIRE a block inside it.
I wonder if static content is mandatory in the FO managed bo FOP.



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