[cairo] Trying to export an EMF file.

Bryan Montgomery monty at english.net
Tue Jun 8 11:54:00 PDT 2010


Hello,
I've been trying to find a process today to generate an image to EMF
(Windows Enhanced MetaFile). I'm able to use the Java HEP package to create
an EMF - however that seems to just embed the bitmap and you end up with a
2MB file as opposed to the attached SVG file.

Searching google, I came across this thread -
http://old.nabble.com/Fwd:--SVG-to-EMF-quality-p25867395.html.
I've tried compiling the code in the thread to accomplish this, but I am
left with an unsatisifed link error for the draw function. It's been a long
time since I worked with MSVC!

I was wondering if anyone has code that I could compile (or possibly
execute) on Windows - and whether this will produce an EMF file of a similar
size to the SVG file ( HEP also produces similar sized pdf and eps files -
just not emf) - or if it will also balloon to 2MB.

Thanks,
Bryan.

    /* Undo the scale applied to the GDI CTM */
    cairo_scale (cr, 16, 16);
    draw (cr);
    cairo_destroy (cr);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20100608/af460845/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: export.svg
Type: image/svg+xml
Size: 50779 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20100608/af460845/attachment-0001.svg>


More information about the cairo mailing list