生成带图片的pdf快捷方便,容错率高,高度定制,自由度高
$pdf = new PDF_Chinese();
$pdf->AddGBFont();
$pdf->Open();
$pdf->AddPage();
$pdf->SetFont('GB', '', 8);
$pdf->SetLeftMargin(15.0);
$pdf->Image("$user_pkc",15,10,56,56);
$pdf->Cell(56, 56, iconv("UTF-8", "gbk", ""), 1, 0, 'C');
$pdf->Cell(52, 9.3, iconv("UTF-8", "gbk", "姓名"), 1, 0, 'C');
$pdf->Cell(52, 9.3, iconv("UTF-8", "gbk", "性别"), 1, 0, 'C');
$pdf->Ln();
$pdf->Cell(56, 9.3, iconv("UTF-8", "gbk", ""), 0, 0, 'C');
$pdf->Cell(52, 9.3, iconv("UTF-8", "gbk", "$username"), 1, 0, 'C');
$pdf->Cell(52, 9.3, iconv("UTF-8", "gbk", "$sex"), 1, 0, 'C');
$pdf->Ln();
$pdf->Cell(56, 8, iconv("UTF-8", "gbk", ""), 0, 0, 'C');
$pdf->Cell(52, 9.3, iconv("UTF-8", "gbk", "手机号码"), 1, 0, 'C');
$pdf->Cell(52, 9.3, iconv("UTF-8", "gbk", "身份证号码"), 1, 0, 'C');
$pdf->Ln();
$pdf->Cell(56, 8, iconv("UTF-8", "gbk", ""), 0, 0, 'C');
$pdf->Cell(52, 9.3, iconv("UTF-8", "gbk", "$phone"), 1, 0, 'C');
$pdf->Cell(52, 9.3, iconv("UTF-8", "gbk", "$usercard"), 1, 0, 'C');
$pdf->Ln();
$pdf->Cell(56, 8, iconv("UTF-8", "gbk", ""), 0, 0, 'C');
$pdf->Cell(52, 9.3, iconv("UTF-8", "gbk", "常住地址"), 1, 0, 'C');
$pdf->Cell(52, 9.3, iconv("UTF-8", "gbk", "初遇"), 1, 0, 'C');
$pdf->Ln();
$pdf->Cell(56, 8, iconv("UTF-8", "gbk", ""), 0, 0, 'C');
$pdf->Cell(52, 9.3, iconv("UTF-8", "gbk", "$where"), 1, 0, 'C');
$pdf->Cell(52, 9.3, iconv("UTF-8", "gbk", "$first_qsbk"), 1, 0, 'C');
$pdf->Ln();
1