You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by Fernando Miguez Alvarez - Cinntes <fe...@cic.cinntes.es> on 2007/01/12 09:48:56 UTC
Problems converting to PDF
Hello, I would like to know which relative units uses the Rasterizer
package in order to convert svg to pdf.
Converting the svg to pdf I realize that the dimensions are reduced in a
small percentage.
For example, if I have the next code in a SVG file:
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" width="297mm" height="210mm" id="InformeCDA"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<rect width="60mm" height="25mm" x="75mm" y="75mm" stroke="black"
stroke-width="2" id="V1" />
</svg>
When I convert the SVG to PDF and I print the PDF, the rectangle width
is 58 mm and should be 60mm.
I need the measurement to be exact when the page is printed.
Can anybody help me?
Thanks.
Re: Problems converting to PDF
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
(Please ask questions on batik-users next time. Thank you!)
Such small deviations usually indicate that you've ticked the setting in
Acrobat's print dialog that scales the page.
See also: http://xmlgraphics.apache.org/fop/faq.html#pdf-print-contortion
On 12.01.2007 09:48:56 Fernando Miguez Alvarez - Cinntes wrote:
> Hello, I would like to know which relative units uses the Rasterizer
> package in order to convert svg to pdf.
>
> Converting the svg to pdf I realize that the dimensions are reduced in a
> small percentage.
>
>
>
> For example, if I have the next code in a SVG file:
>
> <?xml version="1.0" encoding="utf-8"?>
>
> <svg version="1.1" width="297mm" height="210mm" id="InformeCDA"
> xmlns="http://www.w3.org/2000/svg"
> xmlns:xlink="http://www.w3.org/1999/xlink">
>
> <rect width="60mm" height="25mm" x="75mm" y="75mm" stroke="black"
> stroke-width="2" id="V1" />
>
> </svg>
>
>
>
> When I convert the SVG to PDF and I print the PDF, the rectangle width
> is 58 mm and should be 60mm.
>
> I need the measurement to be exact when the page is printed.
>
>
>
> Can anybody help me?
>
>
>
> Thanks.
>
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org
Re: Problems converting to PDF
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
(Please ask questions on batik-users next time. Thank you!)
Such small deviations usually indicate that you've ticked the setting in
Acrobat's print dialog that scales the page.
See also: http://xmlgraphics.apache.org/fop/faq.html#pdf-print-contortion
On 12.01.2007 09:48:56 Fernando Miguez Alvarez - Cinntes wrote:
> Hello, I would like to know which relative units uses the Rasterizer
> package in order to convert svg to pdf.
>
> Converting the svg to pdf I realize that the dimensions are reduced in a
> small percentage.
>
>
>
> For example, if I have the next code in a SVG file:
>
> <?xml version="1.0" encoding="utf-8"?>
>
> <svg version="1.1" width="297mm" height="210mm" id="InformeCDA"
> xmlns="http://www.w3.org/2000/svg"
> xmlns:xlink="http://www.w3.org/1999/xlink">
>
> <rect width="60mm" height="25mm" x="75mm" y="75mm" stroke="black"
> stroke-width="2" id="V1" />
>
> </svg>
>
>
>
> When I convert the SVG to PDF and I print the PDF, the rectangle width
> is 58 mm and should be 60mm.
>
> I need the measurement to be exact when the page is printed.
>
>
>
> Can anybody help me?
>
>
>
> Thanks.
>
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
RE: Problems converting to PDF
Posted by zxn 6228 <zx...@hotmail.com>.
I use FOP to generate PDF from SVG, and it works fine.
I didn't put any unit, but set the resolution in FOP, like 72dpi.
>From: "Fernando Miguez Alvarez - Cinntes" <fe...@cic.cinntes.es>
>Reply-To: batik-dev@xmlgraphics.apache.org
>To: <ba...@xmlgraphics.apache.org>
>Subject: Problems converting to PDF
>Date: Fri, 12 Jan 2007 09:48:56 +0100
>
>Hello, I would like to know which relative units uses the Rasterizer
>package in order to convert svg to pdf.
>
>Converting the svg to pdf I realize that the dimensions are reduced in a
>small percentage.
>
>
>
>For example, if I have the next code in a SVG file:
>
><?xml version="1.0" encoding="utf-8"?>
>
><svg version="1.1" width="297mm" height="210mm" id="InformeCDA"
>xmlns="http://www.w3.org/2000/svg"
>xmlns:xlink="http://www.w3.org/1999/xlink">
>
> <rect width="60mm" height="25mm" x="75mm" y="75mm" stroke="black"
>stroke-width="2" id="V1" />
>
></svg>
>
>
>
>When I convert the SVG to PDF and I print the PDF, the rectangle width
>is 58 mm and should be 60mm.
>
>I need the measurement to be exact when the page is printed.
>
>
>
>Can anybody help me?
>
>
>
>Thanks.
>
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org