You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Jeremy Heiler <je...@gmail.com> on 2016/04/28 22:40:26 UTC

SVG text not displaying in PDF

I am in the process of upgrading from FOP 0.92-beta to 2.1, and for the
most part I have been able to work out the issues. However, I am stumped
with this particular issue of rending text in an SVG. Any SVG text that
used to render no longer displays at all. I have tried adding font auto
detection. I've removed, added, and removed again, the font metrics in the
fop.xconf. Here's what I have now:

<?xml version="1.0"?>
<fop version="1.0">
  <strict-configuration>true</strict-configuration>
  <strict-validation>true</strict-validation>
  <base>/var/foo/</base>
  <renderers>
    <renderer mime="application/pdf">
      <filterList>
        <value>flate</value>
      </filterList>
    </renderer>
  </renderers>
</fop>

When generating a PDF, I do get a few warnings like:

The contents of fo:instream-foreign-object line 1 exceed the available area
in the inline-progression direction by 5000 millipoints. (No context info
available)
The contents of fo:instream-foreign-object line 1 exceed the available area
in the inline-progression direction by more than 50 points. (No context
info available)

I've looked at the documentation, the upgrading instructions, but nothing
seems to help. What am I missing?

Thanks,
Jeremy

Re: SVG text not displaying in PDF

Posted by sachinparadkar <sa...@gmail.com>.
Hi Szeak,

Thanks for your reply . I am expecting a blank table with different lines
and container without any data in my PDF . I am using FOP2.0 . If I upgrade
to FOP2.1 will this solve my problem of getting a blank PDF ? 

Thanks,
Sachin.



--
View this message in context: http://apache-fop.1065347.n5.nabble.com/SVG-text-not-displaying-in-PDF-tp43881p45247.html
Sent from the FOP - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: SVG text not displaying in PDF

Posted by sachinparadkar <sa...@gmail.com>.
Hi Szaek,

I was able to generate the PDF . Now when I try to write anything inside the
PDF all the text is either top of the PDF or at the bottom of the PDF . Is
there a way I could write inside the PDF in between the lines . Attached is
the PDF I generated . 

Thanks,
Sachin.

<http://apache-fop.1065347.n5.nabble.com/file/n45282/1.png> 



--
View this message in context: http://apache-fop.1065347.n5.nabble.com/SVG-text-not-displaying-in-PDF-tp43881p45282.html
Sent from the FOP - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: SVG text not displaying in PDF

Posted by "Szeak (Register Man)" <sz...@gmail.com>.
Hi,

See the basic usage pattern on FOP site at version you run. ie. for 
v2.1: https://xmlgraphics.apache.org/fop/2.1/embedding.html


2017-07-17 21:20 keltezéssel, sachinparadkar írta:
> Hi Szaek,
>
> I run my program currently through the FOP command like this -
>
> fop -xml C:/workspace/WireImaging/src/main/xQuery/WSUMM_Joint_Sample.xml
> -xsl
> C:/workspace/WireImaging/src/main/xQuery/xml-to-pdf-JointUI_WC_Report.xsl
> -pdf C:/workspace/WireImaging/src/main/xQuery/foo.pdf
>
> Is there a way I can run the above from my java program ?since I have to
> generate multiple PDF's based on the stylesheet !!
>
> Thanks,
> Sachin.
>
>
>
> --
> View this message in context: http://apache-fop.1065347.n5.nabble.com/SVG-text-not-displaying-in-PDF-tp43881p45329.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: SVG text not displaying in PDF

Posted by sachinparadkar <sa...@gmail.com>.
Hi Szaek,

I run my program currently through the FOP command like this - 

fop -xml C:/workspace/WireImaging/src/main/xQuery/WSUMM_Joint_Sample.xml
-xsl
C:/workspace/WireImaging/src/main/xQuery/xml-to-pdf-JointUI_WC_Report.xsl
-pdf C:/workspace/WireImaging/src/main/xQuery/foo.pdf

Is there a way I can run the above from my java program ?since I have to
generate multiple PDF's based on the stylesheet !! 

Thanks,
Sachin.



--
View this message in context: http://apache-fop.1065347.n5.nabble.com/SVG-text-not-displaying-in-PDF-tp43881p45329.html
Sent from the FOP - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: SVG text not displaying in PDF

Posted by "Szeak (Register Man)" <sz...@gmail.com>.
Hi,

How is your running environment? You need graphic environment.
Read Apache Batik instructions in FOP documentation: 
https://xmlgraphics.apache.org/fop/2.1/graphics.html

Szeak

2017-06-29 18:36 keltezéssel, sachinparadkar írta:
> Hi Szaek,
>
> I tried changing the template to <xsl:template match="/">  and <xsl:template
> match="//Policy_Summary_Reports"> in both the cases I got a empty PDF . If I
> try to write anything in the PDF using <fo:block> that content gets
> displayed in my PDF. So the xsl:template is definately not the issue . I was
> able to generate another PDF using <fo:block> and fo:containers but just
> with the svg tags my PDF is getting generated without any content .
>
> Regards,
> Sachin.
>
>
>
> --
> View this message in context: http://apache-fop.1065347.n5.nabble.com/SVG-text-not-displaying-in-PDF-tp43881p45253.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: SVG text not displaying in PDF

Posted by sachinparadkar <sa...@gmail.com>.
Hi Szaek,

I tried changing the template to <xsl:template match="/">  and <xsl:template
match="//Policy_Summary_Reports"> in both the cases I got a empty PDF . If I
try to write anything in the PDF using <fo:block> that content gets
displayed in my PDF. So the xsl:template is definately not the issue . I was
able to generate another PDF using <fo:block> and fo:containers but just
with the svg tags my PDF is getting generated without any content .

