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

Loads a PDF document from a stream object.

C#
public int PdfReaderLoadFromStream(
    Stream Stream
);
Visual Basic
Public Function PdfReaderLoadFromStream(
    ByVal Stream As Stream
) As Integer
Parameters
Parameters 
Description 
Stream 
The stream object. 
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.