我想知道是否可以打印PDF文件,并将其中的空白点替换为我从我的网站获得的变量,因此输出取决于变量的值等
用FPDF做你需要的
但是在这种情况下,你必须知道你必须从头开始创建一个pdf文件,并以你想要的方式填充它。
<?php
require('fpdf.php');
$pdf = new FPDF();
$pdf->AddPage(); // add page to PDF
$pdf->SetFont('Arial','B',16); // Choose a font and size
$pdf->Cell(40,10,'Hello World!'); // write anything to any line you want
$pdf->Output("your_name.pdf"); // Export the file and send in to browser
?>