Kritsada,

It would appear that there is some sort of problem with your external svg
image.

Since the current cvs has changed a great deal and will handle this
differently (and should work) I think it would be best to wait for the next
release or use current cvs.

Before you ask when is the next release - it will happen when it happens,
please be patient.


On Fri, 08 Jun 2001 09:06:20 Kritsada Poolwan wrote:
> Hello,
>       I'm sorry if it's a duplicated mail.
> 
>       I have a problem with SVG file that I need to convert to PDF file
> by using
> FOP. I search in FOP mailling list but I don't find the answer. I found
> your
> email in batik mailling list.
>       I see you have success in converted SVG file to PDF. Then could
> you tell me
> how to write fo tag that include SVG file in it?
>       I create SVG file from Illustrator 9.0 and create fo file like
> this:
> 
> --- FO:start ---
> <fo:root xmlns:xlink="http://www.w3.org/2000/xlink/namespace/";
> xmlns:fo="http://www.w3.org/1999/XSL/Format";>
>       <fo:layout-master-set>
>               <fo:simple-page-master
>                       margin-right="0.5cm" margin-left="0.7cm"
> margin-bottom="0.5cm"
> margin-top="1.5cm"
>                       page-width="20.8cm" page-height="29.4cm"
> master-name="invoice">
>                       <fo:region-body></fo:region-body>
>               </fo:simple-page-master>
> 
>               <fo:page-sequence-master master-name="FireBrand">
>                       <fo:repeatable-page-master-alternatives>
>                               <fo:conditional-page-master-reference
> master-name="invoice"
>                                       page-position="first" />
>                       </fo:repeatable-page-master-alternatives>
>               </fo:page-sequence-master>
>       </fo:layout-master-set>
> 
>       <fo:page-sequence master-name="FireBrand">
>               <fo:flow flow-name="xsl-region-body">
>                       <fo:block>
>                               <fo:instream-foreign-object 
>xmlns:svg="http://www.w3.org/2000/svg";
>                                       xmlns:fo="http://www.w3.org/1999/XSL/Format";>
>                                       <svg:svg height="300" width="300">
>                                               <svg:image 
>xlink:href="file:invoice.svg"/>
>                                       </svg:svg>
>                               </fo:instream-foreign-object>
>                       </fo:block>
>               </fo:flow>
>       </fo:page-sequence>
> </fo:root>
> ---- FO:End ----
> 
> Then I call FOP on command line to create PDF. PDF file is created but
> has
> not image from SVG tag.
> These are message when running fop command line:
> 
> --- Error ---
> D:\xml-fop>java -cp
> build\fop.jar;lib\w3c.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2
> .3.jar;lib\jimi-1.0.jar org.apache.fop.apps.Fop inv.fo invoice.pdf
> FOP 0.19.0-CVS
> using SAX parser org.apache.xerces.parsers.SAXParser
> building formatting object tree
> setting up fonts
> formatting FOs into areas
>  [1]
> rendering areas to PDF
> using element mapping org.apache.fop.svg.SVGElementMapping
> using property list mapping org.apache.fop.svg.SVGPropertyListMapping
> using SAX parser org.apache.xerces.parsers.SAXParser
> building svg tree
> WARNING: Unknown formatting object %SVGNamespace;^svg
> java.lang.NullPointerException
>         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:965)
>         at org.apache.fop.svg.SVGDriver.buildSVGTree(SVGDriver.java:223)


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

Reply via email to