Class Configuration.DebugSettings
- Enclosing class:
Configuration
A type containing various options for debugging.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThis is a convenience property that enables the followingConfiguration.DebugSettings
:setAppendLogs
(Boolean appendLogs) Specifies whether the logs will be appended to the resulting PDF.setAttachConfiguration
(Boolean attachConfiguration) Specifies whether the configuration will be attached to the generated PDF.setAttachDocuments
(Boolean attachDocuments) Specifies whether all debug files belonging to the group "documents" will be attached to the generated PDF.setAttachLogs
(Boolean attachLogs) Specifies whether all debug files belonging to the group "logs" will be attached to the generated PDF.setAttachResources
(Boolean attachResources) Specifies whether all debug files belonging to the group "resources" will be attached to the generated PDF.setForceResult
(Boolean forceResult) Forces PDFreactor to return a result, regardless of any exceptions or errors that may have occurred during the conversion.setLocalDirectory
(Path localDirectory) Specifies a local directory where PDFreactor will dump debug files in case an exception occurs during conversion.
-
Constructor Details
-
DebugSettings
public DebugSettings()
-
-
Method Details
-
setAll
This is a convenience property that enables the following
Configuration.DebugSettings
:- Returns:
- The current
Configuration.DebugSettings
instance.
-
setLocalDirectory
Specifies a local directory where PDFreactor will dump debug files in case an exception occurs during conversion.
- Returns:
- The current
Configuration.DebugSettings
instance.
-
setAttachConfiguration
Specifies whether the configuration will be attached to the generated PDF.
- Returns:
- The current
Configuration.DebugSettings
instance.
-
setAttachDocuments
Specifies whether all debug files belonging to the group "documents" will be attached to the generated PDF. Please see the manual for more information.
- Returns:
- The current
Configuration.DebugSettings
instance.
-
setAttachResources
Specifies whether all debug files belonging to the group "resources" will be attached to the generated PDF. Please see the manual for more information.
- Returns:
- The current
Configuration.DebugSettings
instance.
-
setAttachLogs
Specifies whether all debug files belonging to the group "logs" will be attached to the generated PDF. Please see the manual for more information.
- Returns:
- The current
Configuration.DebugSettings
instance.
-
setAppendLogs
Specifies whether the logs will be appended to the resulting PDF.
- Returns:
- The current
Configuration.DebugSettings
instance.
-
setForceResult
Forces PDFreactor to return a result, regardless of any exceptions or errors that may have occurred during the conversion.
If an exception or error occurred during the conversion, its stack trace and the PDFreactor log is written as-is into the result data stream. This means that the resulting document will not be a valid PDF but can be opened with an appropriate text editor to view the log and errors.
- Returns:
- The current
Configuration.DebugSettings
instance.
-