Page tree
Skip to end of metadata
Go to start of metadata

Mako uses sensible defaults for memory and disk allocation to the Jaws instance that it uses for PDF input, rendering and PostScript output that will work for ~99% of cases. Should an out-of-memory occur, it may be necessary to adjust these values. The following code snippet shows how this is done.


C++
uint64 memoryLimit = 8ULL * 1024ULL * 1024ULL * 1024ULL; // 8GB Memory
uint64 diskLimit = 100ULL * 1024ULL * 1024ULL * 1024ULL; // 100GB Disk

IJawsMakoPtr jawsMako = IJawsMako::create(".", "", "", CTemporaryStoreParameters(memoryLimit, diskLimit));
C#
var memoryLimit = 8UL * 1024UL * 1024UL * 1024UL; // 8GB Memory
var diskLimit = 100UL * 1024UL * 1024UL * 1024UL; // 100GB Disk

var jawsMako = IJawsMako.create(".", "", "", new CTemporaryStoreParameters(memoryLimit, diskLimit));
  • No labels