To reduce the memory consumption caused by converting documents referencing many or large images, set the processing preference PROCESSING_PREFERENCES_SAVE_MEMORY_IMAGES:


Java

config.setProcessingPreferences(ProcessingPreferences.SAVE_MEMORY_IMAGES);

C#

config.ProcessingPreferences = new List<ProcessingPreferences>
{
    ProcessingPreferences.SAVE_MEMORY_IMAGES
};

PHP

$config["processingPreferences"] = array( ProcessingPreferences::SAVE_MEMORY_IMAGES );

JavaScript/Node.js

config.processingPreferences = [ PDFreactor.ProcessingPreferences.SAVE_MEMORY_IMAGES ];

Python

config["processingPreferences"] = [ PDFreactor.ProcessingPreferences.SAVE_MEMORY_IMAGES ];

Ruby

config["processingPreferences"] = [ PDFreactor::ProcessingPreferences::SAVE_MEMORY_IMAGES ];

Perl

$config["processingPreferences"] = [ PDFreactor::ProcessingPreferences->SAVE_MEMORY_IMAGES ];

CLI

--processingPreferences "SAVE_MEMORY_IMAGES"
REST
{ "processingPreferences": [ "SAVE_MEMORY_IMAGES" ]}


This setting will have an impact on the performance and should therefore only be used when necessary.