PDFCreateDocument

Use this function to create a new PDF document or load an existing document.

It is recommended to lock the user interface during PDF creation.

PDFCreateDocument();

Example:
PAGE('LOCKPAGE');
PDFCreateDocument(); //creates new document
PDFCreateDocument(data); //loads existing document