28 require_once(
'tcpdf_include.php');
35 $pdf->SetAuthor(
'Nicola Asuni');
36 $pdf->SetTitle(
'TCPDF Example 002');
37 $pdf->SetSubject(
'TCPDF Tutorial');
38 $pdf->SetKeywords(
'TCPDF, PDF, example, test, guide');
41 $pdf->setPrintHeader(
false);
42 $pdf->setPrintFooter(
false);
57 if (@file_exists(dirname(__FILE__).
'/lang/eng.php')) {
58 require_once(dirname(__FILE__).
'/lang/eng.php');
59 $pdf->setLanguageArray(
$l);
65 $pdf->SetFont(
'times',
'BI', 20);
78 $pdf->Write(0,
$txt, '', 0, '
C', true, 0, false, false, 0);
83 $pdf->Output('example_002.pdf', 'I');
const PDF_MARGIN_BOTTOM
Bottom margin.
const PDF_MARGIN_LEFT
Left margin.
PHP class for generating PDF documents without requiring external extensions.
const PDF_UNIT
Document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch].
const PDF_IMAGE_SCALE_RATIO
Ratio used to adjust the conversion of pixels to user units.
const PDF_PAGE_ORIENTATION
Page orientation (P=portrait, L=landscape).
Add a drawing to the header
const PDF_MARGIN_RIGHT
Right margin.
const PDF_CREATOR
Document creator.
const PDF_PAGE_FORMAT
Page format.
const PDF_FONT_MONOSPACED
Default monospaced font name.
const PDF_MARGIN_TOP
Top margin.