Free Support Forum - aspose.com

New record gets inserted even without opening the pdf file

Hi - We are trying to create a new page in a PDF Doc and adding an image from a source.

Using: Latest Version of Aspose.Pdf 18.3.0.0

using(Document doc = new Document(“Somepdf.pdf”){

doc.Pages.Add();
var totalPages = doc.Pages.Count;

Image im - new Image();
im.File = “http://someserver/some.gif”

doc.Pages[totalPages].Paragraphs.Add(im)

doc.save(“imagedPDF.pdf”)
}

The problem is that just after running this piece of code, a new record gets inserted in the database for viewing “imagedPDF.pdf”(i don’t even open the latest file). Can you please help in this and suggest why is this happening and how to fix it?

@Shashank10

Thank you for contacting support.

We would like to share with you that Aspose.PDF is a file manipulation API which does not interact with databases by itself. This appears like an issue with some of your database routines. You may try to copy and paste a file and notice if the record is updated or not, or you can try to move files among the folders, using some Java code, and then observe if record is updated in your database or not. This way you can narrow down the issue and work over resolving it.