[QGIS-Developer] pdf production

Poltini Roberto Roberto.Poltini at gruppoiren.it
Mon May 31 23:56:15 PDT 2021


Hi all,
   I developed a QGIS (3.10.14-A Coruña) plugin to export hundreds pdfs from QgsReport.
The pdf is composed by maps and the last page contains a table which can be expanded to the next pages.
At the beginnig the pdfs are all right.
The problem occurs after some hundreds pdf when the table is truncated to 1 page and it doesn't expand to the next pages.
It seems something regarding memory...
This is the code used to generate pdf.

if type(layout) == qgis._core.QgsReport:
   pdf_settings = QgsLayoutExporter.PdfExportSettings() # default settings
   result, msg = QgsLayoutExporter.exportToPdf(layout, outputFileName, pdf_settings)

Is there anybody can help me ?
Thank you in advance
Roberto Poltini

________________________________
Per essere informati sulle novità del Gruppo Iren, vi invitiamo a registrarvi alla nostra mailing list, all'indirizzo "http://www.gruppoiren.it/"<http://www.gruppoiren.it/> .

È possibile, inoltre, avanzare nuove idee e progetti per il territorio e seguire quelli già attivi nei Comitati Territoriali del Gruppo Iren, consultando "http://www.Irencollabora.it"<http://www.Irencollabora.it>

You can also suggest new ideas and initiatives for the territory and view those already active in the Iren Group Territorial Committees "http://www.Irencollabora.it"<http://www.Irencollabora.it>

Le informazioni contenute nella presente comunicazione e i relativi allegati possono essere riservate e sono, comunque, destinate esclusivamente alle persone o alla Società sopraindicati. La diffusione, distribuzione e/o copiatura del documento trasmesso da parte di qualsiasi soggetto diverso dal destinatario è proibita, sia ai sensi dell'art. 616 c.p. , che ai sensi del D.Lgs. n. 196/2003. Se avete ricevuto questo messaggio per errore, vi preghiamo di distruggerlo e di informare immediatamente il mittente.


________________________________
Le informazioni contenute nella presente comunicazione e i relativi allegati possono essere riservate e sono, comunque, destinate esclusivamente alle persone o alla Società sopraindicati. La diffusione, distribuzione e/o copiatura del documento trasmesso da parte di qualsiasi soggetto diverso dal destinatario è proibita, sia ai sensi dell'art. 616 c.p. , che ai sensi del D.Lgs. n. 196/2003. Se avete ricevuto questo messaggio per errore, vi preghiamo di distruggerlo e di informare immediatamente il mittente.
________________________________
The information in this e-mail (which includes any files transmitted with it) is confidential and may also be legally privileged. It is intended for the addressee only. Access to this e-mail by anyone else is unauthorised. It is not to be relied upon by any person other than the addressee, except with our prior written approval. If no such approval is given, we will not accept any liability (in negligence or otherwise) arising from any third party acting. Unauthorised recipients are required to maintain confidentiality. If you have received this e-mail in error please notify us immediately, destroy any copies and delete it from your computer system. Any use, dissemination, forwarding, printing or copying of this e-mail is prohibited.
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20210601/13cd7b31/attachment.html>


More information about the QGIS-Developer mailing list