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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>PDF</strong> <strong>Library</strong>-specific CallbacksASMemReallocProcASMemReallocProcACCB1 void* ACCB2 ASMemReallocProc (void* clientData, void* p,ASSize_t size);DescriptionCalled when <strong>the</strong> <strong>PDF</strong> <strong>Library</strong> needs <strong>to</strong> reallocate memory. Callback should reallocate <strong>the</strong>requested amount of memory and return it as a void*.ParametersclientDatapsizeA pointer <strong>to</strong> <strong>the</strong> clientData specified in <strong>the</strong>TKAlloca<strong>to</strong>rProcs structure.A pointer <strong>to</strong> memory <strong>to</strong> reallocate.The amount of memory requested.Return ValuePointer <strong>to</strong> allocated block of memory.Header File<strong>PDF</strong>Init.hRelated CallbacksASMemAllocProcASMemAvailProcASMemFreeProcRelated Methods<strong>PDF</strong>LInitExamplevoid* StdMemReallocProc(void* clientData, void* p, ASSize_t size){return realloc(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> 57

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

Saved successfully!

Ooh no, something went wrong!