/**
  * Override layout
  */
 public function setLayout()
 {
     $this->pdf->SetXY(10, 85);
     \MakePdf\MakePdfLib::placeImageToPDF($this->pdf, 0, 0, 210, 'fileadmin/users/Produktvertrieb/Header_15/Orient_So15_Head.jpg');
     \MakePdf\MakePdfLib::placeImageToPDF($this->pdf, 0, 237, 210, 'fileadmin/users/Produktvertrieb/Bildleisten/Dubai.jpg');
     $color = "80,80,80";
     $headerTag = new \MakePdf\Tag();
     $headerTag->addTagElement(new \MakePdf\TagElement('preisknaller', 'WELTNEUHEIT THE TERRACE', "thesanseb", "N", 34, $color));
     \MakePdf\MakePdfLib::writeTagToPDF($this->pdf, 190, 12, $headerTag, 'p');
     $titleTag = new \MakePdf\Tag();
     $titleTag->addTagElement(new \MakePdf\TagElement('title', 'DUBAI', "thesanseb", "N", 34, $color));
     \MakePdf\MakePdfLib::writeTagToPDF($this->pdf, 190, 12, $titleTag, 'p');
     $placeTag = new \MakePdf\Tag();
     $placeTag->addTagElement(new \MakePdf\TagElement('ort', 'Vereinigte Arabische Emirate', "thesansb", "N", 20, $color));
     \MakePdf\MakePdfLib::writeTagToPDF($this->pdf, 190, 12, $placeTag, 'p');
     $hotelTag = new \MakePdf\Tag();
     $hotelTagElement = new \MakePdf\TagElement('hotel', 'Burj Al Arab', "thesansb", "N", 18, $color);
     $categoryTagElement = new \MakePdf\TagElement('category', '*****', "ftisymfon", "N", 10, $color);
     $hotelTag->addTagElement($hotelTagElement);
     $hotelTag->addTagElement($categoryTagElement);
     \MakePdf\MakePdfLib::writeTagToPDF($this->pdf, 190, 12, $hotelTag, 'p');
     $freeText1Tag = new \MakePdf\Tag();
     $freeText1Tag->addTagElement(new \MakePdf\TagElement('p', '1 Nacht in der Deluxe Suite inkl. Frühstück', "thesans", "N", 18, $color, 0));
     \MakePdf\MakePdfLib::writeTagToPDF($this->pdf, 190, 6, $freeText1Tag, '');
     $freeText2Tag = new \MakePdf\Tag();
     $freeText2Tag->addTagElement(new \MakePdf\TagElement('p', 'Anreise z.B. am 15.07.2016', "thesans", "N", 18, $color, 0));
     \MakePdf\MakePdfLib::writeTagToPDF($this->pdf, 190, 6, $freeText2Tag, '');
     $top = 200;
     $left = 10;
     $this->pdf->SetXY($left, $top);
     $pricePrefixTag = new \MakePdf\Tag();
     $pricePrefixTag->addTagElement(new \MakePdf\TagElement('preisprefix', 'Preis pro Person ab', "thesansb", "N", 18, $color, 0));
     \MakePdf\MakePdfLib::writeTagToPDF($this->pdf, 190, 14, $pricePrefixTag);
     $width = $this->pdf->GetStringWidth(\MakePdf\MakePdfLib::euroHack('Preis pro Person ab') . ' ') + 5;
     $this->pdf->SetXY($left + $width, $top - 7);
     $priceTag = new \MakePdf\Tag();
     $priceTag->addTagElement(new \MakePdf\TagElement('preis', '539', "thesanseb", "N", 90, $color));
     \MakePdf\MakePdfLib::writeTagToPDF($this->pdf, 190, 14, $priceTag);
     $width += $this->pdf->GetStringWidth('539') + 2;
     $this->pdf->SetXY($left + $width, $top - 11);
     $txt = \MakePdf\MakePdfLib::euroHack(chr(164));
     $euroTag = new \MakePdf\Tag();
     $euroTag->addTagElement(new \MakePdf\TagElement('euro', \MakePdf\MakePdfLib::euroHack(chr(164)), "thesanseb", "N", 55, $color));
     \MakePdf\MakePdfLib::writeTagToPDF($this->pdf, 190, 14, $euroTag);
     $this->pdf->SetXY(10, 212);
     $codeTag = new \MakePdf\Tag();
     $codeTag->setLineHeight($this->spaceAfter);
     $codeTag->addTagElement(new \MakePdf\TagElement('code', 'DXB306 PX F', "thesans", "N", 13, $color));
     \MakePdf\MakePdfLib::writeTagToPDF($this->pdf, 190, $this->lineHeight + 4, $codeTag);
     $this->pdf->SetXY(10, 225);
     $footerTag = new \MakePdf\Tag();
     $footer1TagElement = new \MakePdf\TagElement('fussb', 'Zwischenverkauf und Druckfehler vorbehalten! Es gelten die Reise- und Zahlungsbedingungen des jeweiligen FTI Kataloges.', "thesansb", "N", 8, $color, 0);
     $footer2TagElement = new \MakePdf\TagElement('fuss', 'FTI Touristik GmbH, Landsberger Str. 88, 80339 München', "thesans", "N", 8, $color, 0);
     $footerTag->addTagElement($footer1TagElement);
     $footerTag->addTagElement($footer2TagElement);
     \MakePdf\MakePdfLib::writeTagToPDF($this->pdf, 200, 3, $footerTag);
 }
