I notice that when I include an svg image that uses opacity, the colors in the entire generated pdf are affected.
For instance in the sample below the same text is displayed in three colors. When the embedded svg uses fill-opacity, the red text changes from
RGB 255,0,0 to RGB 237, 43, 40. RGB 0,0,255 changes to RGB 52,84,165. 0,255,0 changes to 9,128,67
Is there a work-around? I tried XEP version 4.14 and 4.18.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:svg="http://www.w3.org/2000/svg" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rx="http://www.renderx.com/XSL/Extensions">
<xsl:variable name="fo:layout-master-set">
<fo:layout-master-set>
<fo:simple-page-master master-name="default-page" page-height="11in" page-width="8.5in" margin-left="0.5in" margin-right="0.5in">
<fo:region-body margin-top="0.5in" margin-bottom="1.0in" />
<fo:region-after extent="1.0in" />
</fo:simple-page-master>
</fo:layout-master-set>
</xsl:variable>
<xsl:output version="1.0" encoding="utf-8" omit-xml-declaration="no" indent="no" media-type="text/html" />
<xsl:template match="/">
<xsl:processing-instruction name="xep-pdf-initial-zoom">fit-width</xsl:processing-instruction>
<xsl:processing-instruction name="xep-pdf-view-mode">show-none</xsl:processing-instruction>
<xsl:processing-instruction name="xep-pdf-ownerpassword">159265</xsl:processing-instruction>
<xsl:processing-instruction name="xep-pdf-userprivileges">print</xsl:processing-instruction>
<fo:root font-family="Helvetica,Tahoma,Verdana,serif">
<rx:meta-info>
<rx:meta-field name="author" value="MCTMSD Ver. {report/header/system-version}"/>
<rx:meta-field name="title" value="{report/header/title}"/>
<rx:meta-field name="subject" value="{report/header/user}"/>
<rx:meta-field name="keywords" value=""/>
</rx:meta-info>
<xsl:copy-of select="$fo:layout-master-set" />
<fo:page-sequence master-reference="default-page" initial-page-number="1" format="1">
<fo:static-content flow-name="xsl-region-after" display-align="after">
<fo:block>
<fo:inline font-size="8pt">region after</fo:inline>
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:instream-foreign-object space-before.optimum="0pt" space-after.optimum="0pt">
<svg:svg width="300" height="50">
<svg:g>
<svg:rect x="0" y="0" width="300" height="50" stroke="black" fill="red" fill-opacity=".25"/>
</svg:g>
</svg:svg>
</fo:instream-foreign-object>
</fo:block>
<fo:table width="100%" space-before.optimum="0pt" space-after.optimum="0pt">
<fo:table-column column-width="proportional-column-width(33)" />
<fo:table-column column-width="proportional-column-width(33)" />
<fo:table-column column-width="proportional-column-width(33)" />
<fo:table-body>
<fo:table-row>
<fo:table-cell padding-bottom="0pt" padding-left="0pt" padding-right="0pt" padding-top="0pt" border-style="solid" border-width="1pt" border-color="white" number-columns-spanned="3" width="33%" padding-start="3pt" padding-end="3pt" padding-before="3pt" padding-after="3pt" display-align="center" text-align="start">
<fo:block>
<fo:block color="black" space-before.optimum="-8pt">
<fo:leader leader-length="100%" leader-pattern="rule" rule-thickness="1pt" />
</fo:block>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell color="blue" padding="4pt" >
<fo:block>
<fo:inline font-size="8pt">Testing</fo:inline>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell color="red" padding="4pt" >
<fo:block>
<fo:inline font-size="8pt">Testing</fo:inline>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell color="green" padding="4pt" >
<fo:block>
<fo:inline font-size="8pt">Testing</fo:inline>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
</xsl:stylesheet>
[CONFIDENTIALITY AND PRIVACY NOTICE]
Information transmitted by this email is proprietary to Medtronic and is intended for use only by the individual or entity to which it is addressed, and may contain information that is private, privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please delete this mail from your records.
To view this notice in other languages you can either select the following link or manually copy and paste the link into the address bar of a web browser: http://emaildisclaimer.medtronic.com
***SPAM***
!DSPAM:28,4c5c8620409581470620457!
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Fri Aug 6 15:26:53 2010
This archive was generated by hypermail 2.1.8 : Fri Aug 06 2010 - 15:26:55 PDT