Magento model that generates, saves and deletes PDF files from a provided url.
composer require canal-web/magento-pdf
Mage::getModel('canalweb_pdf/pdf')->generatePdf($my_url);
By default, the pdf name is pdf-*timestamp*.pdf
. The prefix may be overridden like this :
Mage::getModel('canalweb_pdf/pdf')->generatePdf($my_url, 'my-prefix-');
Mage::getModel('canalweb_pdf/pdf')->savePdf($my_url);
Mage::getModel('canalweb_pdf/pdf')->deletePdf('pdf-name.pdf');
Add a pdf.css
file in the css folder of your magento theme. E.g. skin/frontend/myTheme/default/css/pdf.css