[DEV] Customizing proposal PDF

Location of PDF layout code file

If you want to change the appearance of PDF's generated by Cart2Quote, look in the following file and make the changes there:

app/code/community/Ophirah/Cart2Quote/Model/Pdf/Qquote.php

add the following code:

/**

* Set font as regular

*

* @param Zend_Pdf_Page $object

* @param int $size

* @return Zend_Pdf_Resource_Font

*/

protected function _setFontRegular($object, $size = 7)

{

$font = Zend_Pdf_Font::fontWithName(Zend_Pdf_Font::FONT_TIMES, Zend_Pdf_Font::EMBED_DONT_EMBED);

 

$object->setFont($font, $size);

return $font;

}

 

or for later C2Q versions: 

app/code/community/Ophirah/Qquoteadv/Model/Pdf/Qquote.php

Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk