VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging.Pdf Namespace / PdfDocument Class / PdfDocument Constructors / PdfDocument Constructor(String,FileMode,PdfFormat)
Syntax Exceptions Remarks Requirements SeeAlso
In This Topic
PdfDocument Constructor(String,FileMode,PdfFormat)
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 format
Format of new PDF document.
As PdfFormat _
)
public PdfDocument(
System.String filename,
System.IO.FileMode fileMode,
PdfFormat format
)

Parameters

filename
File name of the PDF document.
fileMode
A FileMode constant that determines how to open or create the PDF document.
format
Format 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 in read-write mode.

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