PHP Classes

File: examples/normal.php

Recommend this page to a friend!
  Classes of Amós Assis   CFE Printer   examples/normal.php   Download  
File: examples/normal.php
Role: Example script
Content type: text/plain
Description: Example script
Class: CFE Printer
Generate printable documents for sales in Brazil
Author: By
Last change:
Date: 1 year ago
Size: 296 bytes
 

Contents

Class file image Download
<?php

ini_set
("display_errors", 0);

require_once
'../vendor/autoload.php';

use
CfePrinter\Pdf\CfePdfGenerator;
use
CfePrinter\Xml\XmlReader;

$xmlString = file_get_contents('example2.xml');

$xml = new XmlReader($xmlString);
$pdf = new CfePdfGenerator($xml, false);

$pdf->getPDF('test.pdf');