PdfFormatConversionOptions

PdfFormatConversionOptions

Overview

PdfFormatConversionOptions is a class in Aspose.Pdf FOSS for Java.

Options controlling PDF/A (and other standard) validation and conversion.

Properties

NameTypeAccessDescription
defaultPdfFormatConversionOptionsReadReturns a conservative default option set used by simple validation calls.
logFileNameStringReadReturns the log file name, or {@code null} if not set.
logStreamOutputStreamReadReturns the log output stream, or {@code null} if not set.
formatPdfFormatReadReturns the target PDF format.
errorActionConvertErrorActionReadReturns the error action strategy.
transparencyActionConvertTransparencyActionReadReturns the transparency handling action.
embedFontsbooleanReadReturns whether fonts should be embedded during conversion.
subsetFontsbooleanReadReturns whether embedded fonts should be subsetted.
defaultFontNameStringReadReturns the default font name used when a font cannot be found.
ignoreResourceFontErrorsbooleanReadReturns whether resource font errors should be ignored during conversion.
alignTextbooleanReadReturns whether text alignment is enabled during conversion.
softMaskActionConvertSoftMaskActionReadReturns the soft mask handling action.
autoTaggingSettingsAutoTaggingSettingsReadReturns the auto-tagging settings, or {@code null} if not set.
optimizeFileSizebooleanReadReturns whether conversion should attempt to minimize the output file size.
lowMemoryModebooleanReadReturns whether low-memory conversion mode is enabled.
transferInfobooleanReadReturns whether document information should be transferred into generated metadata.
iccProfileFileNameStringReadReturns the ICC profile file name used for output intent generation.
fontEmbeddingOptionsFontEmbeddingOptionsReadReturns font embedding options used by conversion.
excludeFontsStrategyintReadReturns the bitwise font-exclusion strategy flags.

Methods

SignatureDescription
PdfFormatConversionOptions(format: PdfFormat)Creates options for the supplied format using the default delete-on-error behavior.
PdfFormatConversionOptions(format: PdfFormat, errorAction: ConvertErrorAction)Creates options for the supplied format and error action without predefined logging.
PdfFormatConversionOptions(logFileName: String, format: PdfFormat, errorAction: ConvertErrorAction)Creates options that write the conversion log to a file.
PdfFormatConversionOptions(logStream: OutputStream, format: PdfFormat, errorAction: ConvertErrorAction)Creates options that write the conversion log to an output stream.
getDefault()PdfFormatConversionOptionsReturns a conservative default option set used by simple validation calls.
getLogFileName()StringReturns the log file name, or {@code null} if not set.
setLogFileName(logFileName: String)Sets the log file name.
getLogStream()OutputStreamReturns the log output stream, or {@code null} if not set.
setLogStream(logStream: OutputStream)Sets the log output stream.
getFormat()PdfFormatReturns the target PDF format.
setFormat(format: PdfFormat)Sets the target PDF format.
getErrorAction()ConvertErrorActionReturns the error action strategy.
setErrorAction(errorAction: ConvertErrorAction)Sets the error action strategy.
getTransparencyAction()ConvertTransparencyActionReturns the transparency handling action.
setTransparencyAction(transparencyAction: ConvertTransparencyAction)Sets the transparency handling action.
isEmbedFonts()booleanReturns whether fonts should be embedded during conversion.
setEmbedFonts(embedFonts: boolean)Sets whether fonts should be embedded during conversion.
isSubsetFonts()booleanReturns whether embedded fonts should be subsetted.
setSubsetFonts(subsetFonts: boolean)Sets whether embedded fonts should be subsetted.
getDefaultFontName()StringReturns the default font name used when a font cannot be found.
setDefaultFontName(defaultFontName: String)Sets the default font name used when a font cannot be found.
isIgnoreResourceFontErrors()booleanReturns whether resource font errors should be ignored during conversion.
setIgnoreResourceFontErrors(ignoreResourceFontErrors: boolean)Sets whether resource font errors should be ignored during conversion.
isAlignText()booleanReturns whether text alignment is enabled during conversion.
setAlignText(alignText: boolean)Sets whether text alignment should be applied during conversion.
getSoftMaskAction()ConvertSoftMaskActionReturns the soft mask handling action.
setSoftMaskAction(softMaskAction: ConvertSoftMaskAction)Sets the soft mask handling action.
getAutoTaggingSettings()AutoTaggingSettingsReturns the auto-tagging settings, or {@code null} if not set.
setAutoTaggingSettings(autoTaggingSettings: AutoTaggingSettings)Sets the auto-tagging settings for automatic structure tagging during conversion.
isOptimizeFileSize()booleanReturns whether conversion should attempt to minimize the output file size.
setOptimizeFileSize(optimizeFileSize: boolean)Sets whether conversion should attempt to minimize the output file size.
isLowMemoryMode()booleanReturns whether low-memory conversion mode is enabled.
setIsLowMemoryMode(lowMemoryMode: boolean)Sets whether low-memory conversion mode is enabled.
isTransferInfo()booleanReturns whether document information should be transferred into generated metadata.
setTransferInfo(transferInfo: boolean)Sets whether document information should be transferred into generated metadata.
getIccProfileFileName()StringReturns the ICC profile file name used for output intent generation.
setIccProfileFileName(iccProfileFileName: String)Sets the ICC profile file name used for output intent generation.
getFontEmbeddingOptions()FontEmbeddingOptionsReturns font embedding options used by conversion.
setFontEmbeddingOptions(fontEmbeddingOptions: FontEmbeddingOptions)Sets font embedding options used by conversion.
getExcludeFontsStrategy()intReturns the bitwise font-exclusion strategy flags.
setExcludeFontsStrategy(excludeFontsStrategy: int)Sets the bitwise font-exclusion strategy flags.

See Also