←Select platform

ModifiedOriginal Property

Summary

The modified original date and time of the PDF document. This is optional.

Syntax

C#
C++/CLI
Java
Python
public String ModifiedOriginal { get; set; } 
public java.lang.String getModifiedOriginal(); 
public void setModifiedOriginal( 
   java.lang.String date 
); 
public: 
property String^ ModifiedOriginal { 
   DateTime get(); 
   void set (    DateTime ); 
} 
ModifiedOriginal # get and set (PDFDocumentProperties) 

Property Value

The value of the string stored in the original file containing date and time the PDF document was modified. This value may contain time zone information. If the file did not contain this information, the default value is an empty String object.

Remarks

LEADTOOLS converts this value to UTC and stores it in the Modified property.

See the CreatedOriginal property for a description of the format of the string returned by this property.

The TimeZoneOffset helper method can be used to extract the time zone information from the value of this property.

Example

C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.Controls; 
using Leadtools.Pdf; 
using Leadtools.Svg; 
using Leadtools.WinForms; 
 
 
 
public void TestPDFTime() 
{ 
   string pdfFileName = Path.Combine(LEAD_VARS.ImagesDir, @"Leadtools.pdf"); 
   PDFFile pdfFile = new PDFFile(pdfFileName); 
   pdfFile.Load(); 
 
   PDFDocumentProperties properties = pdfFile.DocumentProperties; 
   Console.WriteLine("Created = {0}", properties.Created.ToString()); 
   Console.WriteLine("Modified = {0}", properties.Modified.ToString()); 
   Console.WriteLine("CreatedOriginal = {0}", properties.CreatedOriginal); 
   Console.WriteLine("ModifiedOriginal = {0}", properties.ModifiedOriginal); 
   Console.WriteLine("CreatedTimeZoneOffset = {0}", PDFDocumentProperties.TimeZoneOffset(properties.CreatedOriginal)); 
   Console.WriteLine("ModifiedTimeZoneOffset = {0}", PDFDocumentProperties.TimeZoneOffset(properties.ModifiedOriginal)); 
} 
 
 
static class LEAD_VARS 
{ 
   public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images"; 
} 

Requirements

Target Platforms

See Also

PDFDocumentProperties Class

PDFDocumentProperties Members

PDFDocumentProperties.CreatedOriginal

PDFDocumentProperties.Modified property

PDFDocumentProperties.TimeZoneOffset method

Help Version 22.0.2023.7.10
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Pdf Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.