Table of Contents

Class PdfSaveOptions

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

These options let you control how the library saves PDF files.

public class PdfSaveOptions
Inheritance
PdfSaveOptions
Inherited Members

Remarks

Depending on the chosen settings, the library can produce uncompressed, encrypted, or linearized files. Certain options also instruct the library to optimize PDF structures before saving.

For practical guidance on saving PDFs, see the Saving PDFs section.

Read the Save options section for more details on available parameters.

See Optimize PDF objects for guidance on applying optimizations.

The Encrypt PDF documents in C# and VB.NET article explains how to use save options to protect files.

Constructors

PdfSaveOptions()

Creates an instance with default values.

Properties

Compression

Gets or sets the compression type to use when saving the document.

EncryptionHandler

Gets or sets the encryption handler to use while encrypting the output PDF.

Linearize

Gets or sets a value indicating whether output PDF files should be linearized for faster web viewing.

OptimizeIndirectObjects

Gets or sets a value indicating whether to optimize (inline) indirect objects from PDF before saving.

ProducePdfA

Gets or sets a value indicating whether to save the document as a PDF/A-1b compliant one.

RemoveUnusedObjects

Gets or sets a value indicating whether to remove all unused (unreferenced) objects from PDF before saving.

UpdateCreationDate

Gets or sets a value indicating whether to update Creation Date properties in Document Info and XMP Metadata before saving.

UpdateCreator

Gets or sets a value indicating whether to update Creator properties in Document Info and XMP Metadata before saving.

UpdateModifiedDate

Gets or sets a value indicating whether to update Modified Date properties in Document Info and XMP Metadata before saving.

UpdateProducer

Gets or sets a value indicating whether to update Producer properties in Document Info and XMP Metadata before saving.

UseObjectStreams

(PDF 1.5) Gets or sets a value indicating whether to pack objects into compressed object streams and produce cross-reference streams before producing PDF files.

Version

Gets or sets the PDF version to use while saving the document.

WriteIncrementally

Gets or sets a value indicating whether to write PDF data incrementally, without changing the source data.

WriteWithoutFormatting

Gets or sets a value indicating whether to write PDF data without formatting (without whitespaces needed only for humans).