File modules/wikiparser/renderer/fpdf/Pdf.class.php
Last commit: Fri Feb 17 02:02:18 2023 +0100 Jan Dankert Refactoring: Script-context should be the same in all environments; New: DslPdf for creating PDF with scriptbox ;)
1 <?php 2 3 namespace wikiparser\renderer\fpdf; 4 5 6 use FPDF; 7 8 require(__DIR__.'/fpdf.php'); 9 10 /** 11 * 12 */ 13 class Pdf extends FPDF 14 { 15 public function __construct($orientation = 'P', $unit = 'mm', $size = 'A4') 16 { 17 parent::__construct($orientation, $unit, $size); 18 19 // defaults 20 $this->fontpath = __DIR__.'/../font/'; 21 $this->SetFont('Arial', '', 12); 22 $this->SetTextColor(0, 0, 0); 23 $this->SetCreator( \cms\base\Startup::TITLE,true ); 24 } 25 26 /** 27 * Get Output as string. 28 * @param $dest 29 * @param $name 30 * @param $isUTF8 31 * @return string 32 */ 33 public function Output($dest = '', $name = '', $isUTF8 = false) 34 { 35 return parent::Output('S','',true); 36 } 37 } 38
Downloadmodules/wikiparser/renderer/fpdf/Pdf.class.php
History Fri, 17 Feb 2023 02:02:18 +0100 Jan Dankert Refactoring: Script-context should be the same in all environments; New: DslPdf for creating PDF with scriptbox ;) Sun, 23 Feb 2020 00:03:40 +0100 Jan Dankert Refactoring: Namespaces for modules 'logger' and 'language' Sat, 22 Feb 2020 22:45:05 +0100 Jan Dankert Refactoring: Enable Autoloading, Fix namespace structure.