How to export a PDF file

Command: exportPDF

Description: Exports a rectangular area of the current drawing to a PDF file. The advantage over using the print method is the generation of vector graphics.