Php 使用其他文件中的变量打印PDF文件? 我想知道是否可以打印PDF文件,用我从网站上获取的变量替换它中的空白点,所以输出取决于变量的值等。< P>使用你所需要的。
但是在这种情况下,你必须知道你必须从头开始创建一个pdf文件,并按照你想要的方式填充它Php 使用其他文件中的变量打印PDF文件? 我想知道是否可以打印PDF文件,用我从网站上获取的变量替换它中的空白点,所以输出取决于变量的值等。< P>使用你所需要的。,php,html,pdf,printing,Php,Html,Pdf,Printing,但是在这种情况下,你必须知道你必须从头开始创建一个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 anyt
<?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
?>