Hi, we are currently using Batik to render SVGs that have been exported from Adobe Illustrator 10. We render them to Java2d objects and print the result via java.awt. printing means to a laser printer. However, the results rendered by Batik look different in some cases from what the Adobe plugin renders.
I attached an example of a file that renders differently. I can also provide screenshots of either version. Does someone have an idea what is either wrong with the SVG or with Batik and how to fix it? TIA, -Maik
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 10.0, SVG Export Plug-In . SVG Version: 3.0.0 Build 77) --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" [ <!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/"> <!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/"> <!ENTITY ns_ai "http://ns.adobe.com/AdobeIllustrator/10.0/"> <!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/"> <!ENTITY ns_vars "http://ns.adobe.com/Variables/1.0/"> <!ENTITY ns_imrep "http://ns.adobe.com/ImageReplacement/1.0/"> <!ENTITY ns_sfw "http://ns.adobe.com/SaveForWeb/1.0/"> <!ENTITY ns_custom "http://ns.adobe.com/GenericCustomNamespace/1.0/"> <!ENTITY ns_adobe_xpath "http://ns.adobe.com/XPath/1.0/"> <!ENTITY ns_svg "http://www.w3.org/2000/svg"> <!ENTITY ns_xlink "http://www.w3.org/1999/xlink"> ]> <svg xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;" i:viewOrigin="-7.9175 584.6362" i:rulerOrigin="16.1108 0" i:pageBounds="-16.1108 595.2754 825.7788 0" xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/" width="825.284" height="577.076" viewBox="0 0 825.284 577.076" overflow="visible" enable-background="new 0 0 825.284 577.076" xml:space="preserve"> <metadata> <variableSets xmlns="&ns_vars;"> <variableSet varSetName="binding1" locked="none"> <variables> <variable varName="barBarcode" trait="visibility" category="http://ns.adobe.com/Variables/1.0/"></variable> <variable varName="txtDatumLetztePreisaenderung" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/"></variable> <variable varName="txtDruckkennzeichen" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/"></variable> <variable varName="txtBezugspreis" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/" docRef="id('XMLID_4_')"> </variable> <variable varName="txtEANNummer" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/"></variable> <variable varName="txtGrundpreisGesamt" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/" docRef="id('XMLID_9_')"> </variable> <variable varName="txtGrundpreisZeile1" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/"></variable> <variable varName="txtGrundpreisZeile2" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/"></variable> <variable varName="txtKLArtikelnummer" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/"></variable> <variable varName="txtKlapphaken1" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/"></variable> <variable varName="txtKlapphaken2" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/"></variable> <variable varName="txtKlapphaken3" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/"></variable> <variable varName="txtKlapphaken4" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/"></variable> <variable varName="txtInhalt" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/" docRef="id('XMLID_5_')"> </variable> <variable varName="txtKlapphaken5" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/"></variable> <variable varName="txtLKennzeichen" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/"></variable> <variable varName="txtMwStKennzeichen" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/"></variable> <variable varName="txtLieferant" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/" docRef="id('XMLID_1_')"> </variable> <variable varName="txtPEKennzeichen" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/"></variable> <variable varName="txtPfand" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/"></variable> <variable varName="txtProduktbezeichnungEtikett1" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/"> </variable> <variable varName="txtProduktbezeichnungEtikett2" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/"> </variable> <variable varName="txtRLZ" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/"></variable> <variable varName="txtThekenzusatztext1" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/"></variable> <variable varName="txtThekenzusatztext2" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/"></variable> <variable varName="txtThekenzusatztext3" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/"></variable> <variable varName="txtVerkaufspreis" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/"></variable> <variable varName="txtWarengruppe" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/"></variable> <variable varName="txtWarenwert" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/"></variable> <variable varName="txtWerbezeitraum" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/"></variable> <variable varName="txtZusatzinfoEtikett" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/"></variable> <variable varName="txtZusatzinfoPlakat1" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/"></variable> <variable varName="txtZusatzinfoPlakat2" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/"></variable> <variable varName="txtPreisvorteil" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/" docRef="id('XMLID_6_')"> </variable> <variable varName="txtProduktbezeichnungPlakat1" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/" docRef="id('XMLID_2_')"> </variable> <variable varName="txtProduktbezeichnungPlakat2" trait="textcontent" category="http://ns.adobe.com/Flows/1.0/" docRef="id('XMLID_3_')"> </variable> </variables> <v:sampleDataSets xmlns="http://ns.adobe.com/GenericCustomNamespace/1.0/" xmlns:v="http://ns.adobe.com/Variables/1.0/"> </v:sampleDataSets> </variableSet> </variableSets> </metadata> <g id="Satz" i:layer="yes" i:dimmedPercent="3" i:rgbTrio="#FFFF4F004F00"> <g> <defs> <switch id="XMLID_4_" i:objectNS="&ns_flows;" i:objectType="areaText"> <foreignObject requiredExtensions="&ns_flows;" x="0" y="0" width="1" height="1" overflow="visible"> <flowDef xmlns="&ns_flows;"> <region textMatrix="1 0 0 1 433.1533 415.0493"> <path d="M705.072,515.047v-99.998H433.153v99.998H705.072z"/> </region> <flow xmlns="&ns_flows;" font-family="'DomBoldBT-Regular'" font-size="105" a:adobe-justification-word-spacing-max="1" a:adobe-justification-letter-spacing-max="1" letter-spacing="-0.04em" line-height="117" text-align="center" text-align-last="center" kerning="0em"> <p><span>139.99</span></p> </flow> </flowDef> <x:targetRef xlink:href="#XMLID_10_" /> </foreignObject> <g> <path d="M705.072,515.047v-99.998H433.153v99.998H705.072z"/> <text id="XMLID_10_" transform="matrix(1 0 0 1 438.9551 502.7993)"><tspan x="0" y="0" font-family="'DomBoldBT-Regular'" font-size="105" letter-spacing="-4.2">139.99</tspan></text> </g> </switch> </defs> <clipPath id="XMLID_12_"> <use xlink:href="#XMLID_4_" /> </clipPath> <path i:knockout="Off" clip-path="url(#XMLID_12_)" fill="#242826" d="M707.265,520.735h-266.1V415.954h266.1V520.735z"/> </g> <switch id="XMLID_7_" i:knockout="Off" i:objectNS="&ns_flows;" i:objectType="areaText"> <foreignObject requiredExtensions="&ns_flows;" x="0" y="0" width="1" height="1" overflow="visible"> <flowDef xmlns="&ns_flows;"> <region textMatrix="1 0 0 1 72.1484 325.0454"> <path fill="none" d="M391.44,395.566v-70.521H72.148v70.521H391.44z"/> </region> <flow xmlns="&ns_flows;" fill="#242826" font-family="'DomBoldBT-Regular'" font-size="82" a:adobe-justification-word-spacing-max="1" a:adobe-justification-letter-spacing-max="1" letter-spacing="-0.02em" line-height="117" text-align="center" text-align-last="center" kerning="0em"> <p><span>Sie sparen</span></p> </flow> </flowDef> <x:targetRef xlink:href="#XMLID_14_" /> </foreignObject> <g> <path i:knockout="Off" fill="none" d="M391.44,395.566v-70.521H72.148v70.521H391.44z"/> <text id="XMLID_14_" transform="matrix(1 0 0 1 94.5132 395.5659)"><tspan x="0" y="0" fill="#242826" font-family="'DomBoldBT-Regular'" font-size="82" letter-spacing="-1.64">Sie sparen</tspan></text> </g> </switch> <switch id="XMLID_8_" i:knockout="Off" i:objectNS="&ns_flows;" i:objectType="areaText"> <foreignObject requiredExtensions="&ns_flows;" x="0" y="0" width="1" height="1" overflow="visible"> <flowDef xmlns="&ns_flows;"> <region textMatrix="1 0 0 1 502.3281 367.2222"> <path fill="none" d="M632.723,409.053v-41.831H502.328v41.831H632.723z"/> </region> <flow xmlns="&ns_flows;" fill="#242826" font-family="'DomBoldBT-Regular'" font-size="58" a:adobe-justification-word-spacing-max="1" a:adobe-justification-letter-spacing-max="1" line-height="117.912" text-align="center" text-align-last="center" kerning="0em"> <p><span>Statt</span></p> </flow> </flowDef> <x:targetRef xlink:href="#XMLID_15_" /> </foreignObject> <g> <path i:knockout="Off" fill="none" d="M632.723,409.053v-41.831H502.328v41.831H632.723z"/> <text id="XMLID_15_" transform="matrix(1 0 0 1 518.3613 409.0532)"><tspan x="0" y="0" fill="#242826" font-family="'DomBoldBT-Regular'" font-size="58">Statt</tspan></text> </g> </switch> <g> <defs> <path id="XMLID_11_" d="M825.284,92.339H0.09V6.222h825.194V92.339z"/> </defs> <clipPath id="XMLID_17_"> <use xlink:href="#XMLID_11_" /> </clipPath> <switch id="XMLID_1_" i:knockout="Off" i:objectNS="&ns_flows;" i:objectType="areaText"> <foreignObject requiredExtensions="&ns_flows;" x="0" y="0" width="1" height="1" overflow="visible"> <flowDef xmlns="&ns_flows;"> <region textMatrix="1 0 0 1 0.3242 6.9019"> <path clip-path="url(#XMLID_17_)" fill="none" d="M825.152,95.963V6.902H0.324v89.061H825.152z"/> </region> <flow xmlns="&ns_flows;" clip-path="url(#XMLID_17_)" fill="#242826" font-family="'DomBoldBT-Regular'" font-size="77" a:adobe-justification-word-spacing-max="1" a:adobe-justification-letter-spacing-max="1" line-height="88" text-align="center" text-align-last="center" kerning="0em"> <p><span>Firma</span></p> </flow> </flowDef> <x:targetRef xlink:href="#XMLID_19_" /> </foreignObject> <g clip-path="url(#XMLID_17_)"> <path i:knockout="Off" fill="none" d="M825.152,95.963V6.902H0.324v89.061H825.152z"/> <text id="XMLID_19_" transform="matrix(1 0 0 1 335.9072 72.9019)"><tspan x="0" y="0" fill="#242826" font-family="'DomBoldBT-Regular'" font-size="77">Firma</tspan></text> </g> </switch> </g> <g> <defs> <path id="XMLID_13_" d="M824.638,181.394H0.227V84.047h824.411V181.394z"/> </defs> <clipPath id="XMLID_21_"> <use xlink:href="#XMLID_13_" /> </clipPath> <switch id="XMLID_2_" i:knockout="Off" i:objectNS="&ns_flows;" i:objectType="areaText"> <foreignObject requiredExtensions="&ns_flows;" x="0" y="0" width="1" height="1" overflow="visible"> <flowDef xmlns="&ns_flows;"> <region textMatrix="1 0 0 1 0 87.2378"> <path clip-path="url(#XMLID_21_)" fill="none" d="M824.638,180.365V87.238H0v93.127H824.638z"/> </region> <flow xmlns="&ns_flows;" clip-path="url(#XMLID_21_)" fill="#242826" font-family="'DomBoldBT-Regular'" font-size="91" a:adobe-justification-word-spacing-max="1" a:adobe-justification-letter-spacing-max="1" line-height="91" text-align="center" text-align-last="center" a:adobe-horizontal-scale="1.0001" kerning="0em"> <p><span>Produktbezeichnung</span></p> </flow> </flowDef> <x:targetRef xlink:href="#XMLID_22_" /> </foreignObject> <g clip-path="url(#XMLID_21_)"> <path i:knockout="Off" fill="none" d="M824.638,180.365V87.238H0v93.127H824.638z"/> <text id="XMLID_22_" transform="matrix(1.0001 0 0 1 100.2861 155.4878)"><tspan x="0" y="0" fill="#242826" font-family="'DomBoldBT-Regular'" font-size="91">Produktbezeichnung</tspan></text> </g> </switch> </g> <g> <defs> <switch id="XMLID_3_" i:objectNS="&ns_flows;" i:objectType="areaText"> <foreignObject requiredExtensions="&ns_flows;" x="0" y="0" width="1" height="1" overflow="visible"> <flowDef xmlns="&ns_flows;"> <region textMatrix="1 0 0 1 0.3105 181.4663"> <path d="M825.198,274.078v-92.611H0.311v92.611H825.198z"/> </region> <flow xmlns="&ns_flows;" font-family="'DomBoldBT-Regular'" font-size="91" a:adobe-justification-word-spacing-max="1" a:adobe-justification-letter-spacing-max="1" line-height="91" text-align="center" text-align-last="center" a:adobe-horizontal-scale="1.0001" kerning="0em"> <p><span>Produktbezeichnung</span></p> </flow> </flowDef> <x:targetRef xlink:href="#XMLID_23_" /> </foreignObject> <g> <path d="M825.198,274.078v-92.611H0.311v92.611H825.198z"/> <text id="XMLID_23_" transform="matrix(1.0001 0 0 1 100.7217 249.7163)"><tspan x="0" y="0" font-family="'DomBoldBT-Regular'" font-size="91">Produktbezeichnung</tspan></text> </g> </switch> </defs> <clipPath id="XMLID_24_"> <use xlink:href="#XMLID_3_" /> </clipPath> <path i:knockout="Off" clip-path="url(#XMLID_24_)" fill="#242826" d="M825.109,278.308H0.392v-97.349h824.718V278.308z"/> </g> <path i:knockout="Off" fill="none" stroke="#242826" stroke-width="3.831" d="M740.693,520.774H84.991V332.64h655.702V520.774z"/> <g> <path i:knockout="Off" fill="none" stroke="#242826" stroke-width="6.6323" d="M432.406,437.606l277.744,75.455"/> <path i:knockout="Off" fill="none" stroke="#242826" stroke-width="6.5993" d="M431.92,514.038l277.835-75.105"/> </g> <g> <defs> <path id="XMLID_16_" d="M825.042,566.716H0.28v-57.102h824.762V566.716z"/> </defs> <clipPath id="XMLID_25_"> <use xlink:href="#XMLID_16_" /> </clipPath> <switch id="XMLID_9_" i:knockout="Off" i:objectNS="&ns_flows;" i:objectType="areaText"> <foreignObject requiredExtensions="&ns_flows;" x="0" y="0" width="1" height="1" overflow="visible"> <flowDef xmlns="&ns_flows;"> <region textMatrix="1 0 0 1 0.2007 515.9712"> <path clip-path="url(#XMLID_25_)" fill="none" d="M825.203,577.076v-61.104H0.201v61.104H825.203z"/> </region> <flow xmlns="&ns_flows;" clip-path="url(#XMLID_25_)" fill="#242826" font-family="'DomBoldBT-Regular'" font-size="32" a:adobe-justification-word-spacing-max="1" a:adobe-justification-letter-spacing-max="1" line-height="47" text-align="center" text-align-last="center" kerning="0em"> <p><span>Grundpreisgesamt</span></p> </flow> </flowDef> <x:targetRef xlink:href="#XMLID_26_" /> </foreignObject> <g clip-path="url(#XMLID_25_)"> <path i:knockout="Off" fill="none" d="M825.203,577.076v-61.104H0.201v61.104H825.203z"/> <text id="XMLID_26_" transform="matrix(1 0 0 1 314.2021 551.2212)"><tspan x="0" y="0" fill="#242826" font-family="'DomBoldBT-Regular'" font-size="32">Grundpreisgesamt</tspan></text> </g> </switch> </g> <g> <defs> <path id="XMLID_18_" d="M357.406,516.434h-266.1V411.652h266.1V516.434z"/> </defs> <clipPath id="XMLID_27_"> <use xlink:href="#XMLID_18_" /> </clipPath> <switch id="XMLID_6_" i:knockout="Off" i:objectNS="&ns_flows;" i:objectType="areaText"> <foreignObject requiredExtensions="&ns_flows;" x="0" y="0" width="1" height="1" overflow="visible"> <flowDef xmlns="&ns_flows;"> <region textMatrix="1 0 0 1 91.3062 411.6519"> <path clip-path="url(#XMLID_27_)" fill="none" d="M357.961,503.226v-91.574H91.306v91.574H357.961z"/> </region> <flow xmlns="&ns_flows;" clip-path="url(#XMLID_27_)" fill="#242826" font-family="'DomBoldBT-Regular'" font-size="120" a:adobe-justification-word-spacing-max="1" a:adobe-justification-letter-spacing-max="1" text-align="center" text-align-last="center" kerning="0em"> <p><span>99 %.</span></p> </flow> </flowDef> <x:targetRef xlink:href="#XMLID_28_" /> </foreignObject> <g clip-path="url(#XMLID_27_)"> <path i:knockout="Off" fill="none" d="M357.961,503.226v-91.574H91.306v91.574H357.961z"/> <text id="XMLID_28_" transform="matrix(1 0 0 1 95.9033 503.2261)"><tspan x="0" y="0" fill="#242826" font-family="'DomBoldBT-Regular'" font-size="120">99 %.</tspan></text> </g> </switch> </g> <g> <defs> <path id="XMLID_20_" d="M825.171,332.357H1.01v-59.216h824.161V332.357z"/> </defs> <clipPath id="XMLID_29_"> <use xlink:href="#XMLID_20_" /> </clipPath> <switch id="XMLID_5_" i:knockout="Off" i:objectNS="&ns_flows;" i:objectType="areaText"> <foreignObject requiredExtensions="&ns_flows;" x="0" y="0" width="1" height="1" overflow="visible"> <flowDef xmlns="&ns_flows;"> <region textMatrix="1 0 0 1 1.0103 274.1069"> <path clip-path="url(#XMLID_29_)" fill="none" d="M824.731,337.794v-63.688H1.01v63.688H824.731z"/> </region> <flow xmlns="&ns_flows;" clip-path="url(#XMLID_29_)" fill="#242826" font-family="'DomBoldBT-Regular'" font-size="49" a:adobe-justification-word-spacing-max="1" a:adobe-justification-letter-spacing-max="1" line-height="56" text-align="center" text-align-last="center" kerning="0em"> <p><span>Inhalt</span></p> </flow> </flowDef> <x:targetRef xlink:href="#XMLID_30_" /> </foreignObject> <g clip-path="url(#XMLID_29_)"> <path i:knockout="Off" fill="none" d="M824.731,337.794v-63.688H1.01v63.688H824.731z"/> <text id="XMLID_30_" transform="matrix(1 0 0 1 362.627 316.1069)"><tspan x="0" y="0" fill="#242826" font-family="'DomBoldBT-Regular'" font-size="49">Inhalt</tspan></text> </g> </switch> </g> </g> </svg>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]