About Add Print in Custom Page

Hi,
How can I print in my custom page with preview and also can download PDF format ?
I used frappe v4.9.3
Thanks

Pages do not have print formats, DocTypes do