• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class DocumentPdfSaveOptions

Controls how a Document is exported to PDF.

Inheritance
object
SaveOptions
DocumentPdfSaveOptions
Inherited Members
SaveOptions.ProgressCallback
SaveOptions.InterruptionToken
SaveOptions.CancellationToken
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Document.Export.Pdf
Assembly: DRIT.Document.dll
Syntax
public sealed class DocumentPdfSaveOptions : SaveOptions

Properties

ChartImageProvider

Optional delegate for rendering chart shapes. Receives the DRIT.Document.Chart model and the expected render size in points; should return PNG or JPEG bytes, or null to skip rendering.

Declaration
public Func<Chart, PdfRenderSize, byte[]?>? ChartImageProvider { get; set; }
Property Value
Type Description
Func<Chart, PdfRenderSize, byte[]>

CopyDocumentProperties

When true, writes the document title, author, and subject into the PDF /Info dictionary.

Declaration
public bool CopyDocumentProperties { get; set; }
Property Value
Type Description
bool

DigitalSignatureDetails

Gets or sets digital signature settings for the exported PDF.

Declaration
public PdfDigitalSignatureDetails DigitalSignatureDetails { get; set; }
Property Value
Type Description
PdfDigitalSignatureDetails

EncryptionDetails

Gets or sets password encryption settings for the exported PDF.

Declaration
public PdfEncryptionDetails EncryptionDetails { get; set; }
Property Value
Type Description
PdfEncryptionDetails

FallbackFontName

Font family name used when a run's Font.Name cannot be resolved.

Declaration
public string FallbackFontName { get; set; }
Property Value
Type Description
string

FallbackFontSizePt

Font size in points used when a run's Font.Size is 0 or unset.

Declaration
public double FallbackFontSizePt { get; set; }
Property Value
Type Description
double

FontDirectories

Extra directories to search for TTF/OTF font files in addition to the OS system font directory. Used by the default DRIT.Document.Export.Pdf.DritFontTextMeasurer.

Declaration
public IList<string> FontDirectories { get; set; }
Property Value
Type Description
IList<string>

Hyphenation

Gets or sets the hyphenation policy used during PDF export.

Declaration
public HyphenationOptions Hyphenation { get; set; }
Property Value
Type Description
HyphenationOptions

IncludeBookmarks

When true, emits a PDF outline entry for each paragraph whose style name begins with "Heading" or equals "Title" (case-insensitive).

Declaration
public bool IncludeBookmarks { get; set; }
Property Value
Type Description
bool

MathFontName

Font family used for native Office Math glyphs.

Declaration
public string MathFontName { get; set; }
Property Value
Type Description
string

SectionIndexes

Zero-based indexes of sections to export. Null exports all sections.

Declaration
public IList<int>? SectionIndexes { get; set; }
Property Value
Type Description
IList<int>

TextMeasurer

Text measurer used to estimate paragraph and cell heights during layout. When null (default), DRIT.Document.Export.Pdf.DritFontTextMeasurer is created automatically using FontDirectories. Assign an alternative implementation to substitute a different font measurement backend.

Declaration
public ITextMeasurer? TextMeasurer { get; set; }
Property Value
Type Description
ITextMeasurer
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX