Initializes a new instance of the PdfDocument class
Namespace: Spire.PdfAssembly: Spire.Pdf (in Spire.Pdf.dll) Version: 6.2.6.0 (6.2.6.2020)
Syntax
C# | Visual Basic | Visual C++ | F# |
public PdfDocument( string filename )
Public Sub New ( filename As String )
public: PdfDocument( String^ filename )
new : filename : string -> PdfDocument
Parameters
- filename
- String
The path to source pdf file.
Remarks
This constructor imports an existing pdf file into the document object. It automatically populates the Pages collection with the pages of the given document.