XslFoLoadOptions

Inheritance: java.lang.Object, com.aspose.pdf.LoadOptions, com.aspose.pdf.XmlLoadOptions

public final class XslFoLoadOptions extends XmlLoadOptions

Represents options for loading/importing XSL-FO file into pdf document.

Constructors

ConstructorDescription
XslFoLoadOptions()Creates XslFoLoadOptions object without xsl data.
XslFoLoadOptions(String xslFile)Creates XslFoLoadOptions object with xsl data.
XslFoLoadOptions(InputStream xslStream)Creates XslFoLoadOptions object with xsl data.

Methods

MethodDescription
getParsingErrorsHandlingType()Source XSLFO document can contain formatting errors.
setParsingErrorsHandlingType(int parsingErrorsHandlingType)Source XSLFO document can contain formatting errors.
getBasePath()The base path/url from which are searched relative pathes to external resources (if any) referenced in loaded SVG file.
setBasePath(String value)

XslFoLoadOptions()

public XslFoLoadOptions()

Creates XslFoLoadOptions object without xsl data.

XslFoLoadOptions(String xslFile)

public XslFoLoadOptions(String xslFile)

Creates XslFoLoadOptions object with xsl data.

Parameters:

ParameterTypeDescription
xslFilejava.lang.StringXsl file to convert XSL-FO document into pdf document.

XslFoLoadOptions(InputStream xslStream)

public XslFoLoadOptions(InputStream xslStream)

Creates XslFoLoadOptions object with xsl data.

Parameters:

ParameterTypeDescription
xslStreamjava.io.InputStreamXsl stream to convert XSL-FO document into pdf document.

getParsingErrorsHandlingType()

public int getParsingErrorsHandlingType()

Source XSLFO document can contain formatting errors. This enum enumerates possible strategies of handking of that errors

Returns: int - ParsingErrorsHandlingTypes element

setParsingErrorsHandlingType(int parsingErrorsHandlingType)

public void setParsingErrorsHandlingType(int parsingErrorsHandlingType)

Source XSLFO document can contain formatting errors. This enum enumerates possible strategies of handking of that errors

Parameters:

ParameterTypeDescription
parsingErrorsHandlingTypeintParsingErrorsHandlingTypes element

getBasePath()

public String getBasePath()

The base path/url from which are searched relative pathes to external resources (if any) referenced in loaded SVG file.

Returns: java.lang.String - String

setBasePath(String value)

public void setBasePath(String value)

Parameters:

ParameterTypeDescription
valuejava.lang.String