IIRC Inkscape has trouble exporting a pattern to PostScript/PDF when the
pattern is defined outside the drawing area. Try setting the pattern 'x'
and 'y' both to zero and get rid of the patternTransform.
Tav
On Mon, 2012-02-13 at 17:28 +0100, Gerben Wierda wrote:
> The following SVG can be correctly exported to a bitmap, but it cannot correctly be printed on Windows and not correctly translated to PDF on either Windows or Mac.
>
> (I did not see it coming through with the attachment, so here is the SVG attachment in plain text)
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <svg
> xmlns:dc="http://purl.org/dc/elements/1.1/"
> xmlns:cc="http://creativecommons.org/ns#"
> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
> xmlns:svg="http://www.w3.org/2000/svg"
> xmlns="http://www.w3.org/2000/svg"
> xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
> xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
> version="1.1"
> width="43.82cm"
> height="51.92cm"
> viewBox="0 0 4382 5192"
> preserveAspectRatio="none"
> id="svg2"
> inkscape:version="0.48.2 r9819"
> sodipodi:docname="Total view for [rs6sv054_k0bbbd01] Oracle RDBMS (Artifact).svg">
> <metadata
> id="metadata1049">
> <rdf:RDF>
> <cc:Work
> rdf:about="">
> <dc:format>image/svg+xml</dc:format>
> <dc:type
> rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
> <dc:title></dc:title>
> </cc:Work>
> </rdf:RDF>
> </metadata>
> <defs
> id="defs1047" />
> <sodipodi:namedview
> pagecolor="#ffffff"
> bordercolor="#666666"
> borderopacity="1"
> objecttolerance="10"
> gridtolerance="10"
> guidetolerance="10"
> inkscape:pageopacity="0"
> inkscape:pageshadow="2"
> inkscape:window-width="1217"
> inkscape:window-height="1292"
> id="namedview1045"
> showgrid="false"
> inkscape:zoom="0.5"
> inkscape:cx="838.10578"
> inkscape:cy="790.69214"
> inkscape:window-x="0"
> inkscape:window-y="0"
> inkscape:window-maximized="0"
> inkscape:current-layer="svg2" />
> <g
> id="g22"
> transform="translate(5.6444446,-705.55559)">
> <defs
> id="defs24">
> <pattern
> id="pattern6"
> patternUnits="userSpaceOnUse"
> x="90.00"
> y="870.00"
> width="540.00"
> height="180.00"
> patternTransform="translate(0.000000,0.000000) scale(1.000000,1.000000) translate(-90.000000,-870.000000)">
> <g
> style="fill-opacity:1.00;stroke:none;"
> id="g27">
> <rect
> style="fill:#b4ff00"
> x="0.00"
> y="0.00"
> width="180.00"
> height="180.00"
> id="rect29" />
> <rect
> style="fill:#b4b400"
> x="180.00"
> y="0.00"
> width="180.00"
> height="180.00"
> id="rect31" />
> <rect
> style="fill:#ffff00"
> x="360.00"
> y="0.00"
> width="180.00"
> height="180.00"
> id="rect33" />
> </g>
> </pattern>
> </defs>
> <g
> style="fill:url(#pattern6);stroke:#000000;stroke-width:2.6500001"
> id="g35">
> <path
> style="fill-rule:nonzero;stroke-linejoin:bevel"
> d="m 630,915 0,135 -540,0 0,-180 495,0 45,45 -45,0 0,-45 z"
> id="path37"
> inkscape:connector-curvature="0" />
> </g>
> </g>
> </svg>
>
>
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> _______________________________________________
> Inkscape-devel mailing list
> Inkscape-devel@...
> https://lists.sourceforge.net/lists/listinfo/inkscape-devel
|