public void Export(AODL.Document.IDocument document, string filename) { try { PDFDocument pdfDocument = new PDFDocument(); pdfDocument.DoExport(document, filename); if (this.OnExportFinished != null) { this.OnExportFinished(); } } catch(Exception) { throw; } }