Hi there!
I have an some EMF files with a background thats 200x200 pixel but the content is smaller (depends on the graphic).
I now want to programmatically crop/resize the EMF file so that it fits the content. Using the GUI this is possible following these steps:
1. open source EMF
2. mark all content and open document options (CRTL+SHIFT+D)
3. click "fit page in selection" (don't know if thats the correct translation, in german its called "Seite in Auswahl einpassen")
4. Save as EMF File.
I would like to reproduce this action via commandline but haben't found any command for that.
What I found out is that I can do this resizing/cropping when i export the result as PNG with commandline using this command
inkscape C:\input.emf --export-png=C:\result.png --export-area-drawing
Can somebody please tell me if it's possible to do what I want and when yes how to do this?
Crop EMF File via commandline
Re: Crop EMF File via commandline
michaelkatz wrote:Thanks for this tip.
Just so you know this only works on Windows because only the Windows versions of Inkscape supports EMF.