示例#1
0
//Tag Based Multicell Class
require_once "../fpdf16/MultiCellTag/class.multicelltag.php";
//Class Extention for header and footer
require_once "../fpdf16/MultiCellTag/header_footer.inc";
ob_end_clean();
$pdf = new pdf_usage();
$pdf->Open();
$pdf->AddPage();
$pdf->AliasNbPages();
if (strlen($id_Pago) < 5) {
    do {
        $id_Pago = "0" . $id_Pago;
    } while (strlen($id_Pago) < 5);
}
//Title
$pdf->Image('../images/logo.jpg', 5, 5, 50);
$pdf->SetFont('Arial', 'B', 7);
//Linea 1
$pdf->Cell(60, 3, '', 0, 0, 'C');
$pdf->Cell(23, 3, 'Dirección Fiscal:', 0, 0, 'L');
$pdf->SetFont('Arial', '', 7);
$pdf->Cell(80, 3, 'Calle 3-14 San Pascual Calle 3-14', 0, 0, 'L');
$pdf->SetFont('Arial', 'B', 12);
$pdf->Cell(23, 3, 'RECIBO', 0, 1, 'C');
//Linea 2
$pdf->SetFont('Arial', '', 7);
$pdf->Cell(60, 3, '', 0, 0, 'C');
$pdf->Cell(23, 3, '', 0, 0, 'L');
$pdf->Cell(80, 3, 'Urb. Ciudad Jardín. Cagua Edo. Aragua', 0, 1, 'L');
//Linea 3
$pdf->SetFont('Arial', 'B', 7);
示例#2
0
define('PARAGRAPH_STRING', '~~~');
//Tag Based Multicell Class
require_once "../fpdf16/MultiCellTag/class.multicelltag.php";
//Class Extention for header and footer
require_once "../fpdf16/MultiCellTag/header_footer.inc";
$pdf = new pdf_usage();
$pdf->Open();
$pdf->AddPage();
$pdf->AliasNbPages();
if (strlen($id_Contrato) < 5) {
    do {
        $id_Contrato = "0" . $id_Contrato;
    } while (strlen($id_Contrato) < 5);
}
//Title
$pdf->Image('../images/logo.jpg', 5, 5, 50);
$pdf->SetFont('Arial', 'B', 7);
/* //Linea 1
	$pdf->Cell(60,3,'',0,0,'C');
	$pdf->Cell(23,3,'Dirección Fiscal:',0,0,'L');
	$pdf->SetFont('Arial','',7);
	$pdf->Cell(80,3,'Calle 3-14 San Pascual Calle 3-14',0,0,'L');
	$pdf->SetFont('Arial','B',12);
	$pdf->Cell(23,3,'CONTRATO',0,1,'C');
//Linea 2
	$pdf->SetFont('Arial','',7);
	$pdf->Cell(60,3,'',0,0,'C');
	$pdf->Cell(23,3,'',0,0,'L');
	$pdf->Cell(80,3,'Urb. Ciudad Jardín. Cagua Edo. Aragua',0,1,'L'); */
//Linea 3
$pdf->SetFont('Arial', 'B', 7);