diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT index 9945d7d..2ffc924 100755 --- a/CHANGELOG.TXT +++ b/CHANGELOG.TXT @@ -1,5 +1,6 @@ 4.6.008 (2009-05-07) - setSignature() method was improved (but is still experimental). + - Example n. 52 was added. 4.6.007 (2009-05-05) - Bug #2786685 "writeHtmlCell and
in custom footer" was fixed. diff --git a/doc/classtrees_com-tecnick-tcpdf.html b/doc/classtrees_com-tecnick-tcpdf.html index a77dcb3..477cb5c 100644 --- a/doc/classtrees_com-tecnick-tcpdf.html +++ b/doc/classtrees_com-tecnick-tcpdf.html @@ -45,7 +45,7 @@

- Documentation generated on Thu, 07 May 2009 15:07:57 +0200 by phpDocumentor 1.4.1 + Documentation generated on Thu, 07 May 2009 15:13:04 +0200 by phpDocumentor 1.4.1
diff --git a/doc/com-tecnick-tcpdf/TCPDF.html b/doc/com-tecnick-tcpdf/TCPDF.html index b3b0031..c51e619 100644 --- a/doc/com-tecnick-tcpdf/TCPDF.html +++ b/doc/com-tecnick-tcpdf/TCPDF.html @@ -19151,7 +19151,7 @@ $file)

- Documentation generated on Thu, 07 May 2009 15:07:58 +0200 by phpDocumentor 1.4.1 + Documentation generated on Thu, 07 May 2009 15:13:05 +0200 by phpDocumentor 1.4.1
diff --git a/doc/com-tecnick-tcpdf/TCPDFBarcode.html b/doc/com-tecnick-tcpdf/TCPDFBarcode.html index 2f93bf0..6dcdd87 100644 --- a/doc/com-tecnick-tcpdf/TCPDFBarcode.html +++ b/doc/com-tecnick-tcpdf/TCPDFBarcode.html @@ -1368,7 +1368,7 @@ $type)

- Documentation generated on Thu, 07 May 2009 15:07:57 +0200 by phpDocumentor 1.4.1 + Documentation generated on Thu, 07 May 2009 15:13:04 +0200 by phpDocumentor 1.4.1
diff --git a/doc/com-tecnick-tcpdf/_barcodes.php.html b/doc/com-tecnick-tcpdf/_barcodes.php.html index 88ab255..f9751ec 100644 --- a/doc/com-tecnick-tcpdf/_barcodes.php.html +++ b/doc/com-tecnick-tcpdf/_barcodes.php.html @@ -96,7 +96,7 @@ PHP class to creates array representations for common 1D barcodes to be used wit

- Documentation generated on Thu, 07 May 2009 15:07:57 +0200 by phpDocumentor 1.4.1 + Documentation generated on Thu, 07 May 2009 15:13:04 +0200 by phpDocumentor 1.4.1
diff --git a/doc/com-tecnick-tcpdf/_config---tcpdf_config.php.html b/doc/com-tecnick-tcpdf/_config---tcpdf_config.php.html index 794b224..fa6e862 100644 --- a/doc/com-tecnick-tcpdf/_config---tcpdf_config.php.html +++ b/doc/com-tecnick-tcpdf/_config---tcpdf_config.php.html @@ -507,7 +507,7 @@ Configuration file for TCPDF.




- Documentation generated on Thu, 07 May 2009 15:08:03 +0200 by phpDocumentor 1.4.1 + Documentation generated on Thu, 07 May 2009 15:13:10 +0200 by phpDocumentor 1.4.1
diff --git a/doc/com-tecnick-tcpdf/_htmlcolors.php.html b/doc/com-tecnick-tcpdf/_htmlcolors.php.html index 7a12a96..8ad652d 100644 --- a/doc/com-tecnick-tcpdf/_htmlcolors.php.html +++ b/doc/com-tecnick-tcpdf/_htmlcolors.php.html @@ -88,7 +88,7 @@ Array of WEB safe colors.




- Documentation generated on Thu, 07 May 2009 15:07:58 +0200 by phpDocumentor 1.4.1 + Documentation generated on Thu, 07 May 2009 15:13:05 +0200 by phpDocumentor 1.4.1
diff --git a/doc/com-tecnick-tcpdf/_tcpdf.php.html b/doc/com-tecnick-tcpdf/_tcpdf.php.html index 7a6c5f4..7758c51 100644 --- a/doc/com-tecnick-tcpdf/_tcpdf.php.html +++ b/doc/com-tecnick-tcpdf/_tcpdf.php.html @@ -115,7 +115,7 @@ unicode data


