On Jun 10, 10:25 am, krithika <shyam.ram...@gmail.com> wrote:
> I have embedded xulrunner1.9 in my java application and generating a
> PDF of
> the page containing svg.The PDF output comes without svg.
>
> Iam not sure if Iam missing something in my build option to enable svg
> rendering.
>
> I already posted this in build group but I was asked to post it here.
>
> ================================ MY XULRUNNER BUILD OPTION
> ===========================
>
> mk_add_options MOZ_CO_PROJECT=xulrunner
> mk_add_options moz_objd...@topsrcdir@
>
> ac_add_options --disable-tests
> ac_add_options --prefix=/home/build/ff3inst
> ac_add_options --enable-application=xulrunner
> ac_add_options --enable-javaxpcom
> ac_add_options --disable-debug
> ac_add_options --enable-default-toolkit=cairo-gtk2
> ac_add_options --enable-optimize
> #ac_add_options --enable-strip
> #ac_add_options --enable-svg-foreignobject
> ac_add_options --enable-canvas
> ac_add_options --enable-svg
> ac_add_options --enable-svg-renderer=cairo
> ac_add_options --enable-extensions=default,spellcheck
> ac_add_options --with-java-include-path=/home/test/jdk1.5.0_13/include
> ac_add_options --with-java-bin-path=/home/test/jdk1.5.0_13/bin
>
> ====================================================================================
>
> ========================= MY FILE ===============================
> <?xml version="1.0"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
>                "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"; [
>     <!ENTITY mathml "http://www.w3.org/1998/Math/MathML";> ]>
>
> <html xmlns="http://www.w3.org/1999/xhtml";>
> <head>
> <title>SVG Embedded in XHTML</title>
> </head>
>
> <body>
> <h1>Testing SVG embedded in an html page.</h1>
>
> <p>Testing this content</p>
> <p style="width:20px;height:20px;">
> <svg width="100" height="100" viewBox="0 0 100 100"
>     xmlns="http://www.w3.org/2000/svg"; version="1.1">
>     <g style="z-index: 1001;" _type="Square" stroke="#DD4A02"
> fill="yellow" fill-opacity="1.0" stroke-width="1px" id="shape:
> 14f4c40a-2c43-dbc0-014d-0eb7e97a2971">
>         <path d="M 0 0L 100 0 100 100 0 100 0 0z" style="position:
> absolute;" _type="Square"/>
>     </g>
> </svg>
> </p>
> </body>
> </html>
> ======================================================
>
> Thanks in Advance.
>
> regards,
> Krithi

I figured out the problem.It works now.The problems were

1. file loaded has to be with extension xhtml.Otherwise it does not
recognise.
2. Being xhtml closing and opening of tags should be perfect.

regards,
Krithi
_______________________________________________
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to