Sales Order PDF abstract model
Located in /Sales/Model/Order/Pdf/Abstract.php (line 35)
Varien_Object | --Mage_Sales_Model_Order_Pdf_Abstract
Class | Description |
---|---|
Mage_Sales_Model_Order_Pdf_Creditmemo | Sales Order Creditmemo PDF model |
Mage_Sales_Model_Order_Pdf_Invoice | Sales Order Invoice PDF model |
Mage_Sales_Model_Order_Pdf_Shipment | Sales Order Shipment PDF model |
Draw lines
draw items array format: lines array;array of line blocks (required) shift int; full line height (optional) height int;line spacing (default 10)
line block has line columns array
column array format text string|array; draw text (required) feed int; x position (required) font string; font style, optional: bold, italic, regular font_file string; path to font file (optional for use your custom font) font_size int; font size (default 7) align string; text align (also see feed parametr), optional left, right height int;line spacing (default 10)
Calculate coordinates to draw something in a column aligned to the center
Calculate coordinates to draw something in a column aligned to the right
Retrieve PDF
Public method of protected @see _getRenderer()
Retrieve renderer model
Create new page and assign to PDF object
Returns the total width in points of the string using the specified font and size.
This is not the most efficient way to perform this calculation. I'm concentrating optimization efforts on the upcoming layout manager class. Similar calculations exist inside the layout manager class, but widths are generally calculated only after determining line fragments.
After getPdf processing
Before getPdf processing
Draw Item process
Format address
Retrieve PDF object
Retrieve renderer model
Documentation generated on Fri, 11 Feb 2011 16:54:50 +0200 by phpDocumentor 1.4.3