VintaSoft Imaging .NET SDK v8.7
Vintasoft.Imaging.Pdf Namespace / PdfDocument Class / PdfDocument Constructor / PdfDocument Constructor(String,FileMode,FileAccess,PdfFormat,EncryptionSystem)
File name of the PDF document.
A FileMode constant that determines how to open or create the PDF document.
File access to open/create the PDF document.
Format of new PDF document.
Encryption system of new PDF document.



In This Topic
    PdfDocument Constructor(String,FileMode,FileAccess,PdfFormat,EncryptionSystem)
    In This Topic
    Initializes a new instance of the PdfDocument class from the specified file or creates a new document.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal filename As String, _
       ByVal fileMode As FileMode, _
       ByVal fileAccess As FileAccess, _
       ByVal format As PdfFormat, _
       ByVal encryptionSystem As EncryptionSystem _
    )
    public PdfDocument( 
       string filename,
       FileMode fileMode,
       FileAccess fileAccess,
       PdfFormat format,
       EncryptionSystem encryptionSystem
    )
    public: PdfDocument( 
       string* filename,
       FileMode fileMode,
       FileAccess fileAccess,
       PdfFormat* format,
       EncryptionSystem* encryptionSystem
    )
    public:
    PdfDocument( 
       String^ filename,
       FileMode fileMode,
       FileAccess fileAccess,
       PdfFormat^ format,
       EncryptionSystem^ encryptionSystem
    )

    Parameters

    filename
    File name of the PDF document.
    fileMode
    A FileMode constant that determines how to open or create the PDF document.
    fileAccess
    File access to open/create the PDF document.
    format
    Format of new PDF document.
    encryptionSystem
    Encryption system of new PDF document.
    Remarks
    This constructor opens an existing or creates new PDF document with specified access mode.
    Requirements

    Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also