PdfSharpCore icon indicating copy to clipboard operation
PdfSharpCore copied to clipboard

Opening a pdf causes the ModDate to update

Open Malikazz opened this issue 2 years ago • 1 comments

Issue

Opening a PDF with PdfSharpCore causes the modification date to change before any modification has been made. This makes checking the modification date to see if its been modified pointless.

Is there a method where this property can be read without modifying it?

Should the property be changing before an modification is made? Or is that a bug.

I would personally expect that the modification tag would only be updated during a save.

Replication

Create a valid PDF, save it, open it and compare ModDate and CreationDate, ModDate wont match creation date.

Malikazz avatar Jun 13 '23 15:06 Malikazz

Found the read only option reading the code I think maybe its still odd mod date is changed before the save but perhaps it has a reason.

Malikazz avatar Jun 13 '23 15:06 Malikazz