Calc .NET Class Library
Show/Hide TOC

# PdfSaveOptions Class

Options that control PDF export. Pass an instance to a document's SaveAsPdf overload; without one the defaults below apply.

## Definition

Namespace: Independentsoft.Office.Pdf
Assembly: Independentsoft.Calc (in Independentsoft.Calc.dll) Version: 3.0.520.1+c6c593d5629a051e0af021b238c5d69d764f9686
C#

    public class PdfSaveOptions

VB

    Public Class PdfSaveOptions

Inheritance
  Object PdfSaveOptions

## Constructors

PdfSaveOptions | Initializes a new instance of the PdfSaveOptions class

## Properties

Author | Gets or sets the PDF author. Falls back to the document's own creator when not set.
CompressContent | Gets or sets whether page content streams are compressed with Flate. Default is true. Turning it off makes the output larger but readable in a text editor, which is useful when debugging a document.
CreateHyperlinks | Gets or sets whether hyperlinks become clickable link annotations. Default is true.
CreateOutlines | Gets or sets whether headings become PDF outline (bookmark) entries. Default is true.
Creator | Gets or sets the producing application recorded in the PDF.
EmbedFonts | Gets or sets whether the fonts the document uses are embedded in the PDF. Default is true. With embedding off - or when no font file can be found for a run - the text falls back to the PDF base-14 fonts, which cannot represent characters outside WinAnsi.
FontDirectories | Gets the directories searched for font files, in addition to the system ones. Searched before the system directories, so a font placed here wins.
Keywords | Gets or sets the PDF keywords. Falls back to the document's own keywords when not set.
RegisteredFonts | Gets the fonts registered explicitly through RegisterFont. These are matched before any directory is searched.
Subject | Gets or sets the PDF subject. Falls back to the document's own subject when not set.
Title | Gets or sets the PDF title. Falls back to the document's own title when not set.
UseSystemFonts | Gets or sets whether the operating system's font directories are searched. Default is true. Set it to false to embed only the fonts given through AddFontDirectory(String) and RegisterFont(String, Boolean, Boolean, String), which makes the output identical on every machine.

## Methods

AddFontDirectory | Adds a directory to search for .ttf and .ttc font files.
Equals | (Inherited from Object)
Finalize | (Inherited from Object)
GetHashCode | (Inherited from Object)
GetType | (Inherited from Object)
MemberwiseClone | (Inherited from Object)
RegisterFont(String, Boolean, Boolean, Byte) | Registers font data for one family and style, for callers that hold the font in memory.
RegisterFont(String, Boolean, Boolean, String) | Registers a font file for one family and style, so the exporter does not have to find it.
ToString | (Inherited from Object)

## See Also

#### Reference

Independentsoft.Office.Pdf Namespace