Separating functionality and removing dependency in PdfForm::generatePdfExample()