←Select platform

PDFDocument Constructor(string)

Summary

Initializes a new PDFDocument form a specified PDF file.

Syntax

C#
VB
Java
C++
public PDFDocument( 
   string fileName 
) 
Public Function New( _ 
   ByVal fileName As String _ 
) 
public PDFDocument(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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Pdf Assembly