public final class InconsistentXmlImageParamsHandlingTypes
extends com.aspose.ms.System.Enum
During loading of logical PDF document model from XML (with BindXML method) can be found inconsistent combinations of image attributes . F.e. setting Height and FixedHeight together with usage of image formats where sizes are set inside image bynary content itself, can lead to unexpected or weird distortions of result file. This parameter allows define processing behaviour in such situations. By default it's set as PutToConsistentStateIfPossibleOtherwiseThrowException.
Modifier and Type | Field and Description |
---|---|
static int |
AllwaysThrowException
in such case will be allways thrown exception that describes detected inconsistency
|
static int |
IgnoreInconsistencyAndProcessAsUsually
In such case inconsistency will be ignored.
|
static int |
PutToConsistentStateIfPossibleOtherwiseIgnore
in such case loader will try analyse and correct
situation itself (with correction of loaded image attributes
immediately after loading from XML).
|
static int |
PutToConsistentStateIfPossibleOtherwiseThrowException
in such case loader will try
analyse and correct situation itself (with correctiion of loaded image attributes
immediately after loading from XML).
|
public static final int IgnoreInconsistencyAndProcessAsUsually
In such case inconsistency will be ignored. It can be used f.e. when You want to analyse and correct situation yourself after loading, in custom code via public API.
public static final int PutToConsistentStateIfPossibleOtherwiseIgnore
in such case loader will try analyse and correct situation itself (with correction of loaded image attributes immediately after loading from XML). If correction for some reason impossible, inconsistency will be ignored (attributes will be left as it was loaded from XML itself)
public static final int PutToConsistentStateIfPossibleOtherwiseThrowException
in such case loader will try analyse and correct situation itself (with correctiion of loaded image attributes immediately after loading from XML). If correction for some reason impossible, exception that describes detected inconsistency will be thrown.
public static final int AllwaysThrowException
in such case will be allways thrown exception that describes detected inconsistency
Copyright © 2014 Aspose. All Rights Reserved.