![]() |
Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.3.23
|
Leadtools.Pdf Assembly > 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 )
To use this method, associate the PDFFile object with a valid PDF file and optional password. Do this by either using the PDFFile(string fileName) or PDFFile(string fileName, string password) constructors or setting the filename and optional password directly by calling the FileName and Password properties. It is not necessary 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, 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.