Feature request #9362
Export PDF layers from QGIS map composers
|Pull Request or Patch supplied:||No||Resolution:|
|Easy fix?:||No||Copied to github as #:||17962|
As in the attached image.
PDF layers are formally known as Optional Content Groups.
"They represent a collection of graphic objects that can be made visible or invisible. Any graphic content of the PDF can be made optional, including page contents, XObjects, and annotations." Reference:
This feature would give the ability to open a PDF (generated from the QGIS composer) in Acrobat and enable/disable the visibility of layers.
#2 Updated by Giovanni Manghi about 7 years ago
- Target version set to Future Release - Nice to have
To note that QGIS "can" already export (from the canvas, not the composer) as geopdf: the format is supported in gdal/ogr used by qgis, so it would be possible to export using the "save as..." vector function or the translate tool in the raster menu. But as far as I can see the "geopdf" format is not listed in the gui comboboxes.
#5 Updated by Asier Sarasua almost 6 years ago
As GDAL 1.10 supports GeoPDF, I successfully exported a PDF with layers (a raster layer and a polyline vector layer) from Processing inserting a OGR_DATASOURCE parameter in the "Additional creation parameters" box to add the vector layer. However, it only exports vectors without style. I have to investigate more into this1.
#6 Updated by Giovanni Manghi almost 6 years ago
Asier Sarasua wrote:
As GDAL 1.10 supports GeoPDF, I successfully exported a PDF with layers (a raster layer and a polyline vector layer) f
yes this is expected beside the lack of options in QGIS gui.
The ticket is more about the possibility to export a map from the QGIS composer as geopdf.
#7 Updated by Luca Delucchi almost 6 years ago
I'm working on a plugin to create GeospatialPDF (not that real GeoPDF because is proprietary format) from raster and vector data loaded into QGIS, but not from QGIS composer.
I tried to investigate a little bit more about this possibility but I didn't find any good solution.
The plugin is close to be released (I hope in two/three weeks) and will have the following capabilities:
- export raster and styled vector (probably all the three QGIS symbol style)
- most of the GeospatialPDF "Creation Options"  are supported
- support for legend/scalebar/images and choose their position in the GeospatialPDF.
#10 Updated by James Wilson over 5 years ago
If you want to make a Georeferenced PDF for Avenza:
Set up your print composer, and export it as a georeferenced image
Bring this back into your project as use Raster > Conversion > Translate
to export it as a georeferenced PDF