←Select platform

PDFDocument Constructor(string)

Summary
Initializes a new PDFDocument from a specified PDF file.
Syntax
C#
VB
C++
Java
public PDFDocument( 
   string fileName 
) 
Public Function New( _ 
   ByVal fileName As String _ 
) 
public PDFDocument( 
   java.lang.String fileName 
); 
public: 
PDFDocument(  
   String^ fileName 
) 

Parameters

fileName
The name of an existing PDF file.

Remarks

The PDFDocument class encapsulates a PDF document on disk and allows you to read the pages, objects and images from the document.

fileName must contain the name of an existing and valid PDF file on disk. If the PDF file is encrypted, then use the PDFDocument(string fileName, string password) constructor. You can check whether a PDF is encrypted using the PDFFile.IsEncrypted method.

This method will initialize the members of PDFDocument as follows:

Use PDFDocument Constructor(Stream) to create a PDF document from a .NET stream.

Example

For an example, refer to PDFDocument.

Requirements

Target Platforms

Help Version 21.0.2021.7.6
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Pdf Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.