How can I retrieve the (internal) created and modified dates of a PDF file?
Retrieving created and modified dates
Re: Retrieving created and modified dates
Support · Mar 23, 2017Hello,
There are no methods or properties available in the DynamicPDF API that would allow you to read the created and modified dates of the PDF. We have added this to our feature request list for consideration but we don’t have an exact timeframe on when that would be implemented.
In any case, you can easily get these dates from the .NET System.IO.File class as shown below.
DateTime createdate = System.IO.File.GetCreationTime(@"F:\MyDocument.pdf");
DateTime modifydate = System.IO.File.GetLastWriteTime(@"F:\MyDocument.pdf");
Thanks,
ceTe Software Support Team.
Re: Retrieving created and modified dates
Forum member · Mar 24, 2017Providing acccess to those properties would be most helpful and welcome. The calls you suggest provide the Windows System Dates, not the (internal) PDF Dates. The former change with file operations at the operating system level, the latter not.
Regards,
Nicolas
Re: Retrieving created and modified dates
Support · Mar 24, 2017Hello Nicolas,
Got it and sorry for the confusion about the dates. We will consider the internal PDF dates as a part of the feature request.
Thanks,
ceTe Software Support Team.