PXCV_ReadDocumentFromMemory

<< Click to Display Table of Contents >>

Navigation:  Functions >

PXCV_ReadDocumentFromMemory


 

pdf-xchange-editor-simple-sdk_100x100 PXCV_ReadDocumentFromMemory

 


 

PXCV_ReadDocumentFromMemory reads documents from memory buffers.

 

HRESULT  PXCV_ReadDocumentFromMemory(

     PXVDocument Doc,

     const BYTEmem,

     UINT size,

     DWORD Flags

);

 

Parameters

 

Doc

[in] Specifies a document that PXCV_Init created.

 

mem

[in] Pointer to a memory buffer that contains the document to be opened.

 

size

[in] Specifies the size (in bytes) of the buffer to which mem points.

 

Flags

[in] This parameter is reserved for future use and should be set to 0.

 

Please note that all functions and parameters are case-sensitive.

 

Return Values

 

If the function succeeds then the return value is DS_OK.

 

If the function fails then the return value is an error code.

 

If the function return value is equal to PS_ERR_DocEncrypted then PXCV_CheckPassword and PXCV_FinishReadDocument must be used to complete the reading and parsing of the document.

 

Comments

 

Memory blocks are passed to the function and should not be released until the function PXCV_Delete has been called.