Merging annotations with PDF on the server.

Q: I need to combinine original PDFs with annotations (comments/stamps
etc) added using Acrobat Online Collaboration via a web service.
Currently we can recombine the annotations/comments using Javascript on
the client machine, but I would like to be able to do this on the
server using a component. Can you tell me if PDFNet SDK can support
this feature?
---

A:
You can use PDFNet SDK (www.pdftron.com/net) to programmatically merge
annotations (either on the client or on the server).

As a starting point you may want to take a look at AnnotationTest
sample project: http://www.pdftron.com/net/samplecode.html#Annotation.

Another approach to annotation merging is using FDF (Forms Data Format)
merge file. This is illustrated in the following code sample:

... Initialize PDFNet ...
...
PDFDoc doc = new PDFDoc("test.pdf");
doc.InitSecurityHandler();

FDFDoc fdf_doc = new FDFDoc("merge.fdf");
Obj root = fdf_doc.GetRoot();
Obj src_annots = root.Get("FDF").Value().Get("Annots").Value();

// Import the annotaions to destination document.
Obj annots = doc.GetSDFDoc().ImportObj(src_annots, true);

// Now place the annotations on PDF pages.
// In this case we will place all annotations on the first page
Page page = doc.PageBegin().Current();
int num_annots = annots.Size();
for (int i=0; i<num_annots; ++i) {
  page.AnnotPushBack(new Annot(annots.GetAt(i)));
}

fdf_doc.Close();
doc.Save("output.pdf", Doc.SaveOptions.e_linearized);
doc.Close();
...