xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas DeWeese <Thomas.DeWe...@Kodak.com>
Subject Re: SVG -> PDF conversion creates offsets
Date Thu, 16 Sep 2004 20:18:20 GMT
Hi Vasu,

Vasu Durgavarjhula wrote:

> 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 fine.
> 
> Any idea how this can be fixed ?

    Well I can't see the problem with the current version of Batik.
I don't know if this is because it's too subtle or it has already
been fixed.  I would suggest getting a CVS copy of Batik or one of
the nightly builds and testing with that (there have been a few bug
fixes in this general area so it's probably that it's been fixed).

> 
> thanks
> 
> -Vasu
> 
> 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">
> 	<![CDATA[
> 		.st2{adobe-knockout:true;}
> 		.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    ;}
> 	]]>
> 	</style>
> 	<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
> 					c0.535,1.77,0.9,3.374,1.031,4.415C272.495,181.27,272.86,179.665,273.394,177.896z"/>
> 			</g>
> 			<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
> 					c0.535,1.77,0.9,3.374,1.031,4.415C272.495,181.27,272.86,179.665,273.394,177.896z"/>
> 			</g>
> 		</g>
> 	</g>
> 
> 
> 
> ----+----
> 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
> 


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


Mime
View raw message