We have learned from the  documentation that various factors influence memory requirements. Can you tell us which ones have a stronger influence and which ones have a weaker influence?
Our documents (based on Word mail merge files) are only a few pages long, usually contain only one image (logo) per page and have embedded fonts. We need PDF-A/2a as output format. As our application runs on IBMi, we have tight memory restrictions and need to assess whether further measures are necessary to reduce memory requirements.
             
            
              
              
              
            
            
                
                
              
           
          
            
            
              @sabinestache
When creating PDFs from Word mail merge templates, several factors can influence memory usage. Here are the key drivers:
- 
Document Complexity: The complexity of the content, such as embedded fonts and images, can significantly impact memory usage. Even short documents can require additional memory for rendering embedded fonts. 
- 
Image Size and Format: The size and format of images (e.g., logos) can also affect memory consumption. Larger images or certain formats may require more memory to process. 
- 
Mail Merge Data Size: The amount of data being merged can influence memory requirements. Larger datasets will necessitate more memory during the merge process. 
- 
Output Format: Generating PDF/A/2a can be more memory-intensive than standard PDF due to additional compliance requirements. 
To manage memory usage effectively, consider the following strategies:
- Optimize Images: Use smaller, optimized images to reduce memory consumption.
- Limit Embedded Fonts: If possible, limit the use of embedded fonts or use standard fonts that do not require embedding.
- Test with Sample Data: Run tests with varying sizes of mail merge data to assess memory usage and identify thresholds.
By understanding these factors, you can better evaluate whether additional measures are necessary to reduce memory requirements in your application running on IBMi.
             
            
              
              
              
            
            
                
                
              
           
          
            
            
              @sabinestache Regarding converting large DOCX documents to PDF. Memory consumed by Aspose.Words upon conversion depends on many factors. The following article answers some questions:
https://docs.aspose.com/words/net/memory-requirements/ 
For reducing memory usage upon processing large documents, you can try using LoadOptions.TempFolder, SaveOptions.TempFolder and SaveOptions.MemoryOptimization properties.