- Documentation generated on Thu, 07 May 2009 15:07:58 +0200 by phpDocumentor 1.4.1 + Documentation generated on Thu, 07 May 2009 15:13:05 +0200 by phpDocumentor 1.4.1
diff --git a/doc/com-tecnick-tcpdf/_unicode_data.php.html b/doc/com-tecnick-tcpdf/_unicode_data.php.html index 798a38c..a742a96 100644 --- a/doc/com-tecnick-tcpdf/_unicode_data.php.html +++ b/doc/com-tecnick-tcpdf/_unicode_data.php.html @@ -237,7 +237,7 @@ Unicode Include file for TCPDF.




- Documentation generated on Thu, 07 May 2009 15:08:03 +0200 by phpDocumentor 1.4.1 + Documentation generated on Thu, 07 May 2009 15:13:10 +0200 by phpDocumentor 1.4.1
diff --git a/doc/elementindex.html b/doc/elementindex.html index e6d3776..11a6f04 100644 --- a/doc/elementindex.html +++ b/doc/elementindex.html @@ -1364,7 +1364,7 @@ top

- Documentation generated on Thu, 07 May 2009 15:07:57 +0200 by phpDocumentor 1.4.1 + Documentation generated on Thu, 07 May 2009 15:13:04 +0200 by phpDocumentor 1.4.1
diff --git a/doc/elementindex_com-tecnick-tcpdf.html b/doc/elementindex_com-tecnick-tcpdf.html index f0b067b..d87e601 100644 --- a/doc/elementindex_com-tecnick-tcpdf.html +++ b/doc/elementindex_com-tecnick-tcpdf.html @@ -1387,7 +1387,7 @@ top

- Documentation generated on Thu, 07 May 2009 15:07:57 +0200 by phpDocumentor 1.4.1 + Documentation generated on Thu, 07 May 2009 15:13:04 +0200 by phpDocumentor 1.4.1
diff --git a/doc/errors.html b/doc/errors.html index 9769af8..a0f3429 100644 --- a/doc/errors.html +++ b/doc/errors.html @@ -35,7 +35,7 @@ Post-parsing

- Documentation generated on Thu, 07 May 2009 15:08:03 +0200 by phpDocumentor 1.4.1 + Documentation generated on Thu, 07 May 2009 15:13:10 +0200 by phpDocumentor 1.4.1
diff --git a/doc/index.html b/doc/index.html index 19e0e98..1006ff7 100644 --- a/doc/index.html +++ b/doc/index.html @@ -58,7 +58,7 @@ This documentation was generated by phpDocumentor v1.4.1

- Documentation generated on Thu, 07 May 2009 15:07:57 +0200 by phpDocumentor 1.4.1 + Documentation generated on Thu, 07 May 2009 15:13:04 +0200 by phpDocumentor 1.4.1
diff --git a/doc/li_com-tecnick-tcpdf.html b/doc/li_com-tecnick-tcpdf.html index 19e0e98..1006ff7 100644 --- a/doc/li_com-tecnick-tcpdf.html +++ b/doc/li_com-tecnick-tcpdf.html @@ -58,7 +58,7 @@ This documentation was generated by phpDocumentor v1.4.1

- Documentation generated on Thu, 07 May 2009 15:07:57 +0200 by phpDocumentor 1.4.1 + Documentation generated on Thu, 07 May 2009 15:13:04 +0200 by phpDocumentor 1.4.1
diff --git a/examples/example_052.php b/examples/example_052.php new file mode 100644 index 0000000..9f1da93 --- /dev/null +++ b/examples/example_052.php @@ -0,0 +1,103 @@ +SetCreator(PDF_CREATOR); +$pdf->SetAuthor('Nicola Asuni'); +$pdf->SetTitle('TCPDF Example 052'); +$pdf->SetSubject('TCPDF Tutorial'); +$pdf->SetKeywords('TCPDF, PDF, example, test, guide'); + +// set default header data +$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING); + +// set header and footer fonts +$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); +$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); + +// set default monospaced font +$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); + +//set margins +$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); +$pdf->SetHeaderMargin(PDF_MARGIN_HEADER); +$pdf->SetFooterMargin(PDF_MARGIN_FOOTER); + +//set auto page breaks +$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); + +//set image scale factor +$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); + +//set some language-dependent strings +$pdf->setLanguageArray($l); + +// --------------------------------------------------------- + +// set certificate file +$certificate = 'file://../tcpdf.pem'; + +// set additional information +$info = array( + 'Name' => 'TCPDF', + 'Location' => 'Office', + 'Reason' => 'Testing TCPDF', + 'ContactInfo' => 'http://www.tcpdf.org', + ); + +// set document signature +$pdf->setSignature($certificate, $certificate, '', '', 2, $info); + +// set font +$pdf->SetFont('helvetica', '', 10); + +// add a page +$pdf->AddPage(); + +// print a line using Cell() +$pdf->Cell(0, 12, 'Signed Document', 1, 1, 'C'); + +// --------------------------------------------------------- + +//Close and output PDF document +$pdf->Output('example_052.pdf', 'I'); + +//============================================================+ +// END OF FILE +//============================================================+ +?>