Free Support Forum -

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

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

var totalPages = doc.Pages.Count;

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


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?


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.