第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

php 使用tcpdf庫輸出pdf

標(biāo)簽:
PHP API

新建demo.php

<?php

    require_once("tcpdf/tcpdf.php");

    $pdf = new TCPDF('P', 'mm', 'A4', true, 'UTF-8', true);

    //设置PDF页面边距 LEFT, TOP, RIGHT

    //$pdf->SetMargins(20, 20, 20);


    //设置文件信息

    $pdf->SetCreator(TITLE_NAME);

    $pdf->SetAuthor(TITLE_NAME);

    $pdf->SetTitle("这是标题");


    //删除预定义的打印 页眉/页尾

    $pdf->setPrintHeader(false);

    /*

    $pdf->setHeaderFont(Array('stsongstdlight', '', '10'));

    //多行文本会显示不全,通过SetMargins中的top设置,可以显示更多的头部内容

    //第一个arrary是设置头文本颜色,第二个是设置横线颜色

    $pdf->SetHeaderData('logo.png', 30, '第一行',"第二行\n換行內容", array(30,54,25), array(30,54,25));

    $pdf->SetHeaderMargin(5);

    */

    $pdf->setPrintFooter(false);

    /*

    $pdf->setFooterFont(Array('stsongstdlight', '', '8'));

    $pdf->SetFooterMargin(10);

    */

    //设置默认等宽字体

    $pdf->SetDefaultMonospacedFont('courier');

    //设置默认字体构造子集模式,设置false将把字体嵌入到pdf中(文件会变大)

    $pdf->setFontSubsetting(false);

    //设置字体,字体在fonts目录中。

    //有时设置字体后会发现html中不能设粗体或斜体,这和字体本身有关

    //解决方法再生成粗体和斜体字体,命名为**b、**i(例如fzssjwb、fzssjwi)

    //这时在css中使用<b>、<h1>等标签就会自动加粗

    //$pdf->SetFont('freemonob');

    $pdf->SetFont('msungstdlight','',16);

    //设置自动换页

    $pdf->SetAutoPageBreak(true, 20);

    $html = file_get_contents("demo.html");

    //添加一个页面

    $pdf->AddPage();

    // output the HTML content

    $pdf->writeHTML($html, true, false, true, false, '');

    $pdf->lastPage();

    $pdf->Output("test001.pdf", "I");

?>


同级目录下新建demo.html

<!DOCTYPE html>

<style>

    body{

        width: 200mm;

        height: 240mm;

        margin: 15mm auto;

        padding: 0;

        font-size: 10.5pt;

        border: black 1px solid;

        /* font-family: "simsun"; */

    }

    .container {

        height: 180mm;

        width: 155mm;

        margin: 100px auto;

    }

    table{

        letter-spacing: 2px;

        line-height: 30px;

        width: 100%;

        border-collapse: collapse;

        table-layout: fixed;

    }

    .content {

        margin-top: 40px;

    }

    .between {

        margin-left: 30px;

        margin-top: 20px;

    }

    .between input{

        width: 300px;

        margin: 3mm 0;

    }

    .foot {

        margin-top: 100px;

    }

    .foot table {

        letter-spacing: 3.5px;

    }

    .qz {

        margin-top: 30px;

    }

    .qz table {

        line-height: 40px;

    }

    .table {

        float: right;

    }

    .foot span {

        text-decoration: black solid ;

        border-bottom: 1px black solid;

    }

    h1{

        text-align:center;

    }

</style>

<body>

<div class="container">

    <h1>授权委托书</h1>

    <div class="content">

        <table>

            <tr>

                <td>&nbsp;&nbsp;现本人不可撤销的向 ******* 银行</td>

            </tr>

            <tr>

                <td><strong>授权:</strong></td>

            </tr>

            <tr>

                <td style="letter-spacing: 6px">&nbsp;&nbsp;本人因办理 *********** 业务,已经</td>

            </tr>

            <tr>

                <td>向 0000000 公司支付首付款,现委托贵</td>

            </tr>

            <tr>

                <td>行将本人的信用卡(卡号 234234234342)</td>

            </tr>

            <tr>

                <td>进行启用,并将其余款项 **** 元,</td>

            </tr>

            <tr>

                <td>以透支形式扣收后支付给该公司,入账账户信息如下:</td>

            </tr>

        </table>

    </div>

    <div class="between">

        <table>

            <tr>

                <td colspan="1" class="table">账户名称:</td>

                <td colspan="4"><input type="text"  value="{$info.zhmc|default=$gs_name}" id="zhmc"></td>

            </tr>

            <tr>

                <td colspan="1" class="table">账&nbsp;&nbsp;号:</td>

                <td colspan="4"><input type="text" value="{$info.zh|default=$bank_number}" id="zh"></td>

            </tr>

            <tr>

                <td colspan="1" class="table"><span style="letter-spacing: 11px">开户</span>行:</td>

                <td colspan="4"> ********** </td>

            </tr>

        </table>

    </div>


    <div class="foot">

        <table>

            <tr>

                <td>&nbsp;&nbsp;<span>本人在签署此授权委托书之前,已认真仔细阅读上述内容,清</span></td>

            </tr>

            <tr>

                <td><span>楚知晓并自愿承担由此引发的相关法律责任。</span></td>

            </tr>

        </table>

    </div>


    <div class="qz">

        <table>

            <tr>

                <td colspan="5"></td>

                <td colspan="4">授权人:</td>

            </tr>

            <tr>

                <td colspan="6"></td>

                <td colspan="3">2019年04月01日</td>

            </tr>

        </table>

    </div>

</div>

</body>

运行demo.php 如果提示字体错误,未找到字体,去官网下载完整版fonts


點(diǎn)擊查看更多內(nèi)容
1人點(diǎn)贊

若覺得本文不錯(cuò),就分享一下吧!

評(píng)論

作者其他優(yōu)質(zhì)文章

正在加載中
感謝您的支持,我會(huì)繼續(xù)努力的~
掃碼打賞,你說多少就多少
贊賞金額會(huì)直接到老師賬戶
支付方式
打開微信掃一掃,即可進(jìn)行掃碼打賞哦
今天注冊(cè)有機(jī)會(huì)得

100積分直接送

付費(fèi)專欄免費(fèi)學(xué)

大額優(yōu)惠券免費(fèi)領(lǐng)

立即參與 放棄機(jī)會(huì)
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)

舉報(bào)

0/150
提交
取消