VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging.Pdf Namespace / PdfDocument Class / PdfDocument Constructors / PdfDocument Constructor(String)
Syntax Exceptions Remarks Example Requirements SeeAlso
In This Topic
PdfDocument Constructor(String)
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 _
)
public PdfDocument(
System.String filename
)

Parameters

filename
File name of the PDF document.
Exceptions
ExceptionDescription
Thrown if file is not correct.
Remarks

This constructor opens an existing PDF document in read-write mode.

Example

Here is an example that shows how to to load PDF document from file:


Public Shared Function LoadPdfDocumentFromFile(filename As String) As Vintasoft.Imaging.Pdf.PdfDocument
    Return New Vintasoft.Imaging.Pdf.PdfDocument(filename)
End Function


public static Vintasoft.Imaging.Pdf.PdfDocument LoadPdfDocumentFromFile(string filename)
{
    return new Vintasoft.Imaging.Pdf.PdfDocument(filename);
}

Requirements

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

See Also