コード例 #1
0
ファイル: Pdf.php プロジェクト: ae120/phpMyFAQ
 /**
  * Constructor
  *
  * @param PMF_Faq           $faq      Faq object
  * @param PMF_Category      $category Category object
  * @param PMF_Configuration $config   Configuration
  *
  * return PMF_Export_Pdf
  */
 public function __construct(PMF_Faq $faq, PMF_Category $category, PMF_Configuration $config)
 {
     $this->faq = $faq;
     $this->category = $category;
     $this->_config = $config;
     $this->pdf = new PMF_Export_Pdf_Wrapper();
     $this->pdf->setConfig($this->_config);
     // 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);
 }