newDrawing() size?
- 
					
					
					
					
 Dear friends. 
 Im using a loop to create different drawings and save each as a A4 separate PDF. Im using newDrawing() to erase previous drawings. But PDF are 1000 x 1000, so I think newDrawing() is reseting A4 size to 1000x1000.
 I will appreciate any advice.
 Best!
 
- 
					
					
					
					
 You need to specify the size of the new canvas after each newDrawing()for i in range(10): newDrawing() size("A4") fill(random()) rect(0, 0, width(), height()) saveImage(f'~/Desktop/file-{i}.pdf') endDrawing()
 
- 
					
					
					
					
 newDrawing()completely reset the drawing stack, as @imik mentioned.Use newDrawingif you want to generate multiple drawings, or when you are in an environment where the drawing stack is kept in memory and a hard reset of the drawing stack is required.see the docs: https://www.drawbot.com/content/canvas/pages.html#drawBot.newDrawing 
 
- 
					
					
					
					
 Thanks @imik and @frederik tested and it worked! Im creating a set of 300 different covers for different reports based on data, and goes super fine. 
 Best for all!
 R