Fix: Better management of pdf generation when tcpdf not available.