You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > PDF Reader > PdfReaderLoadFromFile Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.PdfReaderLoadFromFile Method

Loads a PDF document from a file.

C#
public int PdfReaderLoadFromFile(
    String FilePath
);
Visual Basic
Public Function PdfReaderLoadFromFile(
    ByVal FilePath As String
) As Integer
Parameters
Parameters 
Description 
FilePath 
The PDF path. 
Returns

0: The PDF could not be loaded. 

Non-zero: A PDF handle: A reference to the loaded PDF.

Sometime PDF can be password protected. You can use the PdfReaderIsEncrypted function to determine if a PDF is encrypted or not. If encrypted, you should use the PdfReaderSetPassword to decode it.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.