canal-web / magento-pdf
There is no license information available for the latest version (dev-master) of this package.
Generate pdf file for a provided url
Package info
github.com/canal-web/Magento_PDF
Type:magento-module
pkg:composer/canal-web/magento-pdf
dev-master
2016-06-01 09:17 UTC
Requires
This package is not auto-updated.
Last update: 2026-03-15 01:22:24 UTC
README
Magento model that generates, saves and deletes PDF files from a provided url.
Installation
composer require canal-web/magento-pdf
Generating a PDF and sending it as a file download
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-');
Generating a PDF and saving it
Mage::getModel('canalweb_pdf/pdf')->savePdf($my_url);
Deleting a PDF
Mage::getModel('canalweb_pdf/pdf')->deletePdf('pdf-name.pdf');
Customize rendered PDF
Add a pdf.css file in the css folder of your magento theme. E.g. skin/frontend/myTheme/default/css/pdf.css