Regards,
Sachin.



--
View this message in context: http://apache-fop.1065347.n5.nabble.com/SVG-text-not-displaying-in-PDF-tp43881p45253.html
Sent from the FOP - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: SVG text not displaying in PDF

Posted by "Szeak (Register Man)" <sz...@gmail.com>.
Hi Sachin,

I modified one piece of your XSL template to get the result with any XML 
file.
FROM:
<xsl:template match="Policy_Summary_Reports">
TO:
<xsl:template match="/">

Maybe your XML input does not have a Policy_Summary_Reports named top 
level node. If this node stands lower level, you may need to modify the 
matching ie.:
<xsl:template match="//Policy_Summary_Reports">

Best regards, Szeak

2017-06-29 06:23 keltezéssel, sachinparadkar írta:
> Hi Szaek,
>
> Am I missing any jar files required to display SVG tags related table in my
> PDF ? I updated my fop jar from version 2.0 to 2.1 and still got a empty PDF
> without the complex table which rendered for you when you ran my code from
> command line !!
>
> Thanks,
> Sachin.
>
>
>
> --
> View this message in context: http://apache-fop.1065347.n5.nabble.com/SVG-text-not-displaying-in-PDF-tp43881p45248.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: SVG text not displaying in PDF

Posted by sachinparadkar <sa...@gmail.com>.
Hi Szaek,

Am I missing any jar files required to display SVG tags related table in my
PDF ? I updated my fop jar from version 2.0 to 2.1 and still got a empty PDF
without the complex table which rendered for you when you ran my code from
command line !! 

Thanks,
Sachin.



--
View this message in context: http://apache-fop.1065347.n5.nabble.com/SVG-text-not-displaying-in-PDF-tp43881p45248.html
Sent from the FOP - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: SVG text not displaying in PDF

Posted by "Szeak (Register Man)" <sz...@gmail.com>.
Hi,

How do you use this template?
1. Input XML data?
2. Which FOP version do you use?

I tried this with FOP 2.1 from command line and I see a small complex 
but empty table layout in the PDF.
What do you wish to see in PDF?

Szeak


