Retrieving created and modified dates

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v8)  /  Re: Retrieving created and modified dates

DynamicPDF CoreSuite for .NET (v8) Forum

How can I retrieve the (internal) created and modified dates of a PDF file?
Posted by a ceTe Software moderator
Hello,

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.
Providing 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
Posted by a ceTe Software moderator
Hello 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.

All times are US Eastern Standard time. The time now is 2:56 AM.