VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.Pdf Namespace / PdfDocument Class / PdfDocument Constructors / PdfDocument Constructor(String,FileMode,FileAccess,PdfFormat,EncryptionSystem)
Syntax Exceptions Remarks Requirements SeeAlso
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
    File name of the PDF document.
    As System.String, _
    ByVal fileMode
    A FileMode constant that determines how to open or create the PDF document.
    As System.IO.FileMode, _
    ByVal fileAccess
    File access to open/create the PDF document.
    As System.IO.FileAccess, _
    ByVal format
    Format of new PDF document.
    As PdfFormat, _
    ByVal encryptionSystem
    Encryption system of new PDF document.
    As Vintasoft.Imaging.Pdf.Security.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.
    Exceptions
    ExceptionDescription
    Thrown if format is Pdf_A. Use ConvertDocument(PdfDocumentConformance) method to convert document to PDF/A.
    Remarks

    This constructor opens an existing or creates new PDF document with specified access mode.

    Requirements

    Target Platforms: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also