OpenFromBLOB
IPDFDocument4
::
General document management
::
Common
See Also
Collapse All
This method opens an existing PDF document from a BLOB (binary large object), reads and parses its contents.
Syntax
HRESULT
OpenFromBLOB (
VARIANT*
document
,
BSTR
password
)
Parameters
document
Document buffer (binary data)
password
String containing the password
Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.
Remarks
This method clears all internal data before opening a document. If you want to save a previously created document, call
SaveToFile
or
GetBuffer
first.
When the document is opened, all of its properties (
Author
,
Producer
,
Creator
,
Title
,
Subject
and
Keywords
) are saved. You can change them later as needed.
See Also
Reference
Open
Append
WasWrongPassword