 | PdfViewerLoadDocument(Stream, String) Method |
Loads the PDF document from the specified stream.
Namespace: Patagames.Pdf.Net.Controls.WinFormsAssembly: Patagames.Pdf.WinForms (in Patagames.Pdf.WinForms.dll) Version: 4.100.2704
Syntaxpublic void LoadDocument(
Stream stream,
string password = null
)
Public Sub LoadDocument (
stream As Stream,
Optional password As String = Nothing
)
public:
void LoadDocument(
Stream^ stream,
String^ password = nullptr
)
member LoadDocument :
stream : Stream *
?password : string
(* Defaults:
let _password = defaultArg password null
*)
-> unit public void LoadDocument(
Stream stream,
String password = null
)
function LoadDocument(stream, password);
Parameters
- stream Stream
- The stream containing the PDF document to load. The stream must support seeking.
- password String (Optional)
- A string used as the password for PDF file. If no password needed, empty or NULL can be used.
Exceptions
Remarks Note |
|---|
The application should maintain the stream resources being valid until the PDF document close. With the trial version the documents which size is smaller than 1024 Kb, or greater than 10 Mb can be loaded without any restrictions. For other documents the allowed ranges is 1.5 - 2 Mb; 2.5 - 3 Mb; 3.5 - 4 Mb; 4.5 - 5 Mb and so on. |
See Also