Qual: Generalize hook afterPDFCreation.
New: Add hook beforePDFCreation