Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.


Code Block
languagecpp
titleC++
uint64 memoryLimit = 8ULL * 1024ULL * 1024ULL * 1024ULL; // 8GB Memory
uint64 diskLimit = 100ULL * 1024ULL * 1024ULL * 1024ULL; // 100GB Disk

IJawsMakoPtr jawsMako = IJawsMako::create(".", "", "", CTemporaryStoreParameters(memoryLimit, diskLimit));


Code Block
languagec#
titleC#
var memoryLimit = 8UL * 1024UL * 1024UL * 1024UL; // 8GB Memory
var diskLimit = 100UL * 1024UL * 1024UL * 1024UL; // 100GB Disk

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

...