Pdf Net FDF Update System Memory access violation exception

Hi Team,

Getting the System Memory access violation exception

on Azure VM in the below line of code.(highlighted in red) on execution OF FDF Update

Console.WriteLine(“Inside If loop”);
var buffer = await SharePointFileHandler.DownloadFileAsync(graphApiUrl);
Console.WriteLine(“Downloaded”);
int docBufferLngt = buffer.Length;
//Initializing PDFNet
pdftron.PDFNet.Initialize();
using (pdftron.PDF.PDFDoc document = new pdftron.PDF.PDFDoc(buffer, docBufferLngt))
{
document.InitSecurityHandler();
pdftron.FDF.FDFDoc fdfMarkupString = new pdftron.FDF.FDFDoc(pdftron.FDF.FDFDoc.CreateFromXFDF(markupEncodedContent));

document.FDFUpdate(fdfMarkupString);

Console.WriteLine(“FDF Update”);

var convertedBufferStream = new MemoryStream();
document.Save(convertedBufferStream, pdftron.SDF.SDFDoc.SaveOptions.e_linearized);
byte[] convertedBuffer = convertedBufferStream.ToArray();

var pdfProcedsor = Dependency.UnityContainer.Resolve();
fdfMarkupString.Dispose();
convertedBufferStream.Dispose();
fdfMarkupString = null;
convertedBufferStream = null;
// await pdfProcedsor.UploadPdfToSourceSystem(convertedBuffer, graphApiUrl);
Console.WriteLine(“Uploaded”);
}

Regards,
Sridhar

Thank you for contacting us about this. Could you please submit a ticket to support.pdftron.com and provide us with the PDF and the FDF markup string that you are using that causes this access violation? In addition, please provide us with the version of the SDK you are using.

Thank you in advance.

Thank you.