Laurence Skoropinski
unread,Feb 26, 2018, 7:21:58 PM2/26/18Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PDFTron PDFNet SDK
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.