Created
June 28, 2018 21:54
-
-
Save davidchc/ff1308d9e03c894d67dac50af9f388c2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$autoload = require_once(__DIR__ . '/vendor/autoload.php'); | |
require_once __DIR__ . '/vendor/stavarengo/php-sigep/exemplos/bootstrap-exemplos.php'; | |
$params = include __DIR__ . '/vendor/stavarengo/php-sigep/exemplos/helper-criar-pre-lista.php'; | |
// Logo da empresa remetente | |
$logoFile = __DIR__ . '/vendor/stavarengo/php-sigep/exemplos/logo-etiqueta.png'; | |
//Parametro opcional indica qual layout utilizar para a chancela. Ex.: CartaoDePostagem::TYPE_CHANCELA_CARTA, CartaoDePostagem::TYPE_CHANCELA_CARTA_2016 | |
$layoutChancela = array(\PhpSigep\Pdf\CartaoDePostagem::TYPE_CHANCELA_CARTA); | |
$pdf = new \PhpSigep\Pdf\CartaoDePostagem($params, time(), $logoFile, $layoutChancela); | |
$pdf->render(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment