public abstract class LoadOptions extends Object
LoadOptions type holds level of abstraction on individual load options
Modifier and Type | Class and Description |
---|---|
static class |
LoadOptions.MarginsAreaUsageModes
Represents mode of usage of margins area during conversion (like HTML, EPUB etc), defines
treatement of instructions of imported format related to usage of margins.
|
static class |
LoadOptions.PageSizeAdjustmentModes
ATTENTION! The feature implemented but did not put yet to public API since blocker issue in
OSHARED layer revealed for sample document.
|
static class |
LoadOptions.ResourceLoadingResult
Result of custom loading of resource
|
static interface |
LoadOptions.ResourceLoadingStrategy
Sometimes it's necessary to avoid usage of internal loader of external resources(like images
or CSSes) and supply custom method, that will get requested resources from somewhere.
|
Constructor and Description |
---|
LoadOptions() |
Modifier and Type | Method and Description |
---|---|
LoadFormat |
getLoadFormat()
Represents file format which
LoadOptions describes. |
WarningCallback |
getWarningHandler()
Callback to handle any warnings generated.
|
boolean |
isDisableFontLicenseVerifications()
Gets or sets flag to disable any license restrictions for all fonts while loading the file.
|
void |
setDisableFontLicenseVerifications(boolean value)
Gets or sets flag to disable any license restrictions for all fonts while loading the file.
|
void |
setWarningHandler(WarningCallback value)
Callback to handle any warnings generated.
|
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.
public void setWarningHandler(WarningCallback value)
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.
value
- IWarningCallback valuepublic LoadFormat getLoadFormat()
Represents file format which LoadOptions
describes.
LoadFormat
public final boolean isDisableFontLicenseVerifications()
Gets or sets flag to disable any license restrictions for all fonts while loading the file. When , 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 .
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.
public final void setDisableFontLicenseVerifications(boolean value)
Gets or sets flag to disable any license restrictions for all fonts while loading the file. When , 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 .
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.
value
- boolean valueCopyright © 2023 Aspose. All Rights Reserved.