Package com.ironsoftware.ironpdf
Class Settings
- java.lang.Object
- 
- com.ironsoftware.ironpdf.Settings
 
- 
 public final class Settings extends Object Important global settings for configuration of IronPDF for Java
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSettings.ChromeGpuModesChrome GPU hardware utilization when rendering HTML to PDF
 - 
Constructor SummaryConstructors Constructor Description Settings()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static PathgetChromeBrowserCachePath()Disk cache path for Chrome browser instances default nullstatic intgetChromeBrowserLimit()Get Maximum number of concurrent browsers when using the Chrome renderer default is 30static Settings.ChromeGpuModesgetChromeGpuMode()Chrome renderer GPU compatibility mode.static StringgetIronPdfEngineHost()Get IronPDF engine host string.static intgetIronPdfEnginePort()Get IronPdf engine port int.static intgetIronPdfEngineTimeout()A Timeout (in seconds) to wait for any response from IronPdfEngine default 120 secondsstatic StringgetIronPdfEngineVersion()Gets IronPDF engine version.static PathgetIronPdfEngineWorkingDirectory()Gets path to IronPDF engine working directory.static PathgetLogPath()Gets IronPDF engine log file path.static PathgetTempFolderPath()Get temp folder path.static booleanisAutoInstallDependency()If true The necessary package dependencies for IronPDF rendering will we automatically installed to Docker and Debian / Ubuntu Linux deployments.static booleanisDebug()Is debug boolean.static booleanisSingleProcess()SingleProcess mode Forces Chrome renderer to perform everything in the current process, rather than using subprocesses default is falsestatic voidsetAutoInstallDependency(boolean isAutoInstallDependency)If true The necessary package dependencies for IronPDF rendering will we automatically installed to Docker and Debian / Ubuntu Linux deployments.static voidsetChromeBrowserCachePath(Path chromeBrowserCachePath)Disk cache path for Chrome browser instances default nullstatic voidsetChromeBrowserLimit(int chromeBrowserLimit)Set Maximum number of concurrent browsers when using the Chrome renderer default is 30static voidsetChromeGpuMode(Settings.ChromeGpuModes chromeGpuMode)Chrome renderer GPU compatibility mode.static voidsetDebug(boolean isDebug)Enable or disable debug mode.static voidsetIronPdfEngineHost(String host)Set IronPDF engine host.static voidsetIronPdfEnginePort(int port)Set IronPdf engine port.static voidsetIronPdfEngineTimeout(int ironPdfEngineTimeout)A Timeout (in seconds) to wait for any response from IronPdfEngine default 120 secondsstatic voidsetIronPdfEngineWorkingDirectory(Path path)Sets path to IronPDF engine working directory.static voidsetLogPath(Path path)Sets IronPDF engine log file path.static voidsetSingleProcess(boolean isSingleProcess)SingleProcess mode Forces Chrome renderer to perform everything in the current process, rather than using subprocesses default is falsestatic voidsetTempFolderPath(Path tempFolderPath)Set temp folder path.static voiduseIronPdfEngineDocker()Use IronPDF engine docker.static voiduseIronPdfEngineDocker(int port)Use IronPDF engine docker.
 
- 
- 
- 
Method Detail- 
getIronPdfEngineVersionpublic static String getIronPdfEngineVersion() Gets IronPDF engine version.- Returns:
- The current IronPdfEngine version
 
 - 
isDebugpublic static boolean isDebug() Is debug boolean.- Returns:
- true if debug mode is enabled.
 
 - 
setDebugpublic static void setDebug(boolean isDebug) Enable or disable debug mode.***Recommended to set before calling any IronPdf function.*** - Parameters:
- isDebug- is debug enabled
 
 - 
getIronPdfEngineWorkingDirectorypublic static Path getIronPdfEngineWorkingDirectory() Gets path to IronPDF engine working directory. default is current directory. If IronPdfEngine binary does not exist, We will download automatically to this folder.- Returns:
- custom IronPdfEngine folder.
 
 - 
setIronPdfEngineWorkingDirectorypublic static void setIronPdfEngineWorkingDirectory(Path path) throws IOException Sets path to IronPDF engine working directory. default is current directory. If IronPdfEngine binary does not exist, We will download automatically to this folder.***Recommended to set before calling any IronPdf function.*** - Parameters:
- path- the path
- Throws:
- IOException- the io exception
 
 - 
getLogPathpublic static Path getLogPath() Gets IronPDF engine log file path.- Returns:
- the log file path
 
 - 
setLogPathpublic static void setLogPath(Path path) Sets IronPDF engine log file path.***Recommended to set before calling any IronPdf function.*** - Parameters:
- path- the log file path
 
 - 
setIronPdfEngineHostpublic static void setIronPdfEngineHost(String host) Set IronPDF engine host.- Parameters:
- host- the host
 
 - 
