IPXC_DocumentInfo::SetCreationDate Method

From PDF XChange PDF SDK
Jump to: navigation, search
(Sample)
 
Line 21: Line 21:
 
private void SetDate(PDFXEdit.IPXC_Document Doc)
 
private void SetDate(PDFXEdit.IPXC_Document Doc)
 
{
 
{
//4 January 1900, 9 P.M.
+
//Setting creation date as current date without hours
    Doc.Info.SetCreationDate(5.875);
+
destDoc.Info.SetCreationDate(DateTime.Today);
 
}
 
}
 
</pre>
 
</pre>

Latest revision as of 02:24, 16 March 2016


The method of interface of PDF-XChange Editor SDK.

Syntax

HRESULT SetCreationDate([in]  DATE  nDate);

Parameters

nDate
[in] Value of DATE containing the creation date.

Return Value

Returns S_OK if operation was successful or error code in other cases.

Sample

//C#
private void SetDate(PDFXEdit.IPXC_Document Doc)
{
	//Setting creation date as current date without hours
	destDoc.Info.SetCreationDate(DateTime.Today);
}

See Also

IPXC_DocumentInfo