Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export PDF layers from QGIS map composers #17962

Closed
qgib opened this issue Jan 16, 2014 · 13 comments
Closed

Export PDF layers from QGIS map composers #17962

qgib opened this issue Jan 16, 2014 · 13 comments
Labels
Feature Request Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks

Comments

@qgib
Copy link
Contributor

qgib commented Jan 16, 2014

Author Name: Asier Sarasua (@asiersarasua)
Original Redmine Issue: 9362

Redmine category:map_composer/printing


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:
http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/API_References/Acrobat_API_Reference/PD_Layer/PDOCG.html

This feature would give the ability to open a PDF (generated from the QGIS composer) in Acrobat and enable/disable the visibility of layers.



Related issue(s): #17477 (duplicates)
Redmine related issue(s): 8771


@qgib
Copy link
Contributor Author

qgib commented Jan 16, 2014

Author Name: Jukka Rahkonen (Jukka Rahkonen)


Feels the same as #17477 speaks about geopdf but it would be more safe to call it as geospatial pdf because GeoPDF is a trade mark.

@qgib
Copy link
Contributor Author

qgib commented Jan 17, 2014

Author Name: Giovanni Manghi (@gioman)


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.


  • fixed_version_id was configured as Future Release - Nice to have

@qgib
Copy link
Contributor Author

qgib commented Jan 30, 2015

Author Name: Simon W (Simon W)


Can we get a status on this or 8771?

@qgib
Copy link
Contributor Author

qgib commented Feb 1, 2015

Author Name: Nyall Dawson (@nyalldawson)


Simon - nothing to report, as far as I'm aware no one is currently tackling this issue.

@qgib
Copy link
Contributor Author

qgib commented Mar 15, 2015

Author Name: Asier Sarasua (@asiersarasua)


@giovanni

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 this[1][2].

[1]http://www.gdal.org/frmt_pdf.html
[2]http://www.gdal.org/ogr_feature_style.html


  • 8505 was configured as qgis_geopdf_2.png
  • 8504 was configured as qgis_geopdf.png

@qgib
Copy link
Contributor Author

qgib commented Mar 15, 2015

Author Name: Giovanni Manghi (@gioman)


Asier Sarasua wrote:

@giovanni

As GDAL 1.10 supports GeoPDF, I successfully exported a PDF with layers (a raster layer and a polyline vector layer) f

Hi,

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.

@qgib
Copy link
Contributor Author

qgib commented Apr 22, 2015

Author Name: Luca Delucchi (Luca Delucchi)


Hi,

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" [0] are supported
  • support for legend/scalebar/images and choose their position in the GeospatialPDF.

[0] http://www.gdal.org/frmt_pdf.html

@qgib
Copy link
Contributor Author

qgib commented Apr 24, 2015

Author Name: Giovanni Manghi (@gioman)


see also #17477


  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Apr 24, 2015

Author Name: Giovanni Manghi (@gioman)


see also #17477


  • status_id was changed from Closed to Open

@qgib
Copy link
Contributor Author

qgib commented Jun 19, 2015

Author Name: James Wilson (James Wilson)


If you want to make a Georeferenced PDF for Avenza:

Set up your print composer, and export it as a georeferenced image
(https://docs.qgis.org/2.6/en/docs/user_manual/print_composer/print_composer.html#creating-output)
Bring this back into your project as use Raster > Conversion > Translate
to export it as a georeferenced PDF

@qgib
Copy link
Contributor Author

qgib commented Jul 15, 2016

Author Name: amedeo fadini (amedeo fadini)


I'm also interested in this feature: the planned use case is to distribute a PDF map or atlas in PDF format and give to the final user the chance to print the whole map or only the layers of interest.

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • easy_fix was configured as 0

@qgib qgib added Feature Request Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks labels May 24, 2019
@qgib qgib added this to the Future Release - Nice to have milestone May 24, 2019
@nyalldawson
Copy link
Collaborator

Implemented in 3.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks
Projects
None yet
Development

No branches or pull requests

2 participants