PdfSaveOptions

PdfSaveOptions

Overview

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

Options for saving a PDF document.

Properties

NameTypeAccessDescription
linearizebooleanReadReturns whether linearization (web optimization) is enabled.
useObjectStreamsbooleanReadReturns whether object streams (PDF 1.5+) are enabled.
useXRefStreambooleanReadReturns whether xref streams (PDF 1.5+) are enabled.
objectsPerStreamintReadReturns the maximum number of objects per object stream.
colorConversionColorConversionStrategyReadReturns the color conversion strategy to apply when saving.
autoTaggingSettingsAutoTaggingSettingsReadReturns the auto-tagging settings, or {@code null} if not set.

Methods

SignatureDescription
isLinearize()booleanReturns whether linearization (web optimization) is enabled.
setLinearize(linearize: boolean)PdfSaveOptionsSets whether to produce a linearized (web-optimized) PDF.
isUseObjectStreams()booleanReturns whether object streams (PDF 1.5+) are enabled.
setUseObjectStreams(use: boolean)PdfSaveOptionsSets whether to pack eligible objects into object streams (PDF 1.5+).
isUseXRefStream()booleanReturns whether xref streams (PDF 1.5+) are enabled.
setUseXRefStream(use: boolean)PdfSaveOptionsSets whether to write an xref stream instead of a text xref table (PDF 1.5+).
getObjectsPerStream()intReturns the maximum number of objects per object stream.
setObjectsPerStream(max: int)PdfSaveOptionsSets the maximum number of objects to pack into a single object stream.
getColorConversion()ColorConversionStrategyReturns the color conversion strategy to apply when saving.
setColorConversion(colorConversion: ColorConversionStrategy)PdfSaveOptionsSets the color conversion strategy to apply when saving.
getAutoTaggingSettings()AutoTaggingSettingsReturns the auto-tagging settings, or {@code null} if not set.
setAutoTaggingSettings(settings: AutoTaggingSettings)Sets the auto-tagging settings for automatic structure tagging on save.

See Also