Bug report #9559

Composer guide lines get printed on map

Added by Tim Sutton over 10 years ago. Updated over 10 years ago.

Status:Closed
Priority:Normal
Assignee:Nyall Dawson
Category:Map Composer/Printing
Affected QGIS version:2.0.1 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:18145

Description

Using master with a composer template which is loaded in python, the generated pdf includes the composer guides. Can we ensure that they are always hidden before rendering the pdf?

An example is attached.

Untitled.pdf (3.29 MB) Tim Sutton, 2014-02-13 05:39 PM

History

#1 Updated by Nyall Dawson over 10 years ago

  • Status changed from Open to Feedback

Can you test using QgsComposition::renderPage() to export the pdf and confirm if this works correctly? renderPage sets a bunch of important things before rendering the page, so skipping it and using render() directly on a painter will result in gui elements like the guides showing up in the output.

#2 Updated by Tim Sutton over 10 years ago

  • Status changed from Feedback to Closed

Closing this out - resolved using advice given above. Thanks!

Also available in: Atom PDF