[BZ#631713] [rsvg-convert] incorrect dimensions for PDF, PS, and SVG output
Submitted by Patrick McCarty
Link to original bug (#631713)
Description
In rsvg-convert.c, dimensions in pixels are passed to the cairo_{pdf,ps,svg}_surface_create_for_stream() functions, but they require dimensions in points, according to the Cairo API.
For example, the attached SVG file, example.svg, has dimensions 210mm x 297mm (approximately 595pt x 842pt). When converted with `rsvg-convert -f svg example.svg > example-rsvg.svg', example-rsvg.svg has dimensions 744pt x 1052pt. It should have dimensions equivalent to 744px x 1052px, but in points.
I will attach the resulting SVG file, example-rsvg.svg, too.