2017-06-27 21:04 keltezéssel, sachinparadkar írta:
> Plz help my below code does not render anything in my PDF -
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="1.1"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>      xmlns:fo="http://www.w3.org/1999/XSL/Format"
>      xmlns:svg="http://www.w3.org/2000/svg">
> <xsl:template match="Policy_Summary_Reports">
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
> xmlns:html="http://www.w3.org/1999/xhtml"
> xmlns:svg="http://www.w3.org/2000/svg" writing-mode="lr-tb"
> hyphenate="false" text-align="start" role="html:html" xml:lang="en">
> <fo:layout-master-set>
> 	<fo:simple-page-master page-width="auto" page-height="auto"
> master-name="all-pages">
> 	<fo:region-body column-gap="12pt" column-count="1" margin-left="1in"
> margin-bottom="1in" margin-right="1in" margin-top="1in"/>
> 	<fo:region-before display-align="before" extent="1in"
> region-name="page-header"/>
> 	<fo:region-after display-align="after" extent="1in"
> region-name="page-footer"/>
> 	<fo:region-start extent="1in"/><fo:region-end extent="1in"/>
> 	</fo:simple-page-master>
> </fo:layout-master-set>
>
> <fo:page-sequence master-reference="all-pages">
> <fo:title/>
> <fo:static-content flow-name="page-header">
> <fo:block font-size="small" text-align="center" space-before="0.5in"
> space-before.conditionality="retain"/>
> </fo:static-content>
> <fo:static-content flow-name="page-footer">
> <fo:block font-size="small" text-align="center" space-after="0.5in"
> space-after.conditionality="retain">-<fo:page-number/>-</fo:block>
> </fo:static-content>
>
>
>
> <fo:flow flow-name="xsl-region-body">
> <fo:block role="html:body" margin="0">
>
>
>
> 		
>
>
>
>
>
> <fo:instream-foreign-object xmlns:svg="http://www.w3.org/2000/svg">
> <svg:svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1989 2574"
> version="1.1">
> <svg:defs>
> <svg:style type="text/css"></svg:style>
> </svg:defs>
> <svg:path d="M82.9,492.2l549.3,0" class="g1_1" />
> <svg:path fill-rule="evenodd" d="M82.7,493.1l549.7,0l0,-1.1L82.7,492l0,1.1Z"
> class="g2_1" />
> <svg:path d="M1924.8,130.1l0,360.9" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M1924.6,491.2l1.2,0l0,-361.3l-1.2,0l0,361.3Z" class="g2_1" />
> <svg:path d="M632.6,493.7l0,103.8" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M632.4,597.7l1.2,0l0,-104.2l-1.2,0l0,104.2Z" class="g2_1" />
> <svg:path d="M1924.8,493.7l0,103.8" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M1924.6,597.7l1.2,0l0,-104.2l-1.2,0l0,104.2Z" class="g2_1" />
> <svg:path d="M82.9,668.5l550.5,0" class="g1_1" />
> <svg:path fill-rule="evenodd" d="M82.7,669.5l550.9,0l0,-1.2l-550.9,0l0,1.2Z"
> class="g2_1" />
> <svg:path d="M82.9,716.5l550.5,0" class="g1_1" />
> <svg:path fill-rule="evenodd" d="M82.7,717.5l550.9,0l0,-1.2l-550.9,0l0,1.2Z"
> class="g2_1" />
> <svg:path d="M1473.4,1152.6l135,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M1473.2,1153.6l135.4,0l0,-1.1l-135.4,0l0,1.1Z" class="g2_1" />
> <svg:path d="M1631.8,1152.6l135,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M1631.6,1153.6l135.4,0l0,-1.1l-135.4,0l0,1.1Z" class="g2_1" />
> <svg:path d="M82.9,1174.5l549.3,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M82.7,1175.5l549.7,0l0,-1.2l-549.7,0l0,1.2Z" class="g2_1" />
> <svg:path d="M1924.8,600.2l0,573.1" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M1924.6,1173.5l1.2,0l0,-573.5l-1.2,0l0,573.5Z" class="g2_1" />
> <svg:path d="M1338,1241.2l0,1043.6" class="g1_1" />
> <svg:path fill-rule="evenodd" d="M1337.8,2285l1.2,0l0,-1044l-1.2,0l0,1044Z"
> class="g2_1" />
> <svg:path d="M1924.8,1176.1l0,1108.7" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M1924.6,2285l1.2,0l0,-1109.1l-1.2,0l0,1109.1Z" class="g2_1" />
> <svg:path d="M81.7,129l0,2306.4" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M81.5,2435.6l1.2,0l0,-2306.8l-1.2,0l0,2306.8Z" class="g2_1" />
> <svg:path d="M1924.8,2287.5l0,147.9" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M1924.6,2435.6l1.2,0l0,-148.3l-1.2,0l0,148.3Z" class="g2_1" />
> <svg:path d="M632.6,600.2l0,573.1" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M632.4,1173.5l1.2,0l0,-573.5l-1.2,0l0,573.5Z" class="g2_1" />
> <svg:path d="M302.6,1241.2l0,653.5" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M302.4,1894.9l1.1,0l0,-653.9l-1.1,0l0,653.9Z" class="g2_1" />
> <svg:path d="M523.4,1241.2l0,653.5" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M523.2,1894.9l1.2,0l0,-653.9l-1.2,0l0,653.9Z" class="g2_1" />
> <svg:path d="M1074.3,1241.2l0,653.5" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M1074.1,1894.9l1.1,0l0,-653.9l-1.1,0l0,653.9Z" class="g2_1" />
> <svg:path d="M1338,2287.5l0,80.8" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M1337.8,2368.5l1.2,0l0,-81.2l-1.2,0l0,81.2Z" class="g2_1" />
> <svg:path d="M767.6,1895.1l0,473.2" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M767.4,2368.5l1.2,0l0,-473.6l-1.2,0l0,473.6Z" class="g2_1" />
> <svg:path d="M82.9,129l1842.7,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M82.7,129.9l1843.1,0l0,-1.1l-1843.1,0l0,1.1Z" class="g2_1" />
> <svg:path fill-rule="evenodd"
> d="M632.4,493.5l1293.4,0l0,-2.3l-1293.4,0l0,2.3Z" class="g2_1" />
> <svg:path d="M82.9,554.9l550.5,0" class="g1_1" />
> <svg:path fill-rule="evenodd" d="M82.7,555.9l550.9,0l0,-1.1l-550.9,0l0,1.1Z"
> class="g2_1" />
> <svg:path fill-rule="evenodd"
> d="M632.4,600l1293.4,0l0,-2.3l-1293.4,0l0,2.3Z" class="g2_1" />
> <svg:path d="M1473.4,668.5l452.2,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M1473.2,669.5l452.6,0l0,-1.2l-452.6,0l0,1.2Z" class="g2_1" />
> <svg:path d="M1473.4,716.5l452.2,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M1473.2,717.5l452.6,0l0,-1.2l-452.6,0l0,1.2Z" class="g2_1" />
> <svg:path d="M1473.4,764.5l452.2,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M1473.2,765.4l452.6,0l0,-1.1l-452.6,0l0,1.1Z" class="g2_1" />
> <svg:path d="M1473.4,812.4l452.2,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M1473.2,813.4l452.6,0l0,-1.2l-452.6,0l0,1.2Z" class="g2_1" />
> <svg:path d="M1473.4,860.4l452.2,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M1473.2,861.4l452.6,0l0,-1.1l-452.6,0l0,1.1Z" class="g2_1" />
> <svg:path d="M1473.4,908.4l452.2,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M1473.2,909.4l452.6,0l0,-1.2l-452.6,0l0,1.2Z" class="g2_1" />
> <svg:path d="M1473.4,956.4l452.2,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M1473.2,957.4l452.6,0l0,-1.2l-452.6,0l0,1.2Z" class="g2_1" />
> <svg:path d="M1473.4,1004.4l452.2,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M1473.2,1005.4l452.6,0l0,-1.2l-452.6,0l0,1.2Z" class="g2_1" />
> <svg:path d="M82.9,1052.4l550.5,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M82.7,1053.4l550.9,0l0,-1.2l-550.9,0l0,1.2Z" class="g2_1" />
> <svg:path d="M1790.2,1152.6l135.4,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M1790,1153.6l135.8,0l0,-1.1l-135.8,0l0,1.1Z" class="g2_1" />
> <svg:path fill-rule="evenodd"
> d="M632.4,1175.9l1293.4,0l0,-2.4l-1293.4,0l0,2.4Z" class="g2_1" />
> <svg:path d="M82.9,1240l1842.7,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M82.7,1241l1843.1,0l0,-1.2l-1843.1,0l0,1.2Z" class="g2_1" />
> <svg:path d="M82.9,1304l1842.7,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M82.7,1305l1843.1,0l0,-1.2l-1843.1,0l0,1.2Z" class="g2_1" />
> <svg:path d="M82.9,1369.6l1842.7,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M82.7,1370.5l1843.1,0l0,-1.1l-1843.1,0l0,1.1Z" class="g2_1" />
> <svg:path d="M82.9,1435.1l1842.7,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M82.7,1436.1l1843.1,0l0,-1.2l-1843.1,0l0,1.2Z" class="g2_1" />
> <svg:path d="M82.9,1500.6l1842.7,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M82.7,1501.6l1843.1,0l0,-1.2l-1843.1,0l0,1.2Z" class="g2_1" />
> <svg:path d="M82.9,1566.2l1842.7,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M82.7,1567.2l1843.1,0l0,-1.2L82.7,1566l0,1.2Z" class="g2_1" />
> <svg:path d="M82.9,1631.7l1842.7,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M82.7,1632.7l1843.1,0l0,-1.2l-1843.1,0l0,1.2Z" class="g2_1" />
> <svg:path d="M82.9,1697.3l1842.7,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M82.7,1698.2l1843.1,0l0,-1.1l-1843.1,0l0,1.1Z" class="g2_1" />
> <svg:path d="M82.9,1762.8l1842.7,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M82.7,1763.8l1843.1,0l0,-1.2l-1843.1,0l0,1.2Z" class="g2_1" />
> <svg:path d="M82.9,1828.4l1842.7,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M82.7,1829.3l1843.1,0l0,-1.1l-1843.1,0l0,1.1Z" class="g2_1" />
> <svg:path d="M82.9,1893.9l1842.7,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M82.7,1894.9l1843.1,0l0,-1.2l-1843.1,0l0,1.2Z" class="g2_1" />
> <svg:path d="M1339.2,1972.3l586.4,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M1339,1973.3l586.8,0l0,-1.2l-586.8,0l0,1.2Z" class="g2_1" />
> <svg:path d="M1339.2,2050.7l586.4,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M1339,2051.7l586.8,0l0,-1.2l-586.8,0l0,1.2Z" class="g2_1" />
> <svg:path d="M768.8,2129.1l1156.8,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M768.6,2130.1l1157.2,0l0,-1.2l-1157.2,0l0,1.2Z" class="g2_1" />
> <svg:path d="M1339.2,2207.5l586.4,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M1339,2208.5l586.8,0l0,-1.2l-586.8,0l0,1.2Z" class="g2_1" />
> <svg:path fill-rule="evenodd" d="M1337.8,2287.3l588,0l0,-2.3l-588,0l0,2.3Z"
> class="g2_1" />
> <svg:path d="M768.8,2367.5l1156.8,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M768.6,2368.5l1157.2,0l0,-1.2l-1157.2,0l0,1.2Z" class="g2_1" />
> <svg:path d="M82.9,2434.6l1842.7,0" class="g1_1" />
> <svg:path fill-rule="evenodd"
> d="M82.7,2435.6l1843.1,0l0,-1.2l-1843.1,0l0,1.2Z" class="g2_1" />
> <svg:path fill-rule="evenodd"
> d="M1763.1,380c0,-8.6,7.9,-15.7,17.6,-15.7c9.8,0,17.7,7.1,17.7,15.7c0,8.7,-7.9,15.7,-17.7,15.7c-9.7,0,-17.6,-7,-17.6,-15.7Z"
> class="g2_1" />
> <svg:path
> d="M1763.1,380c0,-8.6,7.9,-15.7,17.6,-15.7c9.8,0,17.7,7.1,17.7,15.7c0,8.7,-7.9,15.7,-17.7,15.7c-9.7,0,-17.6,-7,-17.6,-15.7Z"
> class="g3_1" />
> <svg:path fill-rule="evenodd"
> d="M285.9,1999.2c0,-8.7,7.9,-15.7,17.7,-15.7c9.7,0,17.6,7,17.6,15.7c0,8.7,-7.9,15.7,-17.6,15.7c-9.8,0,-17.7,-7,-17.7,-15.7Z"
> class="g2_1" />
> <svg:path
> d="M285.9,1999.2c0,-8.7,7.9,-15.7,17.7,-15.7c9.7,0,17.6,7,17.6,15.7c0,8.7,-7.9,15.7,-17.6,15.7c-9.8,0,-17.7,-7,-17.7,-15.7Z"
> class="g3_1" />
> </svg:svg>
> </fo:instream-foreign-object>
>
>
>
>
>
>
>
>
> </fo:block>
> </fo:flow>
> </fo:page-sequence>
> </fo:root>
> </xsl:template>
> </xsl:stylesheet>
>
>
>
> --
> View this message in context: http://apache-fop.1065347.n5.nabble.com/SVG-text-not-displaying-in-PDF-tp43881p45244.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: SVG text not displaying in PDF

