Leadtools.Pdf Namespace > PDFFile Class : SetDocumentProperties Method |
public void SetDocumentProperties( string destinationFileName )
'Declaration Public Sub SetDocumentProperties( _ ByVal destinationFileName As String _ )
'Usage Dim instance As PDFFile Dim destinationFileName As String instance.SetDocumentProperties(destinationFileName)
public void SetDocumentProperties( string destinationFileName )
function Leadtools.Pdf.PDFFile.SetDocumentProperties( destinationFileName )
public: void SetDocumentProperties( String^ destinationFileName )
To use this method, associate this PDFFile object with a valid PDF file and optional password. You can achieve this by either using the PDFFile(string fileName) or PDFFile(string fileName, string password) constructurs or set the file name and optional password directly into the FileName and Password properties. You do not need to call Load before using this method.
This method will use the following properties of this PDFFile object:
DocumentProperties. If the value of this property is null (Nothing in Visual Basic), then default properties will be used.
The following properties are not used by this method:
SecurityOptions. To encrypt a PDF file, use the Convert method
CompatibilityLevel. The version of the PDF to be generated is the same as the original version. To create a PDF file with a different version use Convert or ConvertToPDFA
For an example, refer to PDFFile.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2