Using native PDF

The dompdf extension outputs native PDF file. If you have enabled export to PDF (and the extension), the dompdf class is available. To create a pdf yourself, read dompdf docs, see Quick Start.Avoid using Custom Files to output PDF, you may use Route_Action or Api_Action server event, read Using Route_Action server event.