SvgLoadOptions

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

public final class SvgLoadOptions extends LoadOptions

Represents options for loading/importing SVG file into pdf document.

Constructors

ConstructorDescription
SvgLoadOptions()Creates SvgLoadOptions object.

Methods

MethodDescription
getConversionEngine()Allows select conversion engine that will be in use during conversion.
setConversionEngine(int conversionEngine)Allows select conversion engine that will be in use during conversion.
getPageInfo()Gets page info that should be applied during loading of document.
setPageInfo(PageInfo value)Sets page info that should be applied during loading of document.
isAdjustPageSize()Adust pdf page size to svg size
setAdjustPageSize(boolean value)Adust pdf page size to svg size

SvgLoadOptions()

public SvgLoadOptions()

Creates SvgLoadOptions object.

getConversionEngine()

public int getConversionEngine()

Allows select conversion engine that will be in use during conversion. Currently new engine is in B-testing stage, so this value by default set to ConversionEngines.LegacyEngine

Returns: int - ConversionEngines element

setConversionEngine(int conversionEngine)

public void setConversionEngine(int conversionEngine)

Allows select conversion engine that will be in use during conversion. Currently new engine is in B-testing stage, so this value by default set to ConversionEngines.LegacyEngine

Parameters:

ParameterTypeDescription
conversionEngineintConversionEngines element

getPageInfo()

public PageInfo getPageInfo()

Gets page info that should be applied during loading of document. NOTE that this parameter only works when ConversionEngine == ConversionEngines.NewEngine

Returns: PageInfo - PageInfo object

setPageInfo(PageInfo value)

public void setPageInfo(PageInfo value)

Sets page info that should be applied during loading of document. NOTE that this parameter only works when ConversionEngine == ConversionEngines.NewEngine

Parameters:

ParameterTypeDescription
valuePageInfoPageInfo object

isAdjustPageSize()

public boolean isAdjustPageSize()

Adust pdf page size to svg size

Returns: boolean - boolean value

setAdjustPageSize(boolean value)

public void setAdjustPageSize(boolean value)

Adust pdf page size to svg size

Parameters:

ParameterTypeDescription
valuebooleanboolean value