如何使用php生成一个PDF文件-创新互联
这篇文章将为大家详细讲解有关如何使用php生成一个PDF文件,文章内容质量较高,因此小编分享给大家做个参考,希望大家阅读完这篇文章后对相关知识有一定的了解。
让客户满意是我们工作的目标,不断超越客户的期望值来自于我们对这个行业的热爱。我们立志把好的技术通过有效、简单的方式提供给客户,将通过不懈努力成为客户在信息化领域值得信任、有价值的长期合作伙伴,公司提供的服务项目有:申请域名、网页空间、营销软件、网站建设、南开网站维护、网站推广。AddGBFont(); $pdf->Open(); $pdf->AddPage(); $pdf->SetFont('GB', 'B', 10); $pdf->SetLeftMargin(15.0); $pdf->Cell(180, 8, iconv("UTF-8", "gbk", "2015年10月出勤统计表 导出时间: 2015-10-14 市场部3人"), 1, 0, 'C'); $pdf->Ln(); //以上是表头 $pdf->SetFont('GB', '', 8); $pdf->SetLeftMargin(15.0); $pdf->Cell(10, 8, iconv("UTF-8", "gbk", "UID"), 1, 0, 'C'); $pdf->Cell(10, 8, iconv("UTF-8", "gbk", "姓名"), 1, 0, 'C'); $pdf->Cell(10, 8, iconv("UTF-8", "gbk", "部门"), 1, 0, 'C'); $pdf->Cell(15, 8, iconv("UTF-8", "gbk", "出勤/天"), 1, 0, 'C'); $pdf->Cell(15, 8, iconv("UTF-8", "gbk", "出勤/小时"), 1, 0, 'C'); $pdf->Cell(15, 8, iconv("UTF-8", "gbk", "迟到/次"), 1, 0, 'C'); $pdf->Cell(15, 8, iconv("UTF-8", "gbk", "迟到/分钟"), 1, 0, 'C'); $pdf->Cell(15, 8, iconv("UTF-8", "gbk", "早退/次"), 1, 0, 'C'); $pdf->Cell(15, 8, iconv("UTF-8", "gbk", "早退/次"), 1, 0, 'C'); $pdf->Cell(15, 8, iconv("UTF-8", "gbk", "早退/分钟"), 1, 0, 'C'); $pdf->Cell(15, 8, iconv("UTF-8", "gbk", "缺卡/次"), 1, 0, 'C'); $pdf->Cell(15, 8, iconv("UTF-8", "gbk", "地点异常/次"), 1, 0, 'C'); $pdf->Cell(15, 8, iconv("UTF-8", "gbk", "账号状态"), 1, 0, 'C'); $pdf->Ln(); $pdf->Cell(10, 8, iconv("UTF-8", "gbk", "10002"), 1, 0, 'C'); $pdf->Cell(10, 8, iconv("UTF-8", "gbk", "市场部"), 1, 0, 'C'); $pdf->Cell(10, 8, iconv("UTF-8", "gbk", "1"), 1, 0, 'C'); $pdf->Cell(15, 8, iconv("UTF-8", "gbk", "9.0"), 1, 0, 'C'); $pdf->Cell(15, 8, iconv("UTF-8", "gbk", "0"), 1, 0, 'C'); $pdf->Cell(15, 8, iconv("UTF-8", "gbk", "0"), 1, 0, 'C'); $pdf->Cell(15, 8, iconv("UTF-8", "gbk", "0"), 1, 0, 'C'); $pdf->Cell(15, 8, iconv("UTF-8", "gbk", "0"), 1, 0, 'C'); $pdf->Cell(15, 8, iconv("UTF-8", "gbk", "0"), 1, 0, 'C'); $pdf->Cell(15, 8, iconv("UTF-8", "gbk", "0"), 1, 0, 'C'); $pdf->Cell(15, 8, iconv("UTF-8", "gbk", "0"), 1, 0, 'C'); $pdf->Cell(15, 8, iconv("UTF-8", "gbk", "0"), 1, 0, 'C'); $pdf->Cell(15, 8, iconv("UTF-8", "gbk", "0"), 1, 0, 'C'); $pdf->Ln(); $pdf->Output(); ?>
关于如何使用php生成一个PDF文件就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。
新闻名称:如何使用php生成一个PDF文件-创新互联
文章链接:http://pwwzsj.com/article/ddgjcj.html