[Qgis-developer] Multilayer PDF ?

Hugo Mercier hugo.mercier at oslandia.com
Thu Feb 6 05:24:38 PST 2014


I am investigating how multilayer PDF export could be handled through QGIS.
This is a feature of the PDF format (called Optional Content Groups)
that would allow to keep "layered" representation of a GIS map when
exported to a PDF.

Something similar has been recently done with the SVG format (

As far as I know :
- QPrinter/QPainter is not able to deal with this concept of layer
- OGR/GDAL has a driver for Geospatial PDF writing that does support
multi layers, but has a very limited support for styling, so it would
require to rasterize each layer and put them into the PDF
- only a few third-party PDF libraries support writing and OCG, probably
poppler is the best option.

Does anyone see other easier options ?
Thanks !
Hugo Mercier

More information about the Qgis-developer mailing list