I'm going to build a Windows Store app in C#, with the capability to annotate PDF's Is there a library that supports PDF annotations for Windows store apps/WinRT?
2 Answers
The company I work for develops the XFINIUM.PDF library. It supports WinRT platform and it supports adding annotations to PDF files.
You can add a text annotation to an existing PDF file like this:
// Load the PDF file
PdfFixedDocument document = new PdfFixedDocument(sourcePdfStream);
// Create the annotation and add it to the first page
PdfTextAnnotation ta = new PdfTextAnnotation();
document.Pages[0].Annotations.Add(ta);
// Set the annotation properties
ta.Location = new PdfPoint(50, 50);
ta.Author = "John doe";
ta.Contents = "I am a text annotation.";
ta.IconName = "Note";
// Save the document
document.Save(destinationPdfStream)
-
Thanks @Mihai for the support.But there is no pdf viewer for your library.is there any? Oct 22, 2014 at 10:01
-
-
@MihaiIancu How about now? What's the status of development of viewer for WinRT from Xfinium? We are looking forward to your components... May 25, 2015 at 11:44
-
The PDF rendering engine is ready, we're working on the viewer control around it. It will be available soon. May 26, 2015 at 5:07
Try Amyuni PDF Creator for WinRT, the library allows adding annotations (also pictures, lines, or text), and it provides a graphic component that can display the file on the screen.