public final class Settings extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Settings.ChromeGpuModes
Chrome GPU hardware utilization when rendering HTML to PDF
|
| Constructor and Description |
|---|
Settings() |
| Modifier and Type | Method and Description |
|---|---|
static Path |
getChromeBrowserCachePath()
Disk cache path for Chrome browser instances
default null
|
static int |
getChromeBrowserLimit()
Get Maximum number of concurrent browsers when using the Chrome renderer
default is 30
|
static Settings.ChromeGpuModes |
getChromeGpuMode()
Chrome renderer GPU compatibility mode.
|
static IronPdfEngineConnection |
getConnectionMode()
Get IronPdfEngineConnection to set up various connection modes for IronPdfEngine.
|
static String |
getIronPdfEngineHost()
Deprecated.
This method is obsolete. Use
getConnectionMode() instead. |
static int |
getIronPdfEnginePort()
Deprecated.
This method is obsolete. Use
getConnectionMode() instead. |
static int |
getIronPdfEngineTimeout()
A Timeout (in seconds) to wait for any response from IronPdfEngine
default 120 seconds
|
static String |
getIronPdfEngineVersion()
Gets IronPDF engine version.
|
static Path |
getIronPdfEngineWorkingDirectory()
Gets path to IronPDF engine working directory.
|
static Path |
getLogPath()
Gets IronPDF engine log file path.
|
static Path |
getTempFolderPath()
Get temp folder path.
|
static boolean |
isAutoInstallDependency()
If true The necessary package dependencies for IronPDF rendering will we automatically installed to
Docker and Debian / Ubuntu Linux deployments.
|
static boolean |
isDebug()
Is debug boolean.
|
static boolean |
isSingleProcess()
SingleProcess mode Forces Chrome renderer to perform everything in the current process, rather than using subprocesses
default is false
|
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.
|
static void |
setChromeBrowserCachePath(Path chromeBrowserCachePath)
Disk cache path for Chrome browser instances
default null
|
static void |
setChromeBrowserLimit(int chromeBrowserLimit)
Set Maximum number of concurrent browsers when using the Chrome renderer
default is 30
|
static void |
setChromeGpuMode(Settings.ChromeGpuModes chromeGpuMode)
Chrome renderer GPU compatibility mode.
|
static void |
setConnectionMode(IronPdfEngineConnection ironPdfEngineConnection)
Set IronPdfEngineConnection to set up various connection modes for IronPdfEngine.
|
static void |
setDebug(boolean isDebug)
Enable or disable debug mode.
|
static void |
setIronPdfEngineHost(String host)
Deprecated.
This method is obsolete. Use
setConnectionMode(IronPdfEngineConnection) instead. |
static void |
setIronPdfEnginePort(int port)
Deprecated.
This method is obsolete. Use
setConnectionMode(IronPdfEngineConnection) instead. |
static void |
setIronPdfEngineTimeout(int ironPdfEngineTimeout)
A Timeout (in seconds) to wait for any response from IronPdfEngine
default 120 seconds
|
static void |
setIronPdfEngineWorkingDirectory(Path path)
Sets path to IronPDF engine working directory.
|
static void |
setLogPath(Path path)
Sets IronPDF engine log file path.
|
static void |
setSingleProcess(boolean isSingleProcess)
SingleProcess mode Forces Chrome renderer to perform everything in the current process, rather than using subprocesses
default is false
|
static void |
setTempFolderPath(Path tempFolderPath)
Set temp folder path.
|
static void |
useIronPdfEngineDocker()
Deprecated.
This method is obsolete. Use
setConnectionMode(IronPdfEngineConnection) instead. |
static void |
useIronPdfEngineDocker(int port)
Deprecated.
|
public static String getIronPdfEngineVersion()
public static IronPdfEngineConnection getConnectionMode()
The supported connection modes are:
- SUBPROCESS: (Default) Launch a local IronPdfEngine as a subprocess.
- HOST_PORT: Connect to IronPdfEngine using a host and port.
- TARGET: Connect to IronPdfEngine using a target string (e.g., DNS-based resolution).
- OFFICIAL_CLOUD: Connect to an official cloud-based IronPdfEngine. (require subscription License)
- CUSTOM: Connect to IronPdfEngine using a custom gRPC connection.
Example usage:
IronPdfEngineConnection settings = IronPdfEngineConnection.configure()
.withHostPort("localhost", 33350);
Get IronPDF engine docker @see official-ironpdfengine-docker
public static void setConnectionMode(IronPdfEngineConnection ironPdfEngineConnection)
The supported connection modes are:
- SUBPROCESS: Launch a local IronPdfEngine as a subprocess.
- HOST_PORT: Connect to IronPdfEngine using a host and port.
- TARGET: Connect to IronPdfEngine using a target string (e.g., DNS-based resolution).
- OFFICIAL_CLOUD: (Default for IronPDF for Java Cloud) Connect to an official cloud-based IronPdfEngine. (require subscription License)
- CUSTOM: Connect to IronPdfEngine using a custom gRPC connection.
Example usage:
IronPdfEngineConnection settings = IronPdfEngineConnection.configure()
.withHostPort("localhost", 33350);
Get IronPDF engine docker @see official-ironpdfengine-docker
public static int getIronPdfEngineTimeout()
public static void setIronPdfEngineTimeout(int ironPdfEngineTimeout)
ironPdfEngineTimeout - (seconds)public static boolean isDebug()
***Only works with IronPdfEngineConnection.withSubprocess()
public static void setDebug(boolean isDebug)
***Needed to set before calling any IronPdf function.***
***Only works with IronPdfEngineConnection.withSubprocess()
isDebug - is debug enabledpublic static Path getIronPdfEngineWorkingDirectory()
***Only works with IronPdfEngineConnection.withSubprocess()
public static void setIronPdfEngineWorkingDirectory(Path path) throws IOException
***Needed to set before calling any IronPdf function.***
***Only works with IronPdfEngineConnection.withSubprocess()
path - the pathIOException - the io exceptionpublic static Path getLogPath()
***Only works with IronPdfEngineConnection.withSubprocess()
public static void setLogPath(Path path)
***Recommended to set before calling any IronPdf function.***
***Only works with IronPdfEngineConnection.withSubprocess()
path - the log file pathpublic static void setTempFolderPath(Path tempFolderPath)
***Only works with IronPdfEngineConnection.withSubprocess()
tempFolderPath - the temp folder pathpublic static Path getTempFolderPath()
***Only works with IronPdfEngineConnection.withSubprocess()
public static boolean isSingleProcess()
***Only works with IronPdfEngineConnection.withSubprocess()
public static void setSingleProcess(boolean isSingleProcess)
***Only works with IronPdfEngineConnection.withSubprocess()
isSingleProcess - is SingleProcess enabledpublic static void setChromeBrowserLimit(int chromeBrowserLimit)
***Only works with IronPdfEngineConnection.withSubprocess()
chromeBrowserLimit - public static int getChromeBrowserLimit()
***Only works with IronPdfEngineConnection.withSubprocess()
public static Path getChromeBrowserCachePath()
***Only works with IronPdfEngineConnection.withSubprocess()
public static void setChromeBrowserCachePath(Path chromeBrowserCachePath) throws IOException
***Only works with IronPdfEngineConnection.withSubprocess()
chromeBrowserCachePath - IOException - the io exceptionpublic static Settings.ChromeGpuModes getChromeGpuMode()
***Only works with IronPdfEngineConnection.withSubprocess()
public static void setChromeGpuMode(Settings.ChromeGpuModes chromeGpuMode) throws IOException
***Only works with IronPdfEngineConnection.withSubprocess()
chromeGpuMode - IOException - the io exceptionpublic static boolean isAutoInstallDependency()
***Only works with IronPdfEngineConnection.withSubprocess()
public static void setAutoInstallDependency(boolean isAutoInstallDependency)
***Only works with IronPdfEngineConnection.withSubprocess()
isAutoInstallDependency - is SingleProcess enabled@Deprecated public static void setIronPdfEngineHost(String host)
setConnectionMode(IronPdfEngineConnection) instead.@Deprecated public static String getIronPdfEngineHost()
getConnectionMode() instead.@Deprecated public static void setIronPdfEnginePort(int port)
setConnectionMode(IronPdfEngineConnection) instead.@Deprecated public static int getIronPdfEnginePort()
getConnectionMode() instead.@Deprecated public static void useIronPdfEngineDocker()
setConnectionMode(IronPdfEngineConnection) instead.@Deprecated public static void useIronPdfEngineDocker(int port)
Copyright © 2022–2025 Iron Software. All rights reserved.