Package com.inet.pdfc
Enum Class PDFC.PROP
- All Implemented Interfaces:
CommandLineParameter
,Serializable
,Comparable<PDFC.PROP>
,Constable
- Enclosing class:
- PDFC
Enum of all known command line switches and options, along with their long
and short for and info about their default value and whether they require a
parameter
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSwitch to activate a license or activation keyOption to make pages without diffs in pdf-export to be collapsedSwitch to set the configuration fileToggle the font replacement and embedding for system font references when exporting to PDFDefines the export format in case export is 'report' or the -e option is setDefault export PDF by difference, if no difference available it doesn't export.Boolean switch to enable or disable the header/footer in print, PDF and PNG.Defines which filters may show highlights in the print, PDF or PNG output.Switch to print debug and support informations to the consoleDeprecated.Option to enable the creation of differences imagesOption to enable the creation of difference images for the pages of the first PDFOption to enable the creation of difference images for the pages of the second PDFOption to enable the PDF report export.Option to enable the generation of original page imagesOption to enable the print exportOption to enable the creation of XOR imagesBoolean switch to enable or disable the overlap mode in print, PDF and PNG.Sets the password for the first PDF fileSets the password for the second PDF fileParameter for the export presenters to be used.Boolean switch to retry failed comparisons in batch mode.Switch to set the root folder for the report and difference imagesBoolean switch to enable or disable 'scale to fit page' in print, PDF and PNG.The sides to export, when using print, PDF or PNG.TheDiffGroup.GroupType
s to show in the result. -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(PDFC.ComparisonParameters parameters, String optionalParameter) Executes the parameter to modify the comparison configuration accordingly.Returns a string to attach to the list of commands of the tool.getKey()
Returns the long/full key of the parameter.Returns the message in caseCommandLineParameter.hasValue()
is true but no argument was passed.char
Returns the single character short cut switch, use a space if no shortcut can be used.boolean
hasValue()
Returns whether the parameter requires an additional argument like a path.static PDFC.PROP
Returns the enum constant of this class with the specified name.static PDFC.PROP[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACTIVATE
Switch to activate a license or activation key -
INFO
Switch to print debug and support informations to the console -
REUQESTANDACTIVATETRIAL
-
CONFIG
Switch to set the configuration file -
ROOT
Switch to set the root folder for the report and difference images -
PRESENTERS
Parameter for the export presenters to be used. Console is always enabled. Values: List if the export presenter names, see EXPORT constants -
OPTION_PRINT
Option to enable the print export -
OPTION_EXPORT
Option to enable the PDF report export. -
EXPORT_FORMAT
Defines the export format in case export is 'report' or the -e option is set -
EXPORT_PW
-
EXPORT_FONT_EMBEDDING
Toggle the font replacement and embedding for system font references when exporting to PDF -
COLLAPSE
Option to make pages without diffs in pdf-export to be collapsed -
TYPES
TheDiffGroup.GroupType
s to show in the result. All are enabled by default. Values: List of TYPE_ contants -
HIGHLIGHTS
Defines which filters may show highlights in the print, PDF or PNG output. By default, all are disabled. -
SIDES
The sides to export, when using print, PDF or PNG. Values: left, right or both. Default isboth
-
HEADER
Boolean switch to enable or disable the header/footer in print, PDF and PNG. Default istrue
-
SCALE
Boolean switch to enable or disable 'scale to fit page' in print, PDF and PNG. Default isfalse
-
OVERLAP
Boolean switch to enable or disable the overlap mode in print, PDF and PNG. Default isfalse
-
ONLYDIFFERENCES
Deprecated.As of i-net PDFC 5.0, use instead seeEXPORTALWAYS
Boolean switch, iftrue
the export PDF and PNGs will only be created in case of differences. Default istrue
-
EXPORTALWAYS
Default export PDF by difference, if no difference available it doesn't export. Switch change the condition and export everytime. Replace the old parameter "exportonlyondifferences" and the config.xml property "PDFALWAYS" If both command parameter available ('exportonlyondifferences' and 'exportAlways'), the new parameter will be taken. This parameter is equivalent with -exportonlyondifferences=false -
RETRY_BATCH
Boolean switch to retry failed comparisons in batch mode. This may help if the parallel execution of the comparisons causes memory errors. -
OPTION_XOR_IMAGES
Option to enable the creation of XOR images -
OPTION_ORIGINAL_IMAGES
Option to enable the generation of original page images -
OPTION_CREATE_FIRST_IMAGES
Option to enable the creation of difference images for the pages of the first PDF -
OPTION_CREATE_SECOND_IMAGES
Option to enable the creation of difference images for the pages of the second PDF -
OPTION_CREATE_DIFF_IMAGES
Option to enable the creation of differences images -
PASSWORD1
Sets the password for the first PDF file -
PASSWORD2
Sets the password for the second PDF file
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getKey
Returns the long/full key of the parameter.- Specified by:
getKey
in interfaceCommandLineParameter
- Returns:
- the long/full key of the parameter, may be
null
if not used
-
getShortcut
public char getShortcut()Returns the single character short cut switch, use a space if no shortcut can be used. Short cuts can be combined into a single parameter. It's recommended to only provide a shortcut if no parameter is required since the additional value would be ambiguous in case of combined parameters.- Specified by:
getShortcut
in interfaceCommandLineParameter
- Returns:
- the single character short cut switch or 0x00 if no shortcut is provided
-
hasValue
public boolean hasValue()Returns whether the parameter requires an additional argument like a path.- Specified by:
hasValue
in interfaceCommandLineParameter
- Returns:
true
if the next parameter is the argument to this parameter
-
getMissingArgMsg
Returns the message in caseCommandLineParameter.hasValue()
is true but no argument was passed. IfCommandLineParameter.hasValue()
returnsfalse
, this method may returnnull
.- Specified by:
getMissingArgMsg
in interfaceCommandLineParameter
- Returns:
- the message in case
CommandLineParameter.hasValue()
is true but no argument was passed
-
execute
Executes the parameter to modify the comparison configuration accordingly.- Specified by:
execute
in interfaceCommandLineParameter
- Parameters:
parameters
- the configuration instance for the comparison to run after all command line parameters have been evaluated.optionalParameter
- ifCommandLineParameter.hasValue()
yieldstrue
, the caller will pass the additional value in this parameter
-
getHelpMessage
Returns a string to attach to the list of commands of the tool. Must not have a leading or tailing break character! Use the default locale of the JVM for the translation.- Specified by:
getHelpMessage
in interfaceCommandLineParameter
- Returns:
- a string to attach to the list of commands of the tool or
null
for no help content
-
EXPORTALWAYS