Example #2
0
 /**
  * Generate PDF
  */
 public function generate()
 {
     //WriteTag settings
     $this->docFontSize = 12;
     $this->background = 0;
     $this->border = 0;
     $this->spaceBefore = 6;
     $this->spaceAfter = 100;
     foreach ($this->tags as $tag) {
         \MakePdf\MakePdfLib::write($this->pdf, $tag);
     }
     $this->pdf->Output('PDF_' . time() . '.pdf', $this->xpdfMode);
     $this->pdf = null;
     unset($this->pdf);
     exit;
 }
Example #3
0
 /**
  * Override layout
  */
 public function setLayout()
 {
     $this->pdf->SetAutoPageBreak(true, 87);
     \MakePdf\MakePdfLib::placeImageToPDF($this->pdf, 185, 192, 15, '/typo3conf/ext/fti_easyflyer/Resources/Public/Images/Icons/fti_logo_2cm_sw.png');
     $color = "0,0,0";
     $this->pdf->SetXY(10, 101);
     $pricePrefixTag = new \MakePdf\Tag();
     $pricePrefixTag->addTagElement(new \MakePdf\TagElement('preisprefix', 'ab', "thesansb", "N", 36, $color));
     $pricePrefixTag->addTagElement(new \MakePdf\TagElement('euro', \MakePdf\MakePdfLib::euroHack(chr(164)), "thesanseb", "N", 36, $color));
     \MakePdf\MakePdfLib::writeTagToPDF($this->pdf, 190, 14, $pricePrefixTag, 'p');
     $this->pdf->SetFont('thesansb', '', 32);
     $width = $this->pdf->GetStringWidth('ab' . ' ') + 7;
     $this->pdf->SetXY(10 + $width, 88);
     $priceTag = new \MakePdf\Tag();
     $priceTag->addTagElement(new \MakePdf\TagElement('preis', '539', "thesanseb", "N", 160, $color));
     $priceTag->setLineHeight(12);
     \MakePdf\MakePdfLib::writeTagToPDF($this->pdf, 190, 14, $priceTag, 'p');
     $this->pdf->Ln(5);
     $titleTag = new \MakePdf\Tag();
     $titleTag->addTagElement(new \MakePdf\TagElement('title', 'DUBAI', "thesanseb", "N", 46, $color));
     \MakePdf\MakePdfLib::writeTagToPDF($this->pdf, 190, 14, $titleTag, 'p');
     $hotelTag = new \MakePdf\Tag();
     $hotelTagElement = new \MakePdf\TagElement('hotel', 'Burj Al Arab', "thesansb", "N", 18, $color);
     $categoryTagElement = new \MakePdf\TagElement('category', '*****', "ftisymfon", "N", 10, $color);
     $hotelTag->addTagElement($hotelTagElement);
     $hotelTag->addTagElement($categoryTagElement);
     $this->pdf->Ln(0);
     \MakePdf\MakePdfLib::writeTagToPDF($this->pdf, 190, $this->lineHeight + 4, $hotelTag, 'p');
     $this->pdf->Ln(0);
     $codeTag = new \MakePdf\Tag();
     $codeTag->addTagElement(new \MakePdf\TagElement('code', 'DXB306 PX F', "thesansb", "N", 12, $color));
     \MakePdf\MakePdfLib::writeTagToPDF($this->pdf, 190, $this->lineHeight + 4, $codeTag);
     $arr = array("1 Nacht in der Deluxe Suite inkl. Frühstück", "Anreise z . B . am 15.07.2016", "Preis pro Person ab");
     $txt = implode(", ", $arr);
     $infoTag = new \MakePdf\Tag();
     $infoTag->addTagElement(new \MakePdf\TagElement('p', $txt, "thesans", "N", 14, $color, 0));
     $this->pdf->SetMargins(10, $this->marginTop, 10);
     \MakePdf\MakePdfLib::writeTagToPDF($this->pdf, 190, $this->lineHeight, $infoTag);
     $this->pdf->Ln(5);
     $this->pdf->SetXY(10, 196);
     $footerTag = new \MakePdf\Tag();
     $footerTagElement = new \MakePdf\TagElement('fuss', 'Zwischenverkauf und Druckfehler vorbehalten! Es gelten die Reise- und Zahlungsbedingungen des jeweiligen FTI Kataloges. FTI Touristik GmbH, Landsberger Str. 88, 80339 München', "thesansb", "N", 9, $color, 0);
     $footerTag->addTagElement($footerTagElement);
     \MakePdf\MakePdfLib::writeTagToPDF($this->pdf, 145, 4, $footerTag);
 }