In what units can measurements be specified when working with images in FPDF through PHP?

When working with images in FPDF through PHP, measurements can be specified in either millimeters, inches, or points. To ensure consistency and accuracy, it is important to specify the unit of measurement when adding images to the PDF document. This can be done by using the appropriate FPDF method for setting the unit of measurement before adding the image.

// Set the unit of measurement to millimeters
$pdf->SetUnit('mm');

// Add image to PDF document
$pdf->Image('path/to/image.jpg', 10, 10, 50, 50); // x, y, width, height