New answers tagged


I had to take out the figFolder = line from lynryd's code above. I was getting an error telling me the following: Traceback (most recent call last): File "<string>", line 4, in <module> ...***BUNCH OF STUFF I DELETED FROM ERROR MESSAGE***... RuntimeError: Object: Parameter index out of range for GetParameterAsText


Since QGIS 2.16, just export from the print composer. By default, it will be a GeoPDF.


pdfDoc.appendPages doesn't know which folder to look in for the indicated PDF. Try this: import os for f in pdfList: pdfDoc.appendPages(os.path.join (r"C:\Output", f))

Top 50 recent answers are included