Generate pdf of page
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 :)