SaveOptions.ResourceSavingInfo

Inheritance: java.lang.Object

public static class SaveOptions.ResourceSavingInfo

This class represents set of data that related to external resource file’s saving that occures during conversion of PDF to some other format (f.e. HTML)

Methods

MethodDescription
getResourceType()Set by converter.
getSupposedFileName()Set by converter.
getContentStream()Set by converter.
isCustomProcessingCancelled()this flag must set to “true” in custom code if for some reasons proposed file should be processed not with custom code but with converter’s code itself in standard for converter way.
setCustomProcessingCancelled(boolean customProcessingCancelled)this flag must set to “true” in custom code if for some reasons proposed file should be processed not with custom code but with converter’s code itself in standard for converter way.

getResourceType()

public int getResourceType()

Set by converter. Supposed file name that goes from converter to code of custom method Can be use in custom code to decide how to process or where save that file

Returns: int - NodeLevelResourceType element

getSupposedFileName()

public String getSupposedFileName()

Set by converter. Supposed file name that goes from converter to code of custom method Can be use in custom code to decide how to process or where save that file

Returns: java.lang.String - String value

getContentStream()

public byte[] getContentStream()

Set by converter. Represents binary content of saved file.

Returns: byte[] - array of bytes

isCustomProcessingCancelled()

public boolean isCustomProcessingCancelled()

this flag must set to “true” in custom code if for some reasons proposed file should be processed not with custom code but with converter’s code itself in standard for converter way. So, it’ setting set to true means that custom code did not process referenced file and converter must handle it itself (in both sences - for saving somewhere and for naming in referencing file).

Returns: boolean - boolean value

setCustomProcessingCancelled(boolean customProcessingCancelled)

public void setCustomProcessingCancelled(boolean customProcessingCancelled)

this flag must set to “true” in custom code if for some reasons proposed file should be processed not with custom code but with converter’s code itself in standard for converter way. So, it’ setting set to true means that custom code did not process referenced file and converter must handle it itself (in both senses - for saving somewhere and for naming in referencing file).

Parameters:

ParameterTypeDescription
customProcessingCancelledbooleanboolean value