<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ![](https://box.kancloud.cn/27f077623ddee1873c927ae1cb9fbdbe_1557x2272.png) ``` <?php //============================================================+ // File name : example_001.php // Begin : 2008-03-04 // Last Update : 2013-05-14 // // Description : TCPDF類的示例001 // 默認頁眉和頁腳 // // Author: Nicola Asuni // // (c) Copyright: // Nicola Asuni // Tecnick.com LTD // www.tecnick.com // info@tecnick.com //============================================================+ /** * 使用TCPDF創建示例PDF測試文檔 * @package com.tecnick.tcpdf * @abstract TCPDF-示例:默認頁眉和頁腳 * @author Nicola Asuni * @since 2008-03-04 */ // 引入主TCPDF庫(搜索安裝路徑)。 require_once('tcpdf_include.php'); // 創建新的PDF文檔 $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false); // 設置文檔信息 $pdf->SetCreator(PDF_CREATOR); $pdf->SetAuthor('Nicola Asuni'); $pdf->SetTitle('TCPDF Example 001'); $pdf->SetSubject('TCPDF Tutorial'); $pdf->SetKeywords('TCPDF, PDF, example, test, guide'); // 設置默認報頭數據 $pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 001', PDF_HEADER_STRING, array(0,64,255), array(0,64,128)); $pdf->setFooterData(array(0,64,0), array(0,64,128)); // 設置頁眉和頁腳字體 $pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); $pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); // 設置默認的單間距字體 $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); // 設定邊距 $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); $pdf->SetHeaderMargin(PDF_MARGIN_HEADER); $pdf->SetFooterMargin(PDF_MARGIN_FOOTER); // 設置自動分頁 $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); // 設定圖像尺度因子 $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // 設置一些依賴于語言的字符串(可選) if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { require_once(dirname(__FILE__).'/lang/eng.php'); $pdf->setLanguageArray($l); } // --------------------------------------------------------- // 設置默認字體設置模式 $pdf->setFontSubsetting(true); // 設置字體 // dejavusans是UTF-8 Unicode字體,如果你只需要打印標準的ASCII字符,你可以使用helvetica或times這樣的核心字體來減少文件的大小。 $pdf->SetFont('dejavusans', '', 14, '', true); // 添加一頁 // 此方法有幾個選項,請查看源代碼文檔以獲得更多信息 $pdf->AddPage(); // 設置文本陰影效果 $pdf->setTextShadow(array('enabled'=>true, 'depth_w'=>0.2, 'depth_h'=>0.2, 'color'=>array(196,196,196), 'opacity'=>1, 'blend_mode'=>'Normal')); // 設置一些要打印的內容 $html = <<<EOD <h1>Welcome to <a href="http://www.tcpdf.org" style="text-decoration:none;background-color:#CC0000;color:black;">&nbsp;<span style="color:black;">TC</span><span style="color:white;">PDF</span>&nbsp;</a>!</h1> <i>這是TCPDF庫的第一個例子.</i> <p>此文本使用<i>writeHTMLCell()</i> 方法,但也可以使用 <i>Multicell(), writeHTML(), Write(), Cell() and Text()</i>.</p> <p>請查看源代碼文檔和其他示例以獲取更多信息。</p> <p style="color:#CC0000;">為了改進和擴展TCPDF,我需要您的支持,請<a href="http://sourceforge.net/donate/index.php?group_id=128076">捐贈</a></p> EOD; // 使用writeHTMLCell()打印文本 $pdf->writeHTMLCell(0, 0, '', '', $html, 0, 1, 0, true, '', true); // --------------------------------------------------------- // 關閉和輸出PDF文檔 // 此方法有幾個選項,請查看源代碼文檔以獲得更多信息 $pdf->Output('example_001.pdf', 'I'); //============================================================+ // END OF FILE //============================================================+ ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看