Hi all,
I would like to share an issue I am having while trying to simply export a
composition as PDF.
Under QGIS 2.2, I had no problem, but QGIS 2.4 Segfault with the simple
steps :
c = QgsComposition( QgsMapSettings() )
c.setPaperSize( 290, 210 )
c.setPrintResolution( 100 )
I just tested the method shown in the Python Cookbook [1] instead of the
exportAsPDF method, which also segfault my QGIS 2.4 (ubuntu) when the
render method is called :
printer = QPrinter()
printer.setOutputFormat(QPrinter.PdfFormat)
printer.setOutputFileName(/tmp/out.pdf)
Last test : No segfault if I save an image with the method2 method :
https://gist.github.com/mdouchin/6d7408980f737959075b
It seems my segfault is related to the use of the PDF printer in my Ubuntu
box.
Any help appreciated.
Regards,
Michael
2014-07-07 19:38 GMT+02:00 kimaidou
Hi Niklaas,
Hmm. It should be invalidating the related cache entries to the project,
when the project file has changed:
https://github.com/qgis/QGIS/blob/master/src/mapserver/qgsconfigcache.cpp#L36
Seems like just refreshing your browser after each project file save should
do the trick. You may