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 to standard pdf always rasterize vectors elements #37563

Closed
domlysz opened this issue Jul 3, 2020 · 4 comments
Closed

Export to standard pdf always rasterize vectors elements #37563

domlysz opened this issue Jul 3, 2020 · 4 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks

Comments

@domlysz
Copy link

domlysz commented Jul 3, 2020

Describe the bug

When exporting to a standard PDF (no geopdf) with the option Always export as vectors checked and the option Print as raster unchecked then the resulting pdf is completly rasterized, even vectors or text elements.

How to Reproduce

  1. load a vector layer
  2. create a new layout, add a map and check the option Always export as vectors
  3. export to pdf (keep geopdf option unchecked)

QGIS and OS versions

QGIS 3.14 Windows

Additional context

Note that because of this issue with geopdf export, there is actually no way to produce an high quality pdf for a professional printing, which IMO is critical.

@domlysz domlysz added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Jul 3, 2020
@bkepl
Copy link

bkepl commented Jul 3, 2020

Domlysz,

I am able to correctly export PDFs as vectors even if the map includes rasters, even if I have given the raster transparency and I have vectors layered beneath that raster. Have you set any vector layer to have transparency? I noted a while back that if I set any layer to have a transparency via the Layer rendering section of the Layer styling panel, the map will rasterize. If, on the other hand, I set the symbology to have transparency (the symbology as a whole or the fill/outline separately), vector layers will render properly, as vectors.

@domlysz
Copy link
Author

domlysz commented Jul 3, 2020

Hi bkelp,

Thanks for the answer, after some investigation the issue come from effects on some symbols. Disabling the effects allows vector export but layer opacity are not taken into account (fully opaque). On another side geopdf export works correctly with effects and opacity.

@bkepl
Copy link

bkepl commented Jul 3, 2020 via email

@gioman gioman added the Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks label Jul 3, 2020
@nyalldawson
Copy link
Collaborator

I don't think there's any bug here -- some symbol/rendering settings require the whole map to be rasterized and flattened in order to export correctly. Geopdf gives us a bit more flexibility with this, when it's available for export.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks
Projects
None yet
Development

No branches or pull requests

4 participants