xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keiron Liddle <kei...@aftexsw.com>
Subject Re: confused about SVG size when converted to PDF
Date Mon, 20 Aug 2001 07:49:35 GMT

There seems to be a number of issues here (some which are really fop
If you are embedding an svg image in xsl-fo markup it is using the dpi the
same as for the xsl-fo, which happens to be 72dpi. This value is only
really used for conversion of units (in -> pt, cm -> pt etc.) except for
maybe bitmap images.
So the dpi conversion in fop probably should be customisable.

For the example you gave it only has lines and curves, so apart from the
size specified in cm it has no "resolution". The lines and curves are kept
as lines and curves with the same precision in the pdf and the resolution
will depend on the final output eg. printing. This of course is an
advantage of pdf.

I hope that makes things a bit clearer.


On Fri, 17 Aug 2001 19:39:10 "Maring, Steve" wrote:
> Looking at the following svg with the SVG Browser from Batik 1.1rc1 I get
> the proper 12cm wide display with a circle in the middle that I expect.
> When I try to diplay the svg as a PDF document using the XSL-FO below, I
> get
> what looks like the viewBox dimensions calculated against 72dpi.  (i.e. a
> 1200/72 = 16.67in instead of 12cm wide)  Looking through the code it
> looked
> like FOP was using the Transcoder API to rasterize the image, but the
> quality of the circle edges on the resulting PDF is certainly much better
> than a raster image at 72dpi!
> Can somebody PLEASE explain to me what is going on?  I'd like to diplay
> an
> svg like this at the stated width (12cm) in pdf with a 600dpi resolution
> quality.
> I used FOP-0.20.1 with Batik-1.1rc1.

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

View raw message