Are there any potential pitfalls to converting existing PDFs to images before editing them with fpdf?

Converting existing PDFs to images before editing them with fpdf can result in loss of text quality and formatting. To avoid this pitfall, it is recommended to directly edit the PDF using fpdf functions instead of converting it to an image first.

// Load existing PDF file
$pdf = new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'Hello World!');
$pdf->Output();