 | PdfDocumentLoad Method (Stream, PdfForms, String, Boolean) |
Loads the PDF document from the specified stream.
Namespace:
Patagames.Pdf.Net
Assemblies:
Patagames.Pdf.Xamarin.iOS (in Patagames.Pdf.Xamarin.iOS.dll) Version: 4.81.2704
Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.81.2704
Syntaxpublic static PdfDocument Load(
Stream stream,
PdfForms forms = null,
string password = null,
bool leaveOpen = true
)
Public Shared Function Load (
stream As Stream,
Optional forms As PdfForms = Nothing,
Optional password As String = Nothing,
Optional leaveOpen As Boolean = true
) As PdfDocument
public:
static PdfDocument^ Load(
Stream^ stream,
PdfForms^ forms = nullptr,
String^ password = nullptr,
bool leaveOpen = true
)
static member Load :
stream : Stream *
?forms : PdfForms *
?password : string *
?leaveOpen : bool
(* Defaults:
let _forms = defaultArg forms null
let _password = defaultArg password null
let _leaveOpen = defaultArg leaveOpen true
*)
-> PdfDocument
public static PdfDocument Load(
Stream stream,
PdfForms forms = null,
String password = null,
boolean leaveOpen = true
)
Patagames.Pdf.Net.PdfDocument.Load = function(stream, forms, password, leaveOpen);
Parameters
- stream
- Type: System.IOStream
The stream containing the PDF document to load. The stream must support seeking. - forms (Optional)
- Type: Patagames.Pdf.NetPdfForms
Instance of PdfForms class that will be associated with loaded document - password (Optional)
- Type: SystemString
A string used as the password for PDF file. If no password needed, empty or NULL can be used. - leaveOpen (Optional)
- Type: SystemBoolean
true if the application would like the stream to remain open after closing document.
Return Value
Type:
PdfDocumentInstance of PDFDocument class
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