Do you own a Debenu Quick PDF Library 12/11/10/9/8/7? Upgrade to Debenu Quick PDF Library 13!

Foxit Quick PDF Library

Frequently Asked Question:

Return to FAQ Index

Info about DARenderPageToString function

Question

I'm using the DARenderPageToString function which returns a pointer to the rendered data.

I cannot find any documentation about the owner of that data. Do i have to free that buffer after using it.

Answer

The DLL maintains a block of memory for each instance of the library that is created.

When a Quick PDF Library function that returns a string is called, this internal buffer is resized and the function result is put into the string.

If a different function is called, the result of the prior function is lost.

When the Quick PDF Library instance is freed (using ReleaseLibrary) the memory used by the buffer is freed.

So the developer shouldn't have to free any memory used by Quick PDF Library.

The ReleaseLibrary function should be called to release any memory used by Quick PDF. If that isn't done the memory will be freed when the DLL is unloaded.

It sounds like you are trying to reduce the memory used by Quick PDF for a very large rendering operation. Rendering to a format like PNG rather than BMP would reduce the data duplication.


© 2015 Debenu & Foxit. All rights reserved. AboutBuyContactBlogNewsletterSupportFAQProduct UpdatesForum