using (Stream ms = new MemoryStream())
using (PDFDoc pdfDoc = new PDFDoc(this.documentRepository.DownloadBlobToStream(in_BlobParts.Container, in_BlobParts.BlobFileNameId, ms)))
{
var existingAnnots = pdfDoc.FDFExtract(PDFDoc.ExtractFlag.e_both);
var xxx = existingAnnots.SaveAsXFDF(); // test to see existing annotations
using (FDFDoc fdf = new FDFDoc(FDFDoc.CreateFromXFDF(annotations)))
{
var yyy = fdf.SaveAsXFDF(); // test to see in annotations
pdfDoc.InitSecurityHandler();
pdfDoc.FDFMerge(fdf);
}
var zzz = pdfDoc.FDFExtract(PDFDoc.ExtractFlag.e_both).SaveAsXFDF(); //test to see results, here I see two annotations with the same guid name, in annotation is a resize of the existing annotation. expected to see a single merged annotation with the new size. But see two with the same name guid.
}
So question, should they have merged into a single annotation, if so anyone see why code is incorrect.
Thanks for any help.