Posted by sachinparadkar <sa...@gmail.com>.
Plz help my below code does not render anything in my PDF - 

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.1"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    xmlns:fo="http://www.w3.org/1999/XSL/Format" 
    xmlns:svg="http://www.w3.org/2000/svg">
<xsl:template match="Policy_Summary_Reports">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:svg="http://www.w3.org/2000/svg" writing-mode="lr-tb"
hyphenate="false" text-align="start" role="html:html" xml:lang="en">
<fo:layout-master-set>
	<fo:simple-page-master page-width="auto" page-height="auto"
master-name="all-pages">
	<fo:region-body column-gap="12pt" column-count="1" margin-left="1in"
margin-bottom="1in" margin-right="1in" margin-top="1in"/>
	<fo:region-before display-align="before" extent="1in"
region-name="page-header"/>
	<fo:region-after display-align="after" extent="1in"
region-name="page-footer"/>
	<fo:region-start extent="1in"/><fo:region-end extent="1in"/>
	</fo:simple-page-master>
</fo:layout-master-set>

<fo:page-sequence master-reference="all-pages">
<fo:title/>
<fo:static-content flow-name="page-header">
<fo:block font-size="small" text-align="center" space-before="0.5in"
space-before.conditionality="retain"/>
</fo:static-content>
<fo:static-content flow-name="page-footer">
<fo:block font-size="small" text-align="center" space-after="0.5in"
space-after.conditionality="retain">-<fo:page-number/>-</fo:block>
</fo:static-content>



