HowTo:Global OutOfMemory
From PdfsamWiki
Depending on how you run pdfsam, a fixed amount of memory is available to the application, you can find how much is this amount looking at the about panel.
If you have to deal with big pdf documents, the standard memory could be not enough and this is when the OutOfMemory error shows up. You can rise this amount to minimize the chance of getting this error. There are different ways to do that, depending on how you run pdfsam.
Contents |
Java command line
You can run pdfsam with the following command:
java -Xmx512m -jar pdfsam-2.0.0.jar
where the 512m stands for the megabytes of memory
Provided script on Windows
You can find a script file (run.bat) in the bin subdirectory of your pdfsam installation directory. Open the file with a text editor and modify the line
set JAVA_OPTS= -Xmx256m
setting the desired amount of memory, save it and run pdfsam double clicking the script.
Provided script on Linux
You can find a script file (run.sh) in the bin subdirectory of your pdfsam installation directory. Open the file with a text editor and modify the line
JAVA_OPTS="-Xmx256m"
setting the desired amount of memory, save it and run pdfsam using the script.
Windows shortcut
You can modify the Windows start menu short cut.
Start->programs->PDF Split And Merge->pdfsam
Right click on it and select 'Properties'. Modify the destination adding the desired amount of memory.



