/** * business method to render the forms * @param array $textProps * @returns boolean true on sucess. */ protected function _render($textProps) { $encoding = new I2CE_Encoding($this->layoutOptions['encoding']); $this->pdf = new I2CE_PDF($encoding, $this->layoutOptions['orientation'], 'mm', $this->layoutOptions['size']); $this->pdf->SetMargins($this->layoutOptions['horiz_pad'], $this->layoutOptions['vert_pad']); $this->pdf->SetAutoPageBreak(false, $this->layoutOptions['vert_pad']); $this->pdf->SetCellPadding(0); $this->pdf->setCompression(false); $hyphen = new I2CE_Hyphen($encoding); $hyphen->LoadHyphenDictionary($this->layoutOptions['hyphenation_file']); $this->pdf->SetHyphenationDictionary($hyphen); $this->pdf->setPrintHeader(false); $this->pdf->setPrintFooter(false); return parent::_render($textProps); }
/** * Constructor * @param string $std_form The standardized printed form we are rendeding * @parm array $ids of string. The ids of the primary form in the relationship * @param string $base_rel_config The magic data path that we look for the base relationship in. Defaults to /modules/CustomReports/relationships */ public function __construct($std_form, $ids, $base_rel_config = '/modules/CustomReports/relationships') { parent::__construct($std_form, $ids, $base_rel_config); $this->images = array(); }