<fo:flow flow-name="xsl-region-body">
<fo:block role="html:body" margin="0">



		     





<fo:instream-foreign-object xmlns:svg="http://www.w3.org/2000/svg">
<svg:svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1989 2574"
version="1.1">
<svg:defs>
<svg:style type="text/css"></svg:style>
</svg:defs>
<svg:path d="M82.9,492.2l549.3,0" class="g1_1" />
<svg:path fill-rule="evenodd" d="M82.7,493.1l549.7,0l0,-1.1L82.7,492l0,1.1Z"
class="g2_1" />
<svg:path d="M1924.8,130.1l0,360.9" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M1924.6,491.2l1.2,0l0,-361.3l-1.2,0l0,361.3Z" class="g2_1" />
<svg:path d="M632.6,493.7l0,103.8" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M632.4,597.7l1.2,0l0,-104.2l-1.2,0l0,104.2Z" class="g2_1" />
<svg:path d="M1924.8,493.7l0,103.8" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M1924.6,597.7l1.2,0l0,-104.2l-1.2,0l0,104.2Z" class="g2_1" />
<svg:path d="M82.9,668.5l550.5,0" class="g1_1" />
<svg:path fill-rule="evenodd" d="M82.7,669.5l550.9,0l0,-1.2l-550.9,0l0,1.2Z"
class="g2_1" />
<svg:path d="M82.9,716.5l550.5,0" class="g1_1" />
<svg:path fill-rule="evenodd" d="M82.7,717.5l550.9,0l0,-1.2l-550.9,0l0,1.2Z"
class="g2_1" />
<svg:path d="M1473.4,1152.6l135,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M1473.2,1153.6l135.4,0l0,-1.1l-135.4,0l0,1.1Z" class="g2_1" />
<svg:path d="M1631.8,1152.6l135,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M1631.6,1153.6l135.4,0l0,-1.1l-135.4,0l0,1.1Z" class="g2_1" />
<svg:path d="M82.9,1174.5l549.3,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M82.7,1175.5l549.7,0l0,-1.2l-549.7,0l0,1.2Z" class="g2_1" />
<svg:path d="M1924.8,600.2l0,573.1" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M1924.6,1173.5l1.2,0l0,-573.5l-1.2,0l0,573.5Z" class="g2_1" />
<svg:path d="M1338,1241.2l0,1043.6" class="g1_1" />
<svg:path fill-rule="evenodd" d="M1337.8,2285l1.2,0l0,-1044l-1.2,0l0,1044Z"
class="g2_1" />
<svg:path d="M1924.8,1176.1l0,1108.7" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M1924.6,2285l1.2,0l0,-1109.1l-1.2,0l0,1109.1Z" class="g2_1" />
<svg:path d="M81.7,129l0,2306.4" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M81.5,2435.6l1.2,0l0,-2306.8l-1.2,0l0,2306.8Z" class="g2_1" />
<svg:path d="M1924.8,2287.5l0,147.9" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M1924.6,2435.6l1.2,0l0,-148.3l-1.2,0l0,148.3Z" class="g2_1" />
<svg:path d="M632.6,600.2l0,573.1" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M632.4,1173.5l1.2,0l0,-573.5l-1.2,0l0,573.5Z" class="g2_1" />
<svg:path d="M302.6,1241.2l0,653.5" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M302.4,1894.9l1.1,0l0,-653.9l-1.1,0l0,653.9Z" class="g2_1" />
<svg:path d="M523.4,1241.2l0,653.5" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M523.2,1894.9l1.2,0l0,-653.9l-1.2,0l0,653.9Z" class="g2_1" />
<svg:path d="M1074.3,1241.2l0,653.5" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M1074.1,1894.9l1.1,0l0,-653.9l-1.1,0l0,653.9Z" class="g2_1" />
<svg:path d="M1338,2287.5l0,80.8" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M1337.8,2368.5l1.2,0l0,-81.2l-1.2,0l0,81.2Z" class="g2_1" />
<svg:path d="M767.6,1895.1l0,473.2" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M767.4,2368.5l1.2,0l0,-473.6l-1.2,0l0,473.6Z" class="g2_1" />
<svg:path d="M82.9,129l1842.7,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M82.7,129.9l1843.1,0l0,-1.1l-1843.1,0l0,1.1Z" class="g2_1" />
<svg:path fill-rule="evenodd"
d="M632.4,493.5l1293.4,0l0,-2.3l-1293.4,0l0,2.3Z" class="g2_1" />
<svg:path d="M82.9,554.9l550.5,0" class="g1_1" />
<svg:path fill-rule="evenodd" d="M82.7,555.9l550.9,0l0,-1.1l-550.9,0l0,1.1Z"
class="g2_1" />
<svg:path fill-rule="evenodd"
d="M632.4,600l1293.4,0l0,-2.3l-1293.4,0l0,2.3Z" class="g2_1" />
<svg:path d="M1473.4,668.5l452.2,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M1473.2,669.5l452.6,0l0,-1.2l-452.6,0l0,1.2Z" class="g2_1" />
<svg:path d="M1473.4,716.5l452.2,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M1473.2,717.5l452.6,0l0,-1.2l-452.6,0l0,1.2Z" class="g2_1" />
<svg:path d="M1473.4,764.5l452.2,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M1473.2,765.4l452.6,0l0,-1.1l-452.6,0l0,1.1Z" class="g2_1" />
<svg:path d="M1473.4,812.4l452.2,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M1473.2,813.4l452.6,0l0,-1.2l-452.6,0l0,1.2Z" class="g2_1" />
<svg:path d="M1473.4,860.4l452.2,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M1473.2,861.4l452.6,0l0,-1.1l-452.6,0l0,1.1Z" class="g2_1" />
<svg:path d="M1473.4,908.4l452.2,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M1473.2,909.4l452.6,0l0,-1.2l-452.6,0l0,1.2Z" class="g2_1" />
<svg:path d="M1473.4,956.4l452.2,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M1473.2,957.4l452.6,0l0,-1.2l-452.6,0l0,1.2Z" class="g2_1" />
<svg:path d="M1473.4,1004.4l452.2,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M1473.2,1005.4l452.6,0l0,-1.2l-452.6,0l0,1.2Z" class="g2_1" />
<svg:path d="M82.9,1052.4l550.5,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M82.7,1053.4l550.9,0l0,-1.2l-550.9,0l0,1.2Z" class="g2_1" />
<svg:path d="M1790.2,1152.6l135.4,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M1790,1153.6l135.8,0l0,-1.1l-135.8,0l0,1.1Z" class="g2_1" />
<svg:path fill-rule="evenodd"
d="M632.4,1175.9l1293.4,0l0,-2.4l-1293.4,0l0,2.4Z" class="g2_1" />
<svg:path d="M82.9,1240l1842.7,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M82.7,1241l1843.1,0l0,-1.2l-1843.1,0l0,1.2Z" class="g2_1" />
<svg:path d="M82.9,1304l1842.7,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M82.7,1305l1843.1,0l0,-1.2l-1843.1,0l0,1.2Z" class="g2_1" />
<svg:path d="M82.9,1369.6l1842.7,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M82.7,1370.5l1843.1,0l0,-1.1l-1843.1,0l0,1.1Z" class="g2_1" />
<svg:path d="M82.9,1435.1l1842.7,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M82.7,1436.1l1843.1,0l0,-1.2l-1843.1,0l0,1.2Z" class="g2_1" />
<svg:path d="M82.9,1500.6l1842.7,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M82.7,1501.6l1843.1,0l0,-1.2l-1843.1,0l0,1.2Z" class="g2_1" />
<svg:path d="M82.9,1566.2l1842.7,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M82.7,1567.2l1843.1,0l0,-1.2L82.7,1566l0,1.2Z" class="g2_1" />
<svg:path d="M82.9,1631.7l1842.7,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M82.7,1632.7l1843.1,0l0,-1.2l-1843.1,0l0,1.2Z" class="g2_1" />
<svg:path d="M82.9,1697.3l1842.7,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M82.7,1698.2l1843.1,0l0,-1.1l-1843.1,0l0,1.1Z" class="g2_1" />
<svg:path d="M82.9,1762.8l1842.7,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M82.7,1763.8l1843.1,0l0,-1.2l-1843.1,0l0,1.2Z" class="g2_1" />
<svg:path d="M82.9,1828.4l1842.7,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M82.7,1829.3l1843.1,0l0,-1.1l-1843.1,0l0,1.1Z" class="g2_1" />
<svg:path d="M82.9,1893.9l1842.7,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M82.7,1894.9l1843.1,0l0,-1.2l-1843.1,0l0,1.2Z" class="g2_1" />
<svg:path d="M1339.2,1972.3l586.4,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M1339,1973.3l586.8,0l0,-1.2l-586.8,0l0,1.2Z" class="g2_1" />
<svg:path d="M1339.2,2050.7l586.4,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M1339,2051.7l586.8,0l0,-1.2l-586.8,0l0,1.2Z" class="g2_1" />
<svg:path d="M768.8,2129.1l1156.8,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M768.6,2130.1l1157.2,0l0,-1.2l-1157.2,0l0,1.2Z" class="g2_1" />
<svg:path d="M1339.2,2207.5l586.4,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M1339,2208.5l586.8,0l0,-1.2l-586.8,0l0,1.2Z" class="g2_1" />
<svg:path fill-rule="evenodd" d="M1337.8,2287.3l588,0l0,-2.3l-588,0l0,2.3Z"
class="g2_1" />
<svg:path d="M768.8,2367.5l1156.8,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M768.6,2368.5l1157.2,0l0,-1.2l-1157.2,0l0,1.2Z" class="g2_1" />
<svg:path d="M82.9,2434.6l1842.7,0" class="g1_1" />
<svg:path fill-rule="evenodd"
d="M82.7,2435.6l1843.1,0l0,-1.2l-1843.1,0l0,1.2Z" class="g2_1" />
<svg:path fill-rule="evenodd"
d="M1763.1,380c0,-8.6,7.9,-15.7,17.6,-15.7c9.8,0,17.7,7.1,17.7,15.7c0,8.7,-7.9,15.7,-17.7,15.7c-9.7,0,-17.6,-7,-17.6,-15.7Z"
class="g2_1" />
<svg:path
d="M1763.1,380c0,-8.6,7.9,-15.7,17.6,-15.7c9.8,0,17.7,7.1,17.7,15.7c0,8.7,-7.9,15.7,-17.7,15.7c-9.7,0,-17.6,-7,-17.6,-15.7Z"
class="g3_1" />
<svg:path fill-rule="evenodd"
d="M285.9,1999.2c0,-8.7,7.9,-15.7,17.7,-15.7c9.7,0,17.6,7,17.6,15.7c0,8.7,-7.9,15.7,-17.6,15.7c-9.8,0,-17.7,-7,-17.7,-15.7Z"
class="g2_1" />
<svg:path
d="M285.9,1999.2c0,-8.7,7.9,-15.7,17.7,-15.7c9.7,0,17.6,7,17.6,15.7c0,8.7,-7.9,15.7,-17.6,15.7c-9.8,0,-17.7,-7,-17.7,-15.7Z"
class="g3_1" />
</svg:svg>
</fo:instream-foreign-object>








