PXCV_Init

<< Click to Display Table of Contents >>

Navigation:  Functions >

PXCV_Init


 

pdf-xchange-editor-simple-sdk_100x100 PXCV_Init

 


 

PXCV_Init creates new PDF objects that the majority of functions in the PDF_XChange Editor Simple SDK require.

 

HRESULT  PXCV_Init(

     PXVDocumentpDoc,

     LPCSTR Key,

     LPCSTR DevCode

);

 

Parameters

 

pDoc

Pointer to a PXVDocument variable that will receive the PDF object.

 

Key

[in] Pointer to a null-terminated string that contains the license key. This parameter can be set to NULL, in which case the library will operate in evaluation mode. (Permanent watermarks will be printed on all output).

 

DevCode

[in] Pointer to a null-terminated string that contains the developer code. If this parameter is absent/invalid, then demo labels will be added to all generated pages. Please note that pDevCode is only needed when the older style license keys are used. If a new style of key is being used then the pDevCode parameter should be NULL or just an empty string. This is because the new style keys include the information necessary for the pDevCode parameter, but we must retain the property as there are still users who have the older style license keys.

 

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

 

Return Values

 

If the function succeeds then the return value is DS_OK, and a variable pointer to pDoc will contain the valid PDF object.

 

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

 

Example (C++)

 

PXVDocument   hDocument = NULL;

// Please note - RegCode and DevCode are case sensitive

LPCSTR regcode = "<Your serial/keycode code here>";

LPCSTR devcode = "<Your developer's code here>";

HRESULT res = PXCV_Init(&hDocumentregcodedevcode);

if (IS_DS_FAILED(res))

    return res;

...

PXCV_Delete(hDocument);