LoadOptions

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

public abstract class LoadOptions extends Object

LoadOptions type holds level of abstraction on individual load options

Constructors

ConstructorDescription
LoadOptions

Methods

MethodDescription
getLoadFormatRepresents file format which {@code LoadOptions} describes.
getWarningHandlerCallback to handle any warnings generated. The WarningHandler returns ReturnAction enum item specifying either Continue or Abort. Continue is the default action and the Load operation continues, however the user may also return Abort in which case the Load operation should cease.
isDisableFontLicenseVerificationsGets or sets flag to disable any license restrictions for all fonts while loading the file. When {@code }, allows to execute operations with font that are prohibited by a license of this font, for example allows to embed a font into a PDF document even if license rules disable embedding for this font. By default {@code }. Be careful when using this flag. When it is set it means that person who sets this flag, takes all responsibility of possible license/law violations on himself. So he takes it on it’s own risk. It’s strongly recommended to use this flag only when you are fully confident that you are not breaking the copyright law.
setDisableFontLicenseVerificationsGets or sets flag to disable any license restrictions for all fonts while loading the file. When {@code }, allows to execute operations with font that are prohibited by a license of this font, for example allows to embed a font into a PDF document even if license rules disable embedding for this font. By default {@code }. Be careful when using this flag. When it is set it means that person who sets this flag, takes all responsibility of possible license/law violations on himself. So he takes it on it’s own risk. It’s strongly recommended to use this flag only when you are fully confident that you are not breaking the copyright law.
setWarningHandlerCallback to handle any warnings generated. The WarningHandler returns ReturnAction enum item specifying either Continue or Abort. Continue is the default action and the Load operation continues, however the user may also return Abort in which case the Load operation should cease.

LoadOptions

public LoadOptions()

getLoadFormat

public LoadFormat getLoadFormat()

Represents file format which {@code LoadOptions} describes.

Returns: LoadFormat element @see LoadFormat

getWarningHandler

public WarningCallback getWarningHandler()

Callback to handle any warnings generated. The WarningHandler returns ReturnAction enum item specifying either Continue or Abort. Continue is the default action and the Load operation continues, however the user may also return Abort in which case the Load operation should cease.

Returns: IWarningCallback value

isDisableFontLicenseVerifications

public final boolean isDisableFontLicenseVerifications()

Gets or sets flag to disable any license restrictions for all fonts while loading the file. When {@code }, allows to execute operations with font that are prohibited by a license of this font, for example allows to embed a font into a PDF document even if license rules disable embedding for this font. By default {@code }. Be careful when using this flag. When it is set it means that person who sets this flag, takes all responsibility of possible license/law violations on himself. So he takes it on it’s own risk. It’s strongly recommended to use this flag only when you are fully confident that you are not breaking the copyright law.

Returns: boolean value

setDisableFontLicenseVerifications

public final void setDisableFontLicenseVerifications(boolean value)

Gets or sets flag to disable any license restrictions for all fonts while loading the file. When {@code }, allows to execute operations with font that are prohibited by a license of this font, for example allows to embed a font into a PDF document even if license rules disable embedding for this font. By default {@code }. Be careful when using this flag. When it is set it means that person who sets this flag, takes all responsibility of possible license/law violations on himself. So he takes it on it’s own risk. It’s strongly recommended to use this flag only when you are fully confident that you are not breaking the copyright law.

Parameters:

ParameterTypeDescription
valueboolean value

setWarningHandler

Callback to handle any warnings generated. The WarningHandler returns ReturnAction enum item specifying either Continue or Abort. Continue is the default action and the Load operation continues, however the user may also return Abort in which case the Load operation should cease.