</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
</xsl:stylesheet>



--
View this message in context: http://apache-fop.1065347.n5.nabble.com/SVG-text-not-displaying-in-PDF-tp43881p45244.html
Sent from the FOP - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: SVG text not displaying in PDF

Posted by Jeremy Heiler <je...@gmail.com>.
On Thu, Apr 28, 2016 at 6:07 PM, Jeremy Heiler <je...@gmail.com>
wrote:

> Ah! Removing the x and y attributes from the svg:text works! But I don't
> understand it. And all the text is on top of each other at 0,0.
>

It turns out if I remove all the "pt" suffixes from the svg x and y
attribute values, everything works

/me shrugs

(Sorry for all the noise and top posting)

Re: SVG text not displaying in PDF

Posted by Jeremy Heiler <je...@gmail.com>.
Ah! Removing the x and y attributes from the svg:text works! But I don't
understand it. And all the text is on top of each other at 0,0.



On Thu, Apr 28, 2016 at 5:33 PM, Jeremy Heiler <je...@gmail.com>
wrote:

> Sure.
>
> *<?xml version="1.0" encoding="UTF-8"?>
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format <http://www.w3.org/1999/XSL/Format>" xmlns:svg="http://www.w3.org/2000/svg <http://www.w3.org/2000/svg>">
>     <fo:layout-master-set>
>         <fo:simple-page-master margin-right="50pt" margin-left="50pt" margin-bottom="25pt" margin-top="75pt" master-name="page">
>             <fo:region-body margin-bottom="50pt"/>
>             <fo:region-after extent="25pt"/>
>         </fo:simple-page-master>
>         <fo:page-sequence-master master-name="all">
>             <fo:repeatable-page-master-alternatives>
>                 <fo:conditional-page-master-reference page-position="first" master-reference="page"/>
>                 <fo:conditional-page-master-reference page-position="rest" master-reference="page"/>
>             </fo:repeatable-page-master-alternatives>
>         </fo:page-sequence-master>
>     </fo:layout-master-set>
>     <fo:page-sequence master-reference="all">
>         <fo:static-content flow-name="xsl-region-after">
>             <fo:table table-layout="fixed">
>                 <fo:table-column column-width="6.25in"/>
>                 <fo:table-column column-width="0.25in"/>
>                 <fo:table-body font-family="Helvetica" font-size="10pt">
>                     <fo:table-row line-height="12pt">
>                         <fo:table-cell>
>                             <fo:block text-align="start">
>                                 © Foo Ltd
>                             </fo:block>
>                         </fo:table-cell>
>                         <fo:table-cell>
>                             <fo:block text-align="end"/>
>                         </fo:table-cell>
>                     </fo:table-row>
>                 </fo:table-body>
>             </fo:table>
>         </fo:static-content>
>         <fo:flow flow-name="xsl-region-body">
>             <fo:block space-after.optimum="15pt" space-before.optimum="15pt">
>                 <fo:instream-foreign-object display-align="center">
>                     <svg:svg height="152pt" width="600pt">
>                         <svg:defs>
>                             <svg:style type="text/css">
>                                 svg:text { font-size:14; fill:#10559B; stroke:#10559B; stroke-width:0; font-family:Helvetica }
>                             </svg:style>
>                         </svg:defs>
>                         <svg:rect style="fill:none;stroke:#10559B;stroke-width:2" height="150pt" width="150pt" y="1pt" x="155pt"/>
>                         <svg:line style="fill:none;stroke:#10559B;stroke-width:2" y2="75pt" x2="305pt" y1="75pt" x1="155pt"/>
>                         <svg:line style="fill:none;stroke:#10559B;stroke-width:2" y2="150pt" x2="230pt" y1="1pt" x1="230pt"/>
>                         <svg:text style="font-size:14;fill:#10559B;stroke:#10559B;stroke-width:0; font-family:Helvetica" text-anchor="middle" y="41pt" x="192pt">Relater</svg:text>
>                         <svg:text style="font-size:14;fill:#10559B;stroke:#10559B;stroke-width:0; font-family:Helvetica" text-anchor="middle" y="41pt" x="267pt">Expresser</svg:text>
>                         <svg:text style="font-size:14;fill:#10559B;stroke:#10559B;stroke-width:0; font-family:Helvetica" text-anchor="middle" y="116pt" x="192pt">Analyzer</svg:text>
>                         <svg:text style="font-size:14;fill:#10559B;stroke:#10559B;stroke-width:0; font-family:Helvetica" text-anchor="middle" y="116pt" x="267pt">Director</svg:text>
>                     </svg:svg>
>                 </fo:instream-foreign-object>
>             </fo:block>
>         </fo:flow>
>     </fo:page-sequence>
> </fo:root>*
>
>
>
>
> On Thu, Apr 28, 2016 at 5:16 PM, Andreas Delmelle <
> andreas.delmelle@telenet.be> wrote:
>
>> Hi Jeremy
>>
>> > On 28 Apr 2016, at 22:40, Jeremy Heiler <je...@gmail.com> wrote:
>> >
>> > I am in the process of upgrading from FOP 0.92-beta to 2.1, and for the
>> most part I have been able to work out the issues. However, I am stumped
>> with this particular issue of rending text in an SVG. Any SVG text that
>> used to render no longer displays at all.
>> ...
>> > What am I missing?
>>
>> Hmm... difficult to say without seeing the FO source. Is it possible for
>> you to post a reduced sample that demonstrates the issue?
>>
>>
>> TIA
>>
>> Andreas
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>
>>
>

Re: SVG text not displaying in PDF

Posted by Jeremy Heiler <je...@gmail.com>.
Sure.

*<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format
<http://www.w3.org/1999/XSL/Format>"
xmlns:svg="http://www.w3.org/2000/svg <http://www.w3.org/2000/svg>">
    <fo:layout-master-set>
        <fo:simple-page-master margin-right="50pt" margin-left="50pt"
margin-bottom="25pt" margin-top="75pt" master-name="page">
            <fo:region-body margin-bottom="50pt"/>
            <fo:region-after extent="25pt"/>
        </fo:simple-page-master>
        <fo:page-sequence-master master-name="all">
            <fo:repeatable-page-master-alternatives>
                <fo:conditional-page-master-reference
page-position="first" master-reference="page"/>
                <fo:conditional-page-master-reference
page-position="rest" master-reference="page"/>
            </fo:repeatable-page-master-alternatives>
        </fo:page-sequence-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="all">
        <fo:static-content flow-name="xsl-region-after">
            <fo:table table-layout="fixed">
                <fo:table-column column-width="6.25in"/>
                <fo:table-column column-width="0.25in"/>
                <fo:table-body font-family="Helvetica" font-size="10pt">
                    <fo:table-row line-height="12pt">
                        <fo:table-cell>
                            <fo:block text-align="start">
                                © Foo Ltd
                            </fo:block>
                        </fo:table-cell>
                        <fo:table-cell>
                            <fo:block text-align="end"/>
                        </fo:table-cell>
                    </fo:table-row>
                </fo:table-body>
            </fo:table>
        </fo:static-content>
        <fo:flow flow-name="xsl-region-body">
            <fo:block space-after.optimum="15pt" space-before.optimum="15pt">
                <fo:instream-foreign-object display-align="center">
                    <svg:svg height="152pt" width="600pt">
                        <svg:defs>
                            <svg:style type="text/css">
                                svg:text { font-size:14; fill:#10559B;
stroke:#10559B; stroke-width:0; font-family:Helvetica }
                            </svg:style>
                        </svg:defs>
                        <svg:rect
style="fill:none;stroke:#10559B;stroke-width:2" height="150pt"
width="150pt" y="1pt" x="155pt"/>
                        <svg:line
style="fill:none;stroke:#10559B;stroke-width:2" y2="75pt" x2="305pt"
y1="75pt" x1="155pt"/>
                        <svg:line
style="fill:none;stroke:#10559B;stroke-width:2" y2="150pt" x2="230pt"
y1="1pt" x1="230pt"/>
                        <svg:text
style="font-size:14;fill:#10559B;stroke:#10559B;stroke-width:0;
font-family:Helvetica" text-anchor="middle" y="41pt"
x="192pt">Relater</svg:text>
                        <svg:text
style="font-size:14;fill:#10559B;stroke:#10559B;stroke-width:0;
font-family:Helvetica" text-anchor="middle" y="41pt"
x="267pt">Expresser</svg:text>
                        <svg:text
style="font-size:14;fill:#10559B;stroke:#10559B;stroke-width:0;
font-family:Helvetica" text-anchor="middle" y="116pt"
x="192pt">Analyzer</svg:text>
                        <svg:text
style="font-size:14;fill:#10559B;stroke:#10559B;stroke-width:0;
font-family:Helvetica" text-anchor="middle" y="116pt"
x="267pt">Director</svg:text>
                    </svg:svg>
                </fo:instream-foreign-object>
            </fo:block>
        </fo:flow>
    </fo:page-sequence>
</fo:root>*




On Thu, Apr 28, 2016 at 5:16 PM, Andreas Delmelle <
andreas.delmelle@telenet.be> wrote:

> Hi Jeremy
>
> > On 28 Apr 2016, at 22:40, Jeremy Heiler <je...@gmail.com> wrote:
> >
> > I am in the process of upgrading from FOP 0.92-beta to 2.1, and for the
> most part I have been able to work out the issues. However, I am stumped
> with this particular issue of rending text in an SVG. Any SVG text that
> used to render no longer displays at all.
> ...
> > What am I missing?
>
> Hmm... difficult to say without seeing the FO source. Is it possible for
> you to post a reduced sample that demonstrates the issue?
>
>
> TIA
>
> Andreas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>

Re: SVG text not displaying in PDF

Posted by Andreas Delmelle <an...@telenet.be>.
Hi Jeremy

> On 28 Apr 2016, at 22:40, Jeremy Heiler <je...@gmail.com> wrote:
> 
> I am in the process of upgrading from FOP 0.92-beta to 2.1, and for the most part I have been able to work out the issues. However, I am stumped with this particular issue of rending text in an SVG. Any SVG text that used to render no longer displays at all. 
...
> What am I missing?

Hmm... difficult to say without seeing the FO source. Is it possible for you to post a reduced sample that demonstrates the issue?


TIA

Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org