Uhhh… Greg already suggested this…
Here’s the documentation link for it PDFDocument — Xojo documentation