<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hey Wouter,</p>
<p>what is the atlas' expression for the filenames? Make sure they
are unique, iterating and/or writing to a unique directory.</p>
<p>Cheers, Hannes</p>
<br>
<div class="moz-cite-prefix">Am 18.12.21 um 18:51 schrieb Wouter
Impens:<br>
</div>
<blockquote type="cite"
cite="mid:CACUU8Uz0_QKb3hcv5SXHGPeAYSpO6sV+a-Fn_poMMcO1qHMEjA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<p class="MsoNormal"><span style="font-size:10pt">Dear list,
<span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt"> </span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US">When using the ‘maps printer’ plugin for a
bunch of atlas layouts, the
atlas pages are constantly overwritten by the next page,
so I end up with only
the last page in the atlas layout. <span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US">I used this before and it was working
perfectly. <span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US">I also tried with the following script: <span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US"> </span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US">import qgis.core<span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US">layouts_list =
QgsProject.instance().layoutManager().printLayouts()<span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US">for layout in layouts_list:<span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US"> QgsLayoutExporter.exportToPdfs(layout.atlas(), <span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US"> 'C:\\Users\\d08909\\Documents\\01_WERKMAP\\03_EXPORT\\', <span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US"> QgsLayoutExporter.PdfExportSettings())<span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US"> </span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US">But it’s giving me the same result. <span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US"> </span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US">Manually exporting the altlas layouts one
by one is no problem. <span></span></span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US"> </span></p>
<p class="MsoNormal"><span style="font-size:10pt"
lang="EN-US">I’m using QGIS 3.16.14 on windows. <span></span></span></p>
<p class="MsoNormal"
style="margin-bottom:8pt;line-height:11.75pt"><span
style="font-size:10pt;color:black" lang="EN-US"> </span></p>
<p class="MsoNormal"
style="margin-bottom:8pt;line-height:11.75pt"><span
style="font-size:10pt;color:black">Any help is
apreciated!<span></span></span></p>
<p class="MsoNormal"
style="margin-bottom:8pt;line-height:11.75pt"><span
style="font-size:10pt;color:black"> </span></p>
<p class="MsoNormal"
style="margin-bottom:8pt;line-height:11.75pt"><span
style="font-size:10pt;color:black">Kind regards, <span></span></span></p>
<p class="MsoNormal"
style="margin-bottom:8pt;line-height:11.75pt"><span
style="font-size:10pt;color:black">Wouter Impens</span></p>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>