xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vasu Durgavarjhula" <va...@ingenuity.com>
Subject SVG -> PDF conversion creates offsets
Date Thu, 16 Sep 2004 18:03:22 GMT

I have the following SVG file, which is a simple arc with an arrow. When i view this in a
SVG viewer, the arrow is correctly aligned with the end of the arc. However, when i convert
this into PDF using Batik without any advanced options, the output looks different. The arrow
is slightly offset from the end point of the arc. I am thinking its something to do with scaling.
If i remove the width and height attributes from the SVG element, then the PDF output looks

Any idea how this can be fixed ?



Here's the SVG file

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- 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_svg "http://www.w3.org/2000/svg">
	<!ENTITY ns_xlink "http://www.w3.org/1999/xlink">
<svg  xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
	 width="967.875" height="845.765" viewBox="0 0 967.875 845.765"
	 style="overflow:visible;enable-background:new 0 0 967.875 845.765" xml:space="preserve">
	<style type="text/css">
		.st3{fill:none;stroke:#000000;adobe-knockout:false;enable-background:new    ;}
		.st4{enable-background:new    ;}
		.st19{fill:#FFFFFF;adobe-knockout:false;enable-background:new    ;}
		.st20{adobe-knockout:false;enable-background:new    ;}
	<g id="Layer_1">
		<g class="st4">
			<g class="st2">
				<path class="st19" d="M273.394,177.896c0.499-1.653,0.959-2.728,1.492-4.054h-5.045c0.226,0.475,0.993,2.401,1.491,4.054
			<g class="st2">
				<path class="st3" d="M272.37,175.534c0-37.885,22.513-68.541,50.333-68.541"/>
				<path class="st20" d="M273.394,177.896c0.499-1.653,0.959-2.728,1.492-4.054h-5.045c0.226,0.475,0.993,2.401,1.491,4.054

This email message (and any attached document) contains information from Ingenuity Systems
Inc. which may be considered confidential by Ingenuity, or which may be privileged or otherwise
exempt from disclosure under law, and is for the sole use of the individual or entity to whom
it is addressed.  Any other dissemination, distribution or copying of this message is strictly
prohibited.  If you receive this message in error, please notify me and destroy the attached
message (and all attached documents) immediately. 

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

View raw message