adding intermediate callbacks to PdfWorker