private static void ExecuteCallback(PdfDocument document, PdfOutput woutput, string outputPdfFilePath) { if (woutput.OutputCallback != null) { woutput.OutputCallback(document, File.ReadAllBytes(outputPdfFilePath)); } }