| PdfDocumentLoad(Byte, PdfForms, String) Method |
Open and load a PDF document from a memory.
Namespace: Patagames.Pdf.NetAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.89.2704
Syntax public static PdfDocument Load(
byte[] content,
PdfForms forms = null,
string password = null
)
Public Shared Function Load (
content As Byte(),
Optional forms As PdfForms = Nothing,
Optional password As String = Nothing
) As PdfDocument
public:
static PdfDocument^ Load(
array<unsigned char>^ content,
PdfForms^ forms = nullptr,
String^ password = nullptr
)
static member Load :
content : byte[] *
?forms : PdfForms *
?password : string
(* Defaults:
let _forms = defaultArg forms null
let _password = defaultArg password null
*)
-> PdfDocument
public static PdfDocument Load(
byte[] content,
PdfForms forms = null,
String password = null
)
Patagames.Pdf.Net.PdfDocument.Load = function(content, forms, password);
Parameters
- content Byte
- Pointer to a buffer containing the PDF document
- forms PdfForms (Optional)
- Instance of PdfForms class that will be associated with loaded document
- password String (Optional)
- A string used as the password for PDF file. If no password needed, empty or NULL can be used.
Return Value
PdfDocumentInstance of PDFDocument class
Exceptions Remarks Note |
---|
The application should maintain the byte array 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