Table of Contents

Class PdfSaveOptions

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

These options allow you to control how the library saves PDF files.

public class PdfSaveOptions
Inheritance
PdfSaveOptions
Inherited Members

Remarks

Depending on the options, the library can, for example, produce uncompressed, encrypted, and/or linearized files. Some options instruct the library to apply optimizations to PDF structures before saving.

Read the Optimize PDF objects for more information on how to apply optimizations with these options.

The Encrypt PDF documents in C# and VB.NET article shows how to use save options to protect PDF 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).