Table of Contents

Class SectionDocument

Namespace
NuvTools.Report.Pdf.Documents
Assembly
NuvTools.Report.Pdf.dll

A document of sections on as many A4 pages as it needs: the issuer and the title on top, then each section with its fields, paragraphs and images, and the page number at the foot. Rendered with QuestPDF, whose license the application declares at startup.

public class SectionDocument : IDocument
Inheritance
SectionDocument
Implements
IDocument
Inherited Members

Remarks

Lato, the font QuestPDF embeds, is used so the output does not depend on the fonts of the host. An image or a logo that cannot be decoded is left out instead of failing the whole document.

Constructors

SectionDocument(SectionDocumentModel)

A document of sections on as many A4 pages as it needs: the issuer and the title on top, then each section with its fields, paragraphs and images, and the page number at the foot. Rendered with QuestPDF, whose license the application declares at startup.

public SectionDocument(SectionDocumentModel model)

Parameters

model SectionDocumentModel

Remarks

Lato, the font QuestPDF embeds, is used so the output does not depend on the fonts of the host. An image or a logo that cannot be decoded is left out instead of failing the whole document.

Properties

Model

public SectionDocumentModel Model { get; }

Property Value

SectionDocumentModel

Methods

Compose(IDocumentContainer)

Configures the document content by specifying its layout structure and visual element.

public void Compose(IDocumentContainer container)

Parameters

container IDocumentContainer

The document container used for defining content via the FluentAPI.

GetMetadata()

Provides metadata values like author and keywords used in PDF creation.

public DocumentMetadata GetMetadata()

Returns

DocumentMetadata

Remarks

Override this method to customize document's metadata.