<?php
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
ini_set('memory_limit', '64M');
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetAuthor('Fxtrade');
$pdf->SetTitle('AutoFX User Details');
$pdf->SetSubject('AutoFX User Details');
$pdf->SetFont('msmincho', '', 7);
$pdf->setPrintHeader(false);
$pdf->setPrintFooter(false);
$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(12, 12, 12);
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
$pdf->SetAutoPageBreak(true, PDF_MARGIN_BOTTOM);
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
$pdf->AddPage();
$pdf->SetFillColor(100, 100, 100);
?>
我在 .pdf 文件中显示的内容非常少,但文件大小似乎为 2.9MB
我觉得,字体大小有问题,
请帮我减小文件大小