\FireGento_Pdf_Model_Engine_Abstract
Abstract pdf model.
- Author: FireGento Team <team@firegento.com>
- Copyright: 2013 FireGento Team (http://www.firegento.com)
- License: http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
Synopsis
class FireGento_Pdf_Model_Engine_Abstract
extends Mage_Sales_Model_Order_Pdf_Abstract
{
- // members
- public array $margin;
- public array $colors;
- public $mode;
- public $encoding;
- public $pagecounter;
- protected $_imprint;
- protected integer $_marginTop;
- // methods
- public void __construct()
- public Zend_Pdf_Page drawLineBlocks()
- public FireGento_Pdf_Model_Engine_Abstract setMode()
- public string getMode()
- protected void Ln()
- protected void _insertSenderAddessBar()
- protected void insertLogo()
- protected bool _isLogoFullWidth()
- protected void _insertLogoPositioned()
- protected void _insertLogoFullWidth()
- protected void insertAddressesAndHeader()
- protected void _insertCustomerAddress()
- protected int getHeaderblockOffset()
- protected void insertHeader()
- protected int|false _putOrderId()
- protected bool _showCustomerNumber()
- public Zend_Pdf_Page newPage()
- protected Zend_Pdf_Page _drawItem()
- protected Zend_Pdf_Page insertTotals()
- protected Zend_Pdf_Page _insertNote()
- protected void _addFooter()
- protected void _insertFooter()
- protected void _insertFooterBlock()
- protected void _insertFooterAddress()
- protected void _insertPageCounter()
- public Zend_Pdf_Resource_Font getFontRegular()
- protected Zend_Pdf_Resource_Font _setFontRegular()
- public Zend_Pdf_Resource_Font getFontBold()
- protected Zend_Pdf_Resource_Font _setFontBold()
- public Zend_Pdf_Resource_Font getFontItalic()
- protected Zend_Pdf_Resource_Font _setFontItalic()
- public array _prepareText()
- private string fixNumberFormat()
- private string getBoldFontFile()
- private string getBoldFont()
- private bool regularFontFileExists()
- private string getItalicFont()
- private bool ItalicFontFileExists()
- private string getItalicFontFile()
- private string getRegularFont()
- private bool regularFontFileExists()
- private string getRegularFontFile()
Hierarchy
Extends
Extended by
Tasks
Line | Task |
---|---|
342+ | merge _insertLogoPositioned and _insertLogoFullWidth |
Members
protected
- $_imprint
- $_marginTop — int
public
- $colors
- $encoding
- $margin
- $mode
- $pagecounter
Methods
private
- ItalicFontFileExists() — check whether italic font file exists
- fixNumberFormat() — Fix the percentage for taxes which come with four decimal places from magento core.
- getBoldFont() — get bold font path
- getBoldFontFile() — get bold font file
- getItalicFont() — get italic font path
- getItalicFontFile() — get italic font file
- getRegularFont() — get the regular font path
- getRegularFontFile() — get the path to the font file for regular font
- regularFontFileExists() — check whether font file exists for bold font
- regularFontFileExists() — check whether font file exists for regular font
protected
- Ln() — Set next line position
- _drawItem() — Draw
- _insertCustomerAddress() — Inserts the customer address. The default address is the billing address.
- _insertLogoFullWidth() — inserts the logo from complete left to right
- _insertLogoPositioned() — Inserts the logo if it is positioned left, center or right.
- _insertNote() — Insert Notes
- _insertPageCounter() — Insert page counter
- _insertSenderAddessBar() — Insert sender address bar
- _isLogoFullWidth() — is the setting to show the logo full width?
- _putOrderId() — Return the order id or false if order id should not be displayed on document.
- _setFontBold() — Set bold font
- _setFontItalic() — Set italic font
- _setFontRegular() — Set default font
- _showCustomerNumber() — do we show the customber number on this document
- getHeaderblockOffset() — get the offset to position the address block left or right
- insertAddressesAndHeader() — insert customer address and all header like customer number, etc.
- insertHeader() — Insert Header
- insertLogo() — Insert logo
- insertTotals() — Insert Totals Block
public
- __construct() — constructor to init settings
- _prepareText() — Prepares the text so that it fits to the given page's width.
- drawLineBlocks() — Draw one line
- getFontBold() — get default bold font
- getFontItalic() — get italic font
- getFontRegular() — get stanard font
- getMode() — Return pdf mode.
- newPage() — Generate new PDF page.
- setMode() — Set pdf mode.