Loading ...
Sorry, an error occurred while loading the content.

Re: [XSL-FO] Re: use svg in xslfo to generate pdf

Expand Messages
  • J.Pietschmann
    ... It would help if you described the problem in more detail. Cut&paste the console output might be a good start. J.Pietschmann
    Message 1 of 9 , May 3 1:03 PM
    • 0 Attachment
      minou_girl2005 wrote:
      > I use a class java to generate pdf,and your example can not work.
      > when i put a code svg,the execution interrupts.

      It would help if you described the problem in more detail. Cut&paste
      the console output might be a good start.

      J.Pietschmann
    • bg34342002
      Did you follow these instructions: http://xml.apache.org/fop/graphics.html#batik ...
      Message 2 of 9 , May 6 11:32 AM
      • 0 Attachment
        Did you follow these instructions:
        http://xml.apache.org/fop/graphics.html#batik


        --- In XSL-FO@yahoogroups.com, "minou_girl2005"
        <minou_girl2005@y...> wrote:
        > I use a class java to generate pdf,and your example can not work.
        > when i put a code svg,the execution interrupts.
        > can you give me please more inforamations about Batik???
        > i think the problem is with Batik.
        > thank you
        >
        >
        >
        >
        >
        >
        > --- In XSL-FO@yahoogroups.com, "arianhojat2000"
        <arianhojat2000@y...>
        > wrote:
        > > simple example:
        > > run this...
        > > command prompt> fop -fo example.fo -pdf example.pdf
        > >
        > > pdf file has svg in it?
        > >
        > > example.fo is...
        > >
        > >
        > > <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" >
        > > <fo:layout-master-set>
        > > <fo:simple-page-master master-name="simple">
        > > <fo:region-body/>
        > > </fo:simple-page-master>
        > > </fo:layout-master-set>
        > > <fo:page-sequence master-reference="simple">
        > > <fo:flow flow-name="xsl-region-body">
        > > <fo:block>
        > >
        > > <fo:instream-foreign-object>
        > > <svg:svg width="100pt" height="100pt"
        > > xmlns:svg="http://www.w3.org/2000/svg" >
        > > <svg:circle cx="50pt" cy="50pt"
        > > r="30pt" style="fill:blue;"/>
        > > </svg:svg>
        > > </fo:instream-foreign-object>
        > >
        > >
        > > <fo:instream-foreign-object>
        > > <svg:svg width="100pt" height="100pt"
        > > xmlns:svg="http://www.w3.org/2000/svg" >
        > > <svg:rect x="50pt" y="50pt"
        > > width="100pt" height="100pt" style="fill:blue;"/>
        > > </svg:svg>
        > > </fo:instream-foreign-object>
        > >
        > > </fo:block>
        > > </fo:flow>
        > > </fo:page-sequence>
        > > </fo:root>
      Your message has been successfully submitted and would be delivered to recipients shortly.