public final class XslFoLoadOptions extends XmlLoadOptions
Represents options for loading/importing XSL-FO file into pdf document.
Modifier and Type | Class and Description |
---|---|
static class |
XslFoLoadOptions.ParsingErrorsHandlingTypes
Source XSLFO document can contain formatting errors.
|
LoadOptions.MarginsAreaUsageModes, LoadOptions.PageSizeAdjustmentModes, LoadOptions.ResourceLoadingResult, LoadOptions.ResourceLoadingStrategy
Constructor and Description |
---|
XslFoLoadOptions()
Creates
XslFoLoadOptions object without xsl data. |
XslFoLoadOptions(InputStream xslStream)
Creates
XslFoLoadOptions object with xsl data. |
XslFoLoadOptions(String xslFile)
Creates
XslFoLoadOptions object with xsl data. |
Modifier and Type | Method and Description |
---|---|
String |
getBasePath()
The base path/url from which are searched relative pathes to external resources (if any)
referenced in loaded SVG file.
|
int |
getParsingErrorsHandlingType()
Source XSLFO document can contain formatting errors.
|
void |
setBasePath(String value) |
void |
setParsingErrorsHandlingType(int parsingErrorsHandlingType)
Source XSLFO document can contain formatting errors.
|
close, getXslStream
getLoadFormat, getWarningHandler, setWarningHandler
public XslFoLoadOptions()
Creates XslFoLoadOptions
object without xsl data.
public XslFoLoadOptions(String xslFile)
Creates XslFoLoadOptions
object with xsl data.
xslFile
- Xsl file to convert XSL-FO document into pdf document.public XslFoLoadOptions(InputStream xslStream)
Creates XslFoLoadOptions
object with xsl data.
xslStream
- Xsl stream to convert XSL-FO document into pdf document.public int getParsingErrorsHandlingType()
Source XSLFO document can contain formatting errors. This enum enumerates possible strategies of handking of that errors
XslFoLoadOptions.ParsingErrorsHandlingTypes
public void setParsingErrorsHandlingType(int parsingErrorsHandlingType)
Source XSLFO document can contain formatting errors. This enum enumerates possible strategies of handking of that errors
parsingErrorsHandlingType
- ParsingErrorsHandlingTypes elementXslFoLoadOptions.ParsingErrorsHandlingTypes
public String getBasePath()
The base path/url from which are searched relative pathes to external resources (if any) referenced in loaded SVG file.
public void setBasePath(String value)