PDFCreate()

Use this command to create the PDF document.

string PDFCreate();

Example:
Create PDF document and show in PDF viewer
local PDFData = PDFCreate();
PAGE('UNLOCKPAGE');
PAGE('OPENFILE', PDFData, 'TestPDF.pdf', 'file');