[general]
name=Export Map to EMF
qgisMinimumVersion=3.16
description=Exports the current map canvas to an Enhanced Metafile (.emf). Adds an entry to File > Import/Export, regardless of the QGIS UI language (including Danish).
version=1.0.4
author=Lars Nielsen, LIFA Digital and Claude AI
email=lars.nielsen@lifadigital.dk

about=Exports the current QGIS map canvas as a vector Enhanced Metafile (.emf), suitable for embedding fully editable, scalable graphics into Microsoft Word or PowerPoint. Internally the plugin renders the map canvas to SVG using QGIS's own map renderer, then converts that SVG to EMF using Inkscape. EMF is a native Windows format, so the conversion step requires QGIS to be running on Windows with Inkscape installed. The menu entry is inserted into File > Import/Export using QGIS's language-independent projectImportExportMenu()/addProjectExportAction() API (QGIS >= 3.30), with a fallback for older versions, so it appears correctly no matter what UI language QGIS is running in (English, Danish, etc.).

tracker=https://github.com/lifalin2016/qgis-emf_export/issues
repository=https://github.com/lifalin2016/qgis-emf_export
homepage=https://www.lifadigital.dk

tags=export,emf,enhanced metafile,vector

changelog=1.0.4: added a bundled .bandit config (per the QGIS Plugins
    repository's documented security-scanning config-file mechanism) to
    suppress B603/B404, the low-severity/informational "review this
    subprocess call" findings on the Inkscape invocation. The call was
    already safe (list-form argv, shell=False, all paths validated or
    internally generated) - this just tells the scanner that was
    reviewed, instead of leaving it flagged for manual re-review on
    every upload.
    1.0.3: fixed rounded/circular symbols exporting as solid black
    squares. The clip added in 1.0.1/1.0.2 was implemented as an SVG
    clip-path for Inkscape to translate; Inkscape's own EMF-writing code
    doesn't reliably translate clip-paths for raster images or composite
    symbol markers. Clipping is now done as a direct, minimal edit to the
    finished EMF file instead (inserting one native EMR_INTERSECTCLIPRECT
    record), bypassing Inkscape's SVG-clip-path handling entirely. Also
    documented: semi-transparent vector fills always render fully opaque
    in the exported EMF - this is a hard limitation of classic EMF/GDI
    (confirmed with Inkscape's own EMF-code maintainer) and isn't
    something this plugin can work around while using Inkscape for the
    conversion.
    1.0.2: fixed raster layers disappearing from the export. This was
    caused by the 1.0.1 fix itself: Qt's QSvgGenerator doesn't actually
    implement painter clip regions (a known, long-standing Qt limitation),
    and relying on it also made embedded raster images vanish. Clipping is
    now done by writing a standard SVG clipPath directly into the rendered
    SVG's XML, which Inkscape (and EMF) both honour correctly.
    1.0.1: fixed vector layers (symbols, halos, labels near the edge) not
    being clipped to the map boundary in the exported file.
    1.0.0: initial release.

icon=icon.svg
category=Plugins
experimental=False
deprecated=False
server=False
hasProcessingProvider=no
