1
|
<?php
|
2
|
|
3
|
require_once __DIR__ . "/../autoload.php";
|
4
|
|
5
|
|
6
|
use Interpid\PdfLib\Multicell;
|
7
|
use Interpid\PdfLib\Pdf;
|
8
|
|
9
|
$pdf = new Pdf();
|
10
|
$multicell = new Multicell($pdf);
|
11
|
|
12
|
$font = "helvetica";
|
13
|
|
14
|
// Set the styles for the advanced multicell
|
15
|
$multicell->setStyle("b", $font, "B", 10, "0,0,0");
|
16
|
$multicell->setStyle("h", $font, "B", 11, "0,0,0");
|
17
|
$multicell->setStyle("p", $font, "", 10, "0,0,0");
|
18
|
|
19
|
$pdf->AddPage();
|
20
|
$pdf->SetMargins(15, 15, 15);
|
21
|
$pdf->SetFont($font, '', 10);
|
22
|
$pdf->SetTextColor(0, 0, 0);
|
23
|
$pdf->SetFillColor(205, 205, 205);
|
24
|
|
25
|
$pdf->Ln(1);
|
26
|
|
27
|
$multicell->multiCell(0, 10, "<h>CONTRATO DE ARRENDAMENTO PARA FINS HABITACIONAIS COM PRAZO CERTO</h>", 1, "C", 1);
|
28
|
|
29
|
$pdf->Ln(10);
|
30
|
|
31
|
$text = "<b>Espazo Amarelo - Investimento Imobili?rio, Unipessoal, Lda.</b>, com sede em Av. Infante Santo, n.? 100 A-C, 1350-179 Lisboa, freguesia de Lapa, concelho de Lisboa, NIPC 500111333, aqui representado(a) pelo(a) <b>Manual Santis</b>, na qualidade de Gerente da Sociedade aqui representada, com poderes para o ato, adiante designado(a) de <b>Primeiro(a) Contraente</b> ou <b>Senhorio(a)</b>;";
|
32
|
|
33
|
$multicell->multiCell(0, 6, $text, 0, "J");
|
34
|
|
35
|
$pdf->Output();
|