PdfSaveOptions
Overview
PdfSaveOptions is a class in Aspose.Pdf FOSS for Java.
Options for saving a PDF document.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
linearize | boolean | Read | Returns whether linearization (web optimization) is enabled. |
useObjectStreams | boolean | Read | Returns whether object streams (PDF 1.5+) are enabled. |
useXRefStream | boolean | Read | Returns whether xref streams (PDF 1.5+) are enabled. |
objectsPerStream | int | Read | Returns the maximum number of objects per object stream. |
colorConversion | ColorConversionStrategy | Read | Returns the color conversion strategy to apply when saving. |
autoTaggingSettings | AutoTaggingSettings | Read | Returns the auto-tagging settings, or {@code null} if not set. |
Methods
| Signature | Description |
|---|---|
isLinearize() → boolean | Returns whether linearization (web optimization) is enabled. |
setLinearize(linearize: boolean) → PdfSaveOptions | Sets whether to produce a linearized (web-optimized) PDF. |
isUseObjectStreams() → boolean | Returns whether object streams (PDF 1.5+) are enabled. |
setUseObjectStreams(use: boolean) → PdfSaveOptions | Sets whether to pack eligible objects into object streams (PDF 1.5+). |
isUseXRefStream() → boolean | Returns whether xref streams (PDF 1.5+) are enabled. |
setUseXRefStream(use: boolean) → PdfSaveOptions | Sets whether to write an xref stream instead of a text xref table (PDF 1.5+). |
getObjectsPerStream() → int | Returns the maximum number of objects per object stream. |
setObjectsPerStream(max: int) → PdfSaveOptions | Sets the maximum number of objects to pack into a single object stream. |
getColorConversion() → ColorConversionStrategy | Returns the color conversion strategy to apply when saving. |
setColorConversion(colorConversion: ColorConversionStrategy) → PdfSaveOptions | Sets the color conversion strategy to apply when saving. |
getAutoTaggingSettings() → AutoTaggingSettings | Returns the auto-tagging settings, or {@code null} if not set. |
setAutoTaggingSettings(settings: AutoTaggingSettings) | Sets the auto-tagging settings for automatic structure tagging on save. |