For a scientific project I am trying to create a set of PDFs in QGIS with a fix layout (in the print composer) but per PDF a) different map item attributes (extents) and b) a QR-code to identify this PDF. The QR-Codes are already created with a python module (-> .svg) and the extents of the map items are a simple raster. The map content is a WMS which is embedded in the QGIS project.
My idea is to open a pre-defined print composer, iterate through the raster (has simple coordinates) and generate a PDF per iteration with the actual a) map layout and b) QR-code.
I am working with QGIS 2.12.1 (uses Pyton 2.7.5)