I want to summarize the annotations of a PDF


I see that PDFNet has a print option to summarize some of the annotations in a PDF, such as text highlights. However I want to customize how it works. I am on Windows (WPF).


Windows offers a FlowDocument interface that makes it easy to create a document with customized layout. Also, our .Net 4 SDK comes with a Xaml2PdfTest sample project that can convert a FlowDocument to a PDF.

If you take the following attached code, and drop it into the Xaml2PdfTest project, then you can see the start of a summarize annotations extension. You can customize from there. This code includes how to get the information that you might want to include.

Xaml2PdfTest.cs (9.65 KB)