You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Rea, Matthew" <Ma...@auspost.com.au> on 2004/06/16 04:14:25 UTC
SVG image sizing problem
Hi there,
I am seeing an issue with the image sizing of a SVG image in the generated
PDF. I am using FOP 0.20.5 on WinXP with Sun JDK 1.3.1_03. This also
occurs on OpenVMS using the same version JDK.
The SVG image has the width, height and viewport set as follows:
<svg xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;"
xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
width="70.914" height="79.441" viewBox="0 0 70.914 79.441"
overflow="visible" enable-background="new 0 0 70.914 79.441"
xml:space="preserve">
I include the svg using:
<fo:external-graphic src="url({$Image})"/>
The problem is when you look at the PDF result in Macromedia Freehand or
Adobe Illustrator the image size is:
Width = 70pt
Height = 79pt.
I need it to be exact but it seems to be losing the decimal component. Why
is this happening and can I fix it?
Best regards,
Matt
Australia Post is committed to providing our customers with excellent service. If we can assist you in any way please telephone 13 13 18 or visit our website www.auspost.com.au.
CAUTION
This e-mail and any files transmitted with it are privileged and confidential information intended for the use of the addressee. The confidentiality and/or privilege in this e-mail is not waived, lost or destroyed if it has been transmitted to you in error. If you have received this e-mail in error you must (a) not disseminate, copy or take any action in reliance on it; (b) please notify Australia Post immediately by return e-mail to the sender; and (c) please delete the original e-mail.