On Sun, 14 Jan 2024, 6:35 pm Robert via QGIS-Developer, <
[email protected]> wrote:

> # Generate atlas
>
> # Es una QgsLayoutAtlas
>
> myAtlas.beginRender()
>
> myAtlas.next()
>
> for i in range(0, myAtlas.count()):
>
>
>
>     exporter = QgsLayoutExporter(myAtlas.layout())
>
> file_name=os.path.join(dir_destiny,'Individuals')+'/'+myAtlas.currentFilename()+".pdf"
>
>
>
>     pdf_settings=QgsLayoutExporter.PdfExportSettings()
>
>     pdf_settings.forceVectorOutput=False
>
>     pdf_settings.exportMetadata = False
>
>     pdf_settings.appendGeoreference = False
>
>
>
>     #pdf_settings.textRenderFormat = 
> QgsRenderContext.TextFormatAlwaysOutlines  # For "Always Export Text as Paths"
>
>     pdf_settings.textRenderFormat = QgsRenderContext.TextFormatAlwaysText # 
> For "Always Export Text as Text Objects"
>
>
>
>     pdf_settings.rasterizeWholeImage = True # For "Disable tiled raster layer 
> exports" Hace que ocupe menos si es TRUE
>
>     pdf_settings.simplifyGeometries = False
>
>
>
>     exporter.exportToPdf(file_name,pdf_settings)
>
>
>
> Thank you In advance for your attention and help.
>

Have you stripped code out of this loop? Eg I can't see any call to
atlas.next() within the loop.

In any case what you have looks generally ok. You'd need to share more of
your code or project to diagnose further.

Nyall

>
>
> Kind regards,
>
>
>
> Robert Benet
>
>
> _______________________________________________
> QGIS-Developer mailing list
> [email protected]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to