Skip to main content

PdfContent

PdfContent

PdfContent is the fluent surface for adding page elements. It keeps content operations close to the page scope and makes the order of a document visible in code.

Common operations​

MemberPurpose
AddText(...)Adds text or formatted text.
AddTable(...)Adds a table that can flow with the document.
AddImage(...)Adds an image element.
End()Returns to the page scope.
page.Content
.AddText("Invoice")
.WithFontSize(24)
.WithBold()
.End()
.AddTable(invoiceLines)
.End();

Additional content builders will be documented here as the Fluent API expands across forms, barcodes, reports, and security.