PDF generator: cancel saving

Hi, 


You can add an empty string as filename, and return the PDF file as a memory stream with EndDocument.