com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class MemoryExtender



  • public class MemoryExtender
    extends Object
    Represents MemoryExtender class Using large files on a system with limited heap memory, can be enabled to use disk space as a temporary swap memory.
    • Constructor Detail

      • MemoryExtender

        public MemoryExtender()
    • Method Detail

      • isSwapEnabled

        public static boolean isSwapEnabled()
        Is enabled to use disk space as a temporary swap memory. Default value is FALSE
        Returns:
        boolean value
      • isOptimizedMemoryStreamByDefault

        public static boolean isOptimizedMemoryStreamByDefault()
        Is enabled to use OptimizedMemoryStream as default memory storage. Required for work with large documents over 2 Gb. Default value is FALSE
        Returns:
        boolean value
      • isOptimizedMemoryStreamByDefault

        public static void isOptimizedMemoryStreamByDefault(boolean value)
        Is enabled to use OptimizedMemoryStream as default memory storage. Required for work with large documents over 2 Gb. Default value is FALSE
        Parameters:
        value - boolean value
      • setSwapEnabled

        public static void setSwapEnabled(boolean value)
        Set flag whether disk space is enabled to use as a temporary swap memory.
        Parameters:
        value - boolean value
      • isSkipHeavyContentEnabled

        public static boolean isSkipHeavyContentEnabled()
        Is enabled to skip objects with high memory consumption in rendering with lack of heap memory. Default value is FALSE
        Returns:
        boolean value
      • setSkipHeavyContentEnabled

        public static void setSkipHeavyContentEnabled(boolean value)
        Set flag to enable to skip objects with high memory consumption in rendering with lack of heap memory.
        Parameters:
        value - boolean value
      • getElementRenderingTimeout

        public static int getElementRenderingTimeout()
        The maximum time for rendering single element used in page to image conversion. Default value 10000 milliseconds. Used only when isSkipHeavyContentEnabled() == true
        Returns:
        int value Number of milliseconds
      • setElementRenderingTimeout

        public static void setElementRenderingTimeout(int value)
        The maximum time for rendering single element used in page to image conversion. Default value 10000 milliseconds Used only when isSkipHeavyContentEnabled() == true
        Parameters:
        value - int value Number of milliseconds
      • setCallBackPageImage

        public static void setCallBackPageImage(MemoryExtender.CallBackPageImage callBackPageImage_)
        Apply the new custom cache analyzer.
        Parameters:
        callBackPageImage_ - CallBackPageImage object
      • isEnabledMultiPageImageCache

        public static boolean isEnabledMultiPageImageCache()
        Get the status for EnabledMultiPageImageCache field
        Returns:
        boolean value
      • setEnableMultiPageCache

        public static void setEnableMultiPageCache(boolean enableMultiPageImageCache_)
        Set the new status for EnabledMultiPageImageCache field
        Parameters:
        enableMultiPageImageCache_ - boolean value