Printing the drawing to a PDF file