Generate pdf of page

Permalink
Hi there,

I'm developing a functionality to generate a pdf of some data for a specific page.

I'm using tcpdf as library.

All is working good, but I have a question.

To launch the function which generate the pdf, I use page_type controller.

So, my download link is e.g /en/my-page/download_pdf/

My question is :
Is it better to use pages_type controller or a single page as for download_file ?

Is it faster ? Is page_type render page before launching the "generate" method ?

Thank you :)

moosh
 
moosh replied on at Permalink Reply
moosh
Little up ! :)
adajad replied on at Permalink Reply
adajad
Have you had a look at these for inspiration?

http://www.concrete5.org/marketplace/addons/-/view/?submit_search=1...
mhawke replied on at Permalink Reply
mhawke