PDFDocument.Constructor(value As PDFDocument.PageSizes)

From Xojo Documentation

Constructor

PDFDocument.Constructor(value As PDFDocument.PageSizes)

Creates a PDFDocument where the page size is based on the PageSize passed.