<div dir="ltr">Hi Dieter, <div><br></div><div>You can export an atlas to a single pdf, with multiple pages. The QGIS function in the layout is working fine but when I try to automate the process, There's only a pdf with the last page. By watching the process, I can see that all the pages are made but they overwrite themselves. </div><div>The output is configured like this:</div><div><img src="cid:ii_kxegh2w80" alt="image.png" width="495" height="135"><br></div><div>The automatisation with the 'maps printer plugin' used to work fine, It's not clear to me why it is not working now.</div><div><br></div><div><br></div><div>Cheers</div><div>Wouter</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Op ma 20 dec. 2021 om 10:00 schreef Dietrich Heintz <<a href="mailto:dheintz@gmx.net">dheintz@gmx.net</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    Hello Wouter,<br>
    what do you mean with overwriting themselves. The Atlas needs a
    value for the filename, which is derived from an entry of the
    reference geometry?<br>
    ciao Dieter<br>
    <br>
    <div>On 20.12.2021 09:36, Wouter Impens
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">Hi Hannes, 
        <div><br>
        </div>
        <div>Thanks for your answer.</div>
        <div>The names are unique. But the problem is not that one
          atlas layout is overwriting another, they're overwriting
          themselves. Ik only get the last page of each atlas. </div>
        <div>While the atlas is exporting, I can see in the windows
          explorer that a file is made and then reset to 0, only the
          last atlas page is kept. </div>
        <div><br>
        </div>
        <div>Greetings </div>
        <div>Wouter</div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">Op ma 20 dec. 2021 om 09:28
          schreef Johannes Kröger (WhereGroup) <<a href="mailto:johannes.kroeger@wheregroup.com" target="_blank">johannes.kroeger@wheregroup.com</a>>:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div>
            <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>Am 18.12.21 um 18:51 schrieb Wouter Impens:<br>
            </div>
            <blockquote type="cite">
              <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>
          </div>
        </blockquote>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
Qgis-user mailing list
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
</pre>
    </blockquote>
    <br>
    <div>-- <br>
      <font size="-2">
        <font color="#000000">_________________</font>
        <br>
        <font color="#000000">Kronenbergstr. 7</font><br>
        <font color="#000000">CH-8800 Thalwil </font>
        <br>
        <br>
        <font color="#000000">+41 76 749 22 77</font>
        <br>
        <font color="#000000">+41 43 540 90 71</font><br>
      </font>
      <br>
      <a href="https://helgawittstock.wixsite.com/privat" target="_blank"><font color="#000000">my web-site</font></a><br>
    </div>
  </div>

_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div>