public class WrapperConfig extends Object
| Constructor and Description |
|---|
WrapperConfig()
Deprecated.
Use the constructor specifying the location of wkhtmltopdf. Use the static method findExecutable() if necessary.
|
WrapperConfig(String wkhtmltopdfCommand)
Initialize the configuration based on a provided wkhtmltopdf command to be used
|
| Modifier and Type | Method and Description |
|---|---|
static String |
findExecutable()
Attempts to find the `wkhtmltopdf` executable in the system path.
|
boolean |
getAlwaysPutTocFirst()
Gets if the TOC is always placed first in the command
|
String[] |
getWkhtmltopdfCommandAsArray()
Gets the wkhtmltopdf command as an array to be used while calling wkhtmltopdf
It's default is 'wkhtmltopdf'
|
XvfbConfig |
getXvfbConfig()
Gets the Xvfb configuration
|
boolean |
isXvfbEnabled()
Verify whether the Xvfb support is enabled and configured
|
void |
setAlwaysPutTocFirst(boolean alwaysFirst)
Sets the way TOC locations are determined in the command
|
void |
setWkhtmltopdfCommand(String wkhtmltopdfCommand)
Sets the configuration based on a provided wkhtmltopdf command to be used
|
void |
setXvfbConfig(XvfbConfig xvfbConfig)
Sets the Xvfb configuration
|
String |
toString() |
@Deprecated public WrapperConfig()
public WrapperConfig(String wkhtmltopdfCommand)
wkhtmltopdfCommand - the wkhtmltopdf commandpublic static String findExecutable()
public String[] getWkhtmltopdfCommandAsArray()
public void setWkhtmltopdfCommand(String wkhtmltopdfCommand)
wkhtmltopdfCommand - the wkhtmltopdf commandpublic boolean isXvfbEnabled()
public XvfbConfig getXvfbConfig()
public void setXvfbConfig(XvfbConfig xvfbConfig)
xvfbConfig - the Xvfb configurationpublic void setAlwaysPutTocFirst(boolean alwaysFirst)
alwaysFirst - - desired TOC locationpublic boolean getAlwaysPutTocFirst()
Copyright © 2023. All rights reserved.