private void PopulateWithAnnotationReport(PDFDocument pdf_document) { List <PDFDocument> pdf_documents = new List <PDFDocument>(); pdf_documents.Add(pdf_document); AnnotationReportOptionsWindow.AnnotationReportOptions annotation_report_options = new AnnotationReportOptionsWindow.AnnotationReportOptions(); annotation_report_options.ObeySuppressedImages = true; annotation_report_options.ObeySuppressedText = true; annotation_report_options.SuppressAllImages = false; annotation_report_options.SuppressAllText = true; annotation_report_options.SuppressPDFDocumentHeader = true; annotation_report_options.SuppressPDFAnnotationTags = true; annotation_report_options.InitialRenderDelayMilliseconds = 1000; var annotation_report = AsyncAnnotationReportBuilder.BuildReport(pdf_document.Library, pdf_documents, annotation_report_options); this.ObjDocumentViewer.Document = annotation_report.flow_document; }
private void OnShowTagOptionsComplete(Library library, List <PDFDocument> pdf_documents, AnnotationReportOptionsWindow.AnnotationReportOptions annotation_report_options) { var annotation_report = AsyncAnnotationReportBuilder.BuildReport(library, pdf_documents, annotation_report_options); ReportViewerControl report_view_control = new ReportViewerControl(annotation_report); string title = String.Format("Annotation report at {0}", DateTime.UtcNow.ToShortTimeString()); OpenNewWindow(title, Icons.GetAppIcon(Icons.ModulePDFAnnotationReport), true, true, report_view_control); }