2017 © Pedro Peláez
 

magento-module magento-pdf

Generate pdf file for a provided url

image

canal-web/magento-pdf

Generate pdf file for a provided url

  • Wednesday, June 1, 2016
  • by Canalweb
  • Repository
  • 5 Watchers
  • 0 Stars
  • 92 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Magento PDF

Magento model that generates, saves and deletes PDF files from a provided url., (*1)

Installation

composer require canal-web/magento-pdf, (*2)

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 :, (*3)

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, (*4)

The Versions

01/06 2016

dev-master

9999999-dev

Generate pdf file for a provided url

  Sources   Download

The Requires

 

by Fabio Cerqueira