VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Pdf Namespace / PdfDocument Class / PdfDocument Constructors / PdfDocument Constructor(String,Boolean)
Syntax Exceptions Remarks Requirements SeeAlso
In This Topic
    PdfDocument Constructor(String,Boolean)
    In This Topic
    Initializes a new instance of the PdfDocument class from the specified file.
    Syntax
    'Declaration
    
    Public Function New( _
    ByVal filename
    File name of the PDF document.
    As System.String, _
    ByVal readOnlyMode
    A value indicating whether the PDF document should be opened in read-only mode.
    As Boolean _
    )
    public PdfDocument(
    System.String filename,
    bool readOnlyMode
    )
    public: PdfDocument(
    System.String filename,
    bool readOnlyMode
    )
    public:
    PdfDocument(
    System.String filename,
    bool readOnlyMode
    )

    Parameters

    filename
    File name of the PDF document.
    readOnlyMode
    A value indicating whether the PDF document should be opened in read-only mode.
    Exceptions
    ExceptionDescription
    Thrown if file is not correct.
    Remarks

    This constructor opens an existing PDF document.

    Requirements

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

    See Also