Package com.ironsoftware.ironpdf
Class Settings
java.lang.Object
com.ironsoftware.ironpdf.Settings
Important global settings for configuration of IronPDF for Java
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Get IronPDF engine host string.static int
Get IronPdf engine port int.static String
Gets IronPDF engine version.static Path
Gets path to IronPDF engine working directory.static Path
Gets IronPDF engine log file path.static Path
Get temp folder path.static boolean
isDebug()
Is debug boolean.static void
setDebug
(boolean isDebug) Enable or disable debug mode.static void
setIronPdfEngineHost
(String host) Set IronPDF engine host.static void
setIronPdfEnginePort
(int port) Set IronPdf engine port.static void
Sets path to IronPDF engine working directory.static void
setLogPath
(Path path) Sets IronPDF engine log file path.static void
setTempFolderPath
(Path tempFolderPath) Set temp folder path.static void
Use IronPDF engine docker.static void
useIronPdfEngineDocker
(int port) Use IronPDF engine docker.
-
Constructor Details
-
Settings
public Settings()
-
-
Method Details
-
getIronPdfEngineVersion
Gets IronPDF engine version.- Returns:
- The current IronPdfEngine version
-
isDebug
public static boolean isDebug()Is debug boolean.- Returns:
- true if debug mode is enabled.
-
setDebug
public static void setDebug(boolean isDebug) Enable or disable debug mode.***Please set before calling any IronPdf function.***
- Parameters:
isDebug
- the is debug enabled
-
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.
-
setIronPdfEngineWorkingDirectory
Sets path to IronPDF engine working directory. default is current directory. If IronPdfEngine binary does not exist, We will download automatically to this folder.***Please set before calling any IronPdf function.***
- Parameters:
path
- the path- Throws:
IOException
- the io exception
-
getLogPath
Gets IronPDF engine log file path.- Returns:
- the log file path
-
setLogPath
Sets IronPDF engine log file path.***Please set before calling any IronPdf function.***
- Parameters:
path
- the log file path
-
setIronPdfEngineHost
Set IronPDF engine host.- Parameters:
host
- the host
-
getIronPdfEngineHost
Get IronPDF engine host string.- Returns:
- the host string
-
setIronPdfEnginePort
public static void setIronPdfEnginePort(int port) Set IronPdf engine port. Default port will pick automatically.- Parameters:
port
- the port
-
getIronPdfEnginePort
public static int getIronPdfEnginePort()Get IronPdf engine port int. Default port will pick automatically.- Returns:
- the port int
-
setTempFolderPath
Set temp folder path.- Parameters:
tempFolderPath
- the temp folder path
-
getTempFolderPath
Get temp folder path.- Returns:
- the path
-
useIronPdfEngineDocker
public 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}
-
useIronPdfEngineDocker
public 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
-