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 :)
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 :)
Little up ! :)
Have you had a look at these for inspiration?
http://www.concrete5.org/marketplace/addons/-/view/?submit_search=1...
http://www.concrete5.org/marketplace/addons/-/view/?submit_search=1...
Or perhaps these two as well to see how they did it.
http://www.concrete5.org/marketplace/addons/save-area-to-pdf/...
http://www.concrete5.org/marketplace/addons/mx2_page_to_pdf/...
http://www.concrete5.org/marketplace/addons/save-area-to-pdf/...
http://www.concrete5.org/marketplace/addons/mx2_page_to_pdf/...