Valentina Version: 0.6.1.1
Link to Pattern File:
*Note pattern pieces extend to edges of layout, ignoring the settings.
Save layout settings:
Generated Tiled PDF:
Since the pattern pieces extend all the way to the edges of the layout and ignore set margins, the tile PDF save option splits it into an extra grid column and practically doubles the number of pages in the tiled PDF than are necessary.
I also believe that the settings in your code for the Paper formats are incorrect. For example, A3 is supposed to be 11.7" x 16.5", but in the PDF that is generated, the page sizes are far smaller than that. This might actually be the cause of this issue.