getIronPdfEngineHostpublic static String getIronPdfEngineHost() Get IronPDF engine host string.- Returns:
- the host string
 
 - 
setIronPdfEnginePortpublic static void setIronPdfEnginePort(int port) Set IronPdf engine port. Default port will pick automatically.- Parameters:
- port- the port
 
 - 
getIronPdfEnginePortpublic static int getIronPdfEnginePort() Get IronPdf engine port int. Default port will pick automatically.- Returns:
- the port int
 
 - 
setTempFolderPathpublic static void setTempFolderPath(Path tempFolderPath) Set temp folder path.- Parameters:
- tempFolderPath- the temp folder path
 
 - 
getTempFolderPathpublic static Path getTempFolderPath() Get temp folder path.- Returns:
- the path
 
 - 
useIronPdfEngineDockerpublic static void useIronPdfEngineDocker() Use IronPDF engine docker. All PDF operation will happen on the connected IronPDF engine docker. This setting required IronPdfEngine is already up and running in docker. (with default port) License key need to set as a Docker environment.Get IronPDF engine docker @see official-ironpdfengine-docker} 
 - 
useIronPdfEngineDockerpublic static void useIronPdfEngineDocker(int port) Use IronPDF engine docker. All PDF operation will happen on the connected IronPDF engine docker. This setting required IronPdfEngine is already up and running in docker. (on the given port) License key need to set as a Docker environment.Get IronPDF engine docker @see official-ironpdfengine-docker} - Parameters:
- port- Set the port for IronPdfEngineDocker to listen on
 
 - 
isSingleProcesspublic static boolean isSingleProcess() SingleProcess mode Forces Chrome renderer to perform everything in the current process, rather than using subprocesses default is false- Returns:
- true if SingleProcess mode is enabled.
 
 - 
setSingleProcesspublic static void setSingleProcess(boolean isSingleProcess) SingleProcess mode Forces Chrome renderer to perform everything in the current process, rather than using subprocesses default is false- Parameters:
- isSingleProcess- is SingleProcess enabled
 
 - 
setChromeBrowserLimitpublic static void setChromeBrowserLimit(int chromeBrowserLimit) Set Maximum number of concurrent browsers when using the Chrome renderer default is 30- Parameters:
- chromeBrowserLimit-
 
 - 
getChromeBrowserLimitpublic static int getChromeBrowserLimit() Get Maximum number of concurrent browsers when using the Chrome renderer default is 30- Returns:
- chromeBrowserLimit
 
 - 
getChromeBrowserCachePathpublic static Path getChromeBrowserCachePath() Disk cache path for Chrome browser instances default null- Returns:
- chromeBrowserCachePath.
 
 - 
setChromeBrowserCachePathpublic static void setChromeBrowserCachePath(Path chromeBrowserCachePath) throws IOException Disk cache path for Chrome browser instances default null- Parameters:
- chromeBrowserCachePath-
- Throws:
- IOException- the io exception
 
 - 
getChromeGpuModepublic static Settings.ChromeGpuModes getChromeGpuMode() Chrome renderer GPU compatibility mode. In special environment like Docker or Cloud Service please use ChromeGpuModes.Disabled default null- Returns:
- chromeBrowserCachePath.
 
 - 
setChromeGpuModepublic static void setChromeGpuMode(Settings.ChromeGpuModes chromeGpuMode) throws IOException Chrome renderer GPU compatibility mode. In special environment like Docker or Cloud Service please use ChromeGpuModes.Disabled default Disabled- Parameters:
- chromeGpuMode-
- Throws:
- IOException- the io exception
 
 - 
isAutoInstallDependencypublic static boolean isAutoInstallDependency() If true The necessary package dependencies for IronPDF rendering will we automatically installed to Docker and Debian / Ubuntu Linux deployments. This will take a few minutes the next time you run IronPDF. Set this to false if manual Docker / Linux setup is more convenient: more info default is true- Returns:
- true if AutoInstallDependency mode is enabled.
 
 - 
setAutoInstallDependencypublic static void setAutoInstallDependency(boolean isAutoInstallDependency) If true The necessary package dependencies for IronPDF rendering will we automatically installed to Docker and Debian / Ubuntu Linux deployments. This will take a few minutes the next time you run IronPDF. Set this to false if manual Docker / Linux setup is more convenient: more info default is true- Parameters:
- isAutoInstallDependency- is SingleProcess enabled
 
 - 
getIronPdfEngineTimeoutpublic static int getIronPdfEngineTimeout() A Timeout (in seconds) to wait for any response from IronPdfEngine default 120 seconds- Returns:
- IronPdfEngineTimeout (seconds)
 
 - 
setIronPdfEngineTimeoutpublic static void setIronPdfEngineTimeout(int ironPdfEngineTimeout) A Timeout (in seconds) to wait for any response from IronPdfEngine default 120 seconds- Parameters:
- ironPdfEngineTimeout- (seconds)
 
 
- 
 
-