VintaSoft Imaging .NET SDK 11.0
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.
    Exceptions
    ExceptionDescription
    Thrown if format is PdfFormat.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 6; .NET 5; .NET Core 3.1; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also