Hi

It gives me following error 


---------
C:\fop-0.20.3>fop.bat cert.fo cert.pdf
C:\fop-0.20.3>java -cp
build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;lib
\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar
org.apache.fop.apps.Fop cert.fo cert.pdf
[INFO]: FOP 0.20.3
[INFO]: building formatting object tree
[ERROR]: Error in background-image property value 'url:2.jpg':
org.apache.fop.fo.expr.PropertyException: illegal character
[WARN]: property - "background-repeat" is not implemented yet.
[INFO]: [1]
[INFO]: Parsing of document complete, stopping renderer
-------------------------------------------------------------
This is my code

<?xml version="1.0" encoding="UTF-8"?>
        <fo:root font-family="Times Roman" font-size="12pt"
text-align="center" xmlns:fo="http://www.w3.org/1999/XSL/Format";>
                <fo:layout-master-set>
                            <fo:simple-page-master
master-name="default-page" page-height="8in" page-width="10in">
                                <fo:region-body
background-image="url:2.jpg" background-repeat="no-repeat" />
                            </fo:simple-page-master>
                </fo:layout-master-set>
                <fo:page-sequence master-reference="default-page"
initial-page-number="1" format="1" >
                    <fo:flow flow-name="xsl-region-body">
                        <fo:block-container >
                            sdgdfgdfg
                        </fo:block-container>
                       <fo:block id="SV_RefID_PageTotal" />
                    </fo:flow>
                </fo:page-sequence>
        </fo:root>
    


-----Original Message-----
From: Chris Bowditch [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 05, 2007 5:35 PM
To: [email protected]
Subject: Re: how to put image in Background

Prashant Saraf wrote:

> Hello all,
> 
> I need to put *background* image in PDF, can some one tell me how to
do 
> it. If u give any example thanks for that. Tell any doc or link  which

> is helpful.

background-image is the relevant property. It can be added to any of the

fo:region-* elements that are children of fo:simple-page-master.

It might be an idea to review some of the online resources listed on 
FOP's website to give you a grasp of the FO basics.

http://xmlgraphics.apache.org/fop/resources.html#documents-xslfo

Chris




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to