Function to build widget tree corresponding to PDF document.
final PdfDocumentBuilder? documentBuilder;