【发布时间】:2017-01-17 14:10:27
【问题描述】:
附加的图像是我通过单击包含使用 MPDf 库的特定 php 文件自动生成的 pdf 文档, 任何人都可以帮助我如何增加文本的大小并使其清晰可见,这是我的代码以便转换为 pdf 提前谢谢。
<?php
require("mpdf60/mpdf.php");
$mpdf=new mPDF('utf-8','A3-L');//A4 page in portrait for landscape add -L.
$mpdf->debug = true;
$mpdf->allow_output_buffering = true;
//$mpdf->SetHeader('|Your Header here|');
//$mpdf->setFooter('{PAGENO}');// Giving page number to your footer.
//$mpdf->useOnlyCoreFonts = true; // false is default
$mpdf->SetDisplayMode('fullpage');
// Buffer the following html with PHP so we can store it to a variable later
ob_start();
?>
<?php
include_once "viewcomp.php";
//This is your php page ?>
<?php
$html = ob_get_contents();
ob_end_clean();
// send the captured HTML from the output buffer to the mPDF class for processing
$mpdf->WriteHTML($html);
//$mpdf->SetProtection(array(), 'user', 'password'); uncomment to protect your pdf page with password.
$mpdf->Output();
exit;
?>
【问题讨论】:
-
您阅读文档了吗?
-
是的,我做到了,但我找不到任何解决方案...?
标签: mpdf