Table of Contents

Class PdfDocumentBuilder

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

The builder of PDF documents.

public sealed class PdfDocumentBuilder
Inheritance
PdfDocumentBuilder
Inherited Members

Remarks

It's the entry point of Layout API. Read the Building documents article for the detailed information about document builders.

The Getting Started with Layout API article provides essential information on how to generate PDFs with the API.

Check out the other articles and code samples on the C# PDF generation library page.

Methods

Create()

Creates a new instance of the PdfDocumentBuilder class.

Encryption(PdfEncryptionHandler?)

Sets the encryption handler to use while encrypting the output PDF.

FontLoader(IFontLoader)

Sets the font loader.

Generate(Stream, Action<Document>)

Generates PDF document and saves it to a stream.

Generate(string, Action<Document>)

Generates PDF document and saves it to a file.

Info(Action<PdfInfo>?)

Adds metadata to PDF info dictionary.

Linearization(bool)

Sets a value indicating whether output PDF files should be linearized for faster web viewing.

MissingGlyphHandler(PdfMissingGlyphMapper?)

Sets the handler for glyphs that cannot be drawn using the TextStyle font or its fallbacks.

ObjectStreams(bool)

Sets a value indicating whether to use object streams in a generated PDF file.

StreamProvider(IPdfStreamProvider)

Sets the stream provider.

Version(PdfVersion)

Sets the PDF version to use while generating a document.