<?php
// Minimal stub for FPDF to avoid fatal errors if real library is not installed.
// For real PDF output, download FPDF and replace this file.

if (!class_exists('FPDF')) {
    class FPDF {
        public function __construct($orientation='P', $unit='mm', $size='A4') {}
        public function AddPage() {}
        public function SetFont($family, $style='', $size=null) {}
        public function Cell($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=false, $link='') {}
        public function Ln($h=null) {}
        public function Output($dest='F', $name='', $isUTF8=false) {
            if ($dest === 'F' && $name) {
                @file_put_contents($name, "PDF output requires real FPDF library. This is a stub.");
            } else {
                echo "PDF output requires real FPDF library. This is a stub.";
            }
        }
    }
}
