12.07.2015 Views

PDF Library Supplement to the Core API Reference - Datalogics

PDF Library Supplement to the Core API Reference - Datalogics

PDF Library Supplement to the Core API Reference - Datalogics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>PDF</strong> <strong>Library</strong>-specific CallbacksASMemAllocProcASMemAllocProcACCB1 void* ACCB2 ASMemAllocProc (void* clientData,ASSize_t size);DescriptionCalled when <strong>the</strong> <strong>PDF</strong> <strong>Library</strong> needs <strong>to</strong> allocate memory. Callback should allocate <strong>the</strong>requested amount of memory and return it as a void*.ParametersclientDatasizeThe clientData specified in <strong>the</strong> TKAlloca<strong>to</strong>rProcsstructure.The amount of memory <strong>to</strong> be allocated.Return ValuePointer <strong>to</strong> <strong>the</strong> allocated block of memory.Header File<strong>PDF</strong>Init.hRelated CallbacksASMemAvailProcASMemFreeProcASMemReallocProcRelated Methods<strong>PDF</strong>LInitExamplevoid* StdMemAllocProc(void* clientData, void* p, ASSize_t size){return malloc(p, size);}<strong>PDF</strong> <strong>Library</strong> <strong>Supplement</strong> <strong>to</strong> <strong>the</strong> Acrobat <strong>Core</strong> <strong>API</strong> <strong>Reference</strong> 54

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!