[cairo] cropping an SVG image
Daniel Amelang
daniel.amelang at gmail.com
Sun May 6 22:22:29 PDT 2007
On 5/2/07, jan aerts (RI) <jan.aerts at bbsrc.ac.uk> wrote:
> All,
>
> Is it in any way possible to crop an SVG surface? I've found code in one
> of Carl's answers to do the very thing for PNGs
> (http://lists.freedesktop.org/archives/cairo/2007-March/009988.html),
> but I just can't get it to work for an SVG or PDF... The trick seemed to
> be to create a smaller surface and copy the wanted part from the big
> surface onto that one.
Hi Jan, yes, that technique should work for SVG and PDF (AFAIK). Can
you share some code with us and explain how your expected results and
observed results differ?
Dan
More information about the cairo
mailing list