forked from moveis-simonetti/losango-docserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adicao de outros arquivos para gerar pdf de seguro e cdebito
- Loading branch information
1 parent
a1d2a8e
commit 702447e
Showing
8 changed files
with
92 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
050190110990010P4200907579 � �HEITOR �A0050304557000957 � � � � � � � � � � � � � �1Aprovado pela politica de credito � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �000264621012014 � � � � � � � � � � � � � � � � � � � � � � � � �05000000000024183HSBC Finance Brasil S.A. � � �CSN775006REAL 0000000000000000000000000000420000000000241830000000 0000000 � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � PROPOSTA TESTE � � � � � � � �F00078492165049100000000051442001SSP �CE010120040MARACANAU � � � � � � � � � � � � � � � 24101931F0MARACANAU � � �RITA LINHARES FROTA � � � � � FRANCISCO HOLANDA FROTA � � � 00000 � � 2RUA DO MERCADO � � � � � � � � � � � � �20 � � � � � � � � �JEREISSATI I � MARACANAU � � �RJ2001012008503384327800001100000000 � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �00000000000000000000000000000070000 � � � � � � � � � �SEM OCUPACAO � � � �[email protected] � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 00000000000 � � �00000000000 � � �00000000000 � � �00000000000 � � 000000 � �00000000 � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �00000000000000000000000000000 � � � � 00000000 � � � � � � � � � � � � 00000000 � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �000000000000000000000000 � � � � � � � � � �OUTROS � � � � � � � �100000000000 � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 000000 � � � � � � � � � � � � � � � � � � � UILSON TIO � � � � � � � � � �0620355832380000ESLAINE AMIGA � � � � � � � � 0620351852910000 � � � � � � � � � � � � � � �0000000000000000 � � � � � � � � � � � � � � �000000000000000000000000 0000000000000 �0000000000 � � � � � � � � � � �11 � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �11CASAS BAHIA � � � � 00000000000012780082008 � � � � � � � � � � � � � � � � � � � �11000 � � � � � � � 0 � � � � � � � � � � � � � � � � � � � � � � � � �312240 � � � � � CVC BRASIL OPERAD. AG. VIAGENS0000200570028850200000000000000121012014000000000120000000000000000000000000000000000000000000012000000000410000025000030800000000 00067SANTO ANDRE - SP (P.A.) � � � � � � � � � � � � � 3355010400012900000000150167 � � �R.CEL.FERNANDO PRESTES 81 A 87 � � � � � � � � � � � � � � � � � � � � � � � � � � � CENTRO � � � � � � � � � � � � � � SANTO ANDRE � � � � � � � � � � � �SP09020000000000000000001006201400000000000000001 � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �0 0 � � �0000000000000000000000000 � � � 0 � � �0000000000000000000000000 � � � 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 � � � � � � � � � � � � � � � � � � � � � � � � �00000000 0000000000000 � �000000003990240 00000000018049500000100000500000000000009092009 � � � � � � � � � � � � � � � � � � � � � � � � �N �00000000 0000000000000 �00 � � � � � � � � � � � � � � � � � � � � � � � � �21022014 � � � � � �21032014 � � � � � �21042014 � � � � � �21052014 � � � � � �21062014 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 8 � � � � 2HO |
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
require __DIR__ . '/../vendor/autoload.php'; | ||
|
||
$configuration = new Ssh\Configuration('192.168.1.214'); | ||
$authentication = new Ssh\Authentication\Password('vinicius', 'mestre'); | ||
|
||
$session = new \Ssh\Session($configuration, $authentication); | ||
|
||
class Config implements \Simonetti\Losango\DocServer\Configuration | ||
{ | ||
public function getDirectory() | ||
{ | ||
return '/home/vinicius/DocServer/'; | ||
} | ||
} | ||
|
||
$docServer = new \Simonetti\Losango\DocServer\DocServer($session, new Config()); | ||
$cdebitoDocument = new \Simonetti\Losango\DocServer\Document\CDebitoDocument($docServer); | ||
|
||
$content = file_get_contents(__DIR__ . '/cdebito.cd'); | ||
/* | ||
$cdebitoDocument->generate( | ||
'teste', | ||
$content | ||
); | ||
*/ | ||
file_put_contents(__DIR__ . '/cdebito.pdf', $cdebitoDocument->fetch('teste')); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
require __DIR__ . '/../vendor/autoload.php'; | ||
|
||
$configuration = new Ssh\Configuration('192.168.1.214'); | ||
$authentication = new Ssh\Authentication\Password('vinicius', 'mestre'); | ||
|
||
$session = new \Ssh\Session($configuration, $authentication); | ||
|
||
class Config implements \Simonetti\Losango\DocServer\Configuration | ||
{ | ||
public function getDirectory() | ||
{ | ||
return '/home/vinicius/DocServer/'; | ||
} | ||
} | ||
|
||
$docServer = new \Simonetti\Losango\DocServer\DocServer($session, new Config()); | ||
$seguroDocument = new \Simonetti\Losango\DocServer\Document\SeguroDocument($docServer); | ||
|
||
$content = file_get_contents(__DIR__ . '/seguro.seg'); | ||
/* | ||
$seguroDocument->generate( | ||
'teste', | ||
$content | ||
); | ||
*/ | ||
file_put_contents(__DIR__ . '/seguro.pdf', $seguroDocument->fetch('teste')); |
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
050020210992016P4200655899 TRS A00502832670139 0 000884525012011 04000000000010915HSBC BANK BRASIL S.A. CSN775006REAL 0000000000000000000000000000580000000000109153990240066223920APOS VENCIMENTO, PAGUE NO HSBC INCIDIRA MULTA DE 2.00 % SOBRE VALOR TOTAL TOP 01 PARCELA ?/4COMERCIAL SAO JORGE COM IMP EX / Cod Lojista: 283267013 END: R SAO SEBASTIAO, 510 CENTRO RIBEIRAO PRETO SP 14015000 CLIENTE TESTE F0000000000019110000000000 SSP 220419850 22041979M0 NOME DA MAE 00000000002R MATIAS CARDOSO 737 CENTRO PORTO FERREIRA SP1366000000193589890000001106102008COMERCIAL S O JORGE ENDE 0 BAIRRO TESTE PORTO FERREIRA SP13660000001935811840000000000200000 PROGRAMADOR 0 000000000000 0 11 10CASAS BAHIA 00000000000268380082008 110001 0000000000000000000 00000000 00000000 000000000000000000000000 000000000000 NOME DA REFERENCIAA 0019358989050000NOME DA REFERENCIAB 0019358989060000 0000000000000000 000000000000000000000000 0000000000000 000000000021 COMERCIAL SAO JORGE 0000001010024494401199718067900000000000003390000000000000000000000000000000000000000000369640000001250120110001111002603000260300 00028RIBEIRAO PRETO 3355010400012900000107778301 R SAO SEBASTIAO, 510 CENTRO RIBEIRAO PRETO SP140150000000000000000000000000000000000000000000 1F20900760000000000025740005000012HSCDC0060200540000000000004900025000024HSSOR0012501201101000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000 0000000000000 000000000000000 0000000000000 000000000000000000000000000000000 NN 00000000 0000000000000 002402201103025023906424032011030250239072240420110302502390802405201103025023909900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 |
18 changes: 18 additions & 0 deletions
18
src/Simonetti/Losango/DocServer/Document/CDebitoDocument.php
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace Simonetti\Losango\DocServer\Document; | ||
|
||
use Simonetti\Losango\DocServer\Document as DocumentAbstract; | ||
|
||
class CDebitoDocument extends DocumentAbstract | ||
{ | ||
protected function getFilePrefix() | ||
{ | ||
return 'cdebito-'; | ||
} | ||
|
||
protected function getBin() | ||
{ | ||
return 'cdebito/bin/gerar.sh'; | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/Simonetti/Losango/DocServer/Document/SeguroDocument.php
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace Simonetti\Losango\DocServer\Document; | ||
|
||
use Simonetti\Losango\DocServer\Document as DocumentAbstract; | ||
|
||
class SeguroDocument extends DocumentAbstract | ||
{ | ||
protected function getFilePrefix() | ||
{ | ||
return 'seguro-'; | ||
} | ||
|
||
protected function getBin() | ||
{ | ||
return 'seguro/bin/gerar.sh'; | ||
} | ||
} |