/** * Constructor * * @param PMF_Faq $faq PMF_Faq object * @param PMF_Category $category PMF_Category object * @param PMF_Tags $tags PMF_Tags object * * return PMF_Export_Pdf */ public function __construct(PMF_Faq $faq, PMF_Category $category, PMF_Tags $tags = null) { $this->faq = $faq; $this->category = $category; $this->tags = $tags; $this->pdf = new PMF_Export_Pdf_Wrapper(); // Set PDF options $this->pdf->Open(); $this->pdf->SetDisplayMode('real'); $this->pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); $this->pdf->SetHeaderMargin(PDF_MARGIN_HEADER); $this->pdf->SetFooterMargin(PDF_MARGIN_FOOTER); }