LEADTOOLS PDF (Leadtools.Pdf assembly)
LEAD Technologies, Inc

FileName Property (PDFFile)






Gets or sets the name of the file associated with this PDFFile.
Syntax
public string FileName {get; set;}
'Declaration
 
Public Property FileName As String
'Usage
 
Dim instance As PDFFile
Dim value As String
 
instance.FileName = value
 
value = instance.FileName
public string FileName {get; set;}
 get_FileName();
set_FileName(value);
public:
property String^ FileName {
   String^ get();
   void set (    String^ value);
}

Property Value

A System.String that contain the name of the file associated with this PDFFile. The default value is a null reference (Nothing in Visual Basic).
Remarks

The PDFFile object must be associated with an existing PDF file on disk when performing any of the actions using the various methods of the class. You can also set the file name when creating the object using the PDFFile(string fileName) or PDFFile(string fileName, string password) constructors.

When you change the file name of a PDFFile object, all the previous data is invalidated and returned to the default values as follows:

Some PDF files are encrypted and require a password before they can be used. For these kind of files, you must set the Password property to the correct value before using the other properties and methods of the object. Use IsEncrypted to determine if the PDF file is encrypted and requires a password.

After you set the file name and optional password, you can call the Load method to populate the DocumentProperties and Pages properties of this PDFFile object with the correct values read from the file.

In certain situation, you may want to associate a PDFFile with a Postscript and not a PDF file, for example, to create a PDFFile object and call its Distill method to convert the Postscript file to PDF.

Example

For an example, refer to PDFFile.

Requirements

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

See Also

Reference

PDFFile Class
PDFFile Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.