PdfContentBuilder
OfficeIMO.Pdf
Builds document flow at any supported nesting level. The same receiver is used for document content, page content, rows, columns, containers, components, and deferred content.
Inheritance
- object
- PdfContentBuilder
Usage
Explore 84 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 54
- Method PdfContentBuilder.AddDeferredTable
- Method PdfContentBuilder.AddHeading
- Method PdfContentBuilder.AddImage
- Method PdfContentBuilder.AddKeyValueTable
- Method PdfContentBuilder.AddList
- Method PdfContentBuilder.AddNumberedList
- Method PdfContentBuilder.AddPanelParagraph
- Method PdfContentBuilder.AddParagraph
- Method PdfContentBuilder.AddTable
- Method PdfContentBuilder.AddTable``1
- Method PdfContentBuilder.Bookmark
- Method PdfContentBuilder.Canvas
- Method PdfContentBuilder.CheckBox
- Method PdfContentBuilder.ChoiceField
- Method PdfContentBuilder.Column
- Method PdfContentBuilder.ColumnBreak
- Method PdfContentBuilder.Columns
- Method PdfContentBuilder.Component
- Method PdfContentBuilder.Deferred
- Method PdfContentBuilder.Drawing
- Method PdfContentBuilder.Element
- Method PdfContentBuilder.Ellipse
- Method PdfContentBuilder.Flow
- Method PdfContentBuilder.FreeTextAnnotation
- Method PdfContentBuilder.H1
- Method PdfContentBuilder.H2
- Method PdfContentBuilder.H3
- Method PdfContentBuilder.HighlightAnnotation
- Method PdfContentBuilder.HR
- Method PdfContentBuilder.Item
- Method PdfContentBuilder.Layer
- Method PdfContentBuilder.Line
- Method PdfContentBuilder.MultiSelectChoiceField
- Method PdfContentBuilder.PageBreak
- Method PdfContentBuilder.Panel
- Method PdfContentBuilder.Path
- Method PdfContentBuilder.Polygon
- Method PdfContentBuilder.RadioButtonGroup
- Method PdfContentBuilder.Rectangle
- Method PdfContentBuilder.RoundedRectangle
- Method PdfContentBuilder.Row
- Method PdfContentBuilder.Section
- Method PdfContentBuilder.Semantic
- Method PdfContentBuilder.Shape
- Method PdfContentBuilder.Spacer
- Method PdfContentBuilder.Subtitle
- Method PdfContentBuilder.TableOfContents
- Method PdfContentBuilder.TextAnnotation
- Method PdfContentBuilder.TextField
- Method PdfContentBuilder.Title
- Property PdfDocument.Content
- Property PdfFootnoteOptions.ContinuationNotice
- Property PdfFootnoteOptions.ContinuationSeparator
- Property PdfFootnoteOptions.Separator
Accepted by parameters 30
- Method IPdfComponent.Compose
- Method IPdfContextComponent.Compose
- Method PdfContentBuilder.Column
- Method PdfContentBuilder.Columns
- Method PdfContentBuilder.Deferred
- Method PdfContentBuilder.DefineFootnote
- Method PdfContentBuilder.Flow
- Method PdfContentBuilder.Item
- Method PdfContentBuilder.Layer
- Method PdfContentBuilder.Panel
- Method PdfContentBuilder.Section
- Method PdfContentBuilder.Semantic
- Method PdfDocumentBuilder.Content
- Method PdfElementBuilder.Content
- Method PdfFooterBuilder.Content
- Method PdfFooterBuilder.EvenPagesContent
- Method PdfFooterBuilder.FirstPageContent
- Method PdfHeaderBuilder.Content
- Method PdfHeaderBuilder.EvenPagesContent
- Method PdfHeaderBuilder.FirstPageContent
- Method PdfInvoiceComponent.Compose
- Method PdfLabelSheetComponent.Compose
- Method PdfPageBuilder.Content
- Method PdfReportComponent.Compose
- Method PdfRowBuilder.AutoColumn
- Method PdfRowBuilder.Column
- Method PdfRowBuilder.FixedColumn
- Method PdfRowBuilder.PercentColumn
- Method PdfRowBuilder.RelativeColumn
- Method PdfTicketComponent.Compose
Methods
public PdfContentBuilder AddDeferredTable(Func<IEnumerable<string[]>> rowFactory, int batchSize = 256, OfficeAlignment align = Left, PdfTableStyle? style = null) #Adds a deferred simple-text table whose rows are materialized in bounded batches.
Parameters
- rowFactory System.Func<System.Collections.Generic.IEnumerable<string[]>>
- batchSize int = 256
- align OfficeIMO.OfficeAlignment = Left
- style OfficeIMO.Pdf.PdfTableStyle? = null
Returns
PdfContentBuilderpublic PdfContentBuilder AddDeferredTable(Func<IEnumerable<PdfTableCell[]>> rowFactory, int batchSize = 256, OfficeAlignment align = Left, PdfTableStyle? style = null) #Adds a deferred explicit-cell table whose rows are materialized in bounded batches.
Parameters
- rowFactory System.Func<System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCell[]>>
- batchSize int = 256
- align OfficeIMO.OfficeAlignment = Left
- style OfficeIMO.Pdf.PdfTableStyle? = null
Returns
PdfContentBuilderpublic PdfContentBuilder AddHeading(string text, int level = 1, OfficeAlignment align = Left, OfficeColor? color = null, string? linkUri = null, PdfHeadingStyle? style = null, string? linkContents = null, string? linkDestinationName = null) #Adds a heading at an authored level from 1 through 9.
Parameters
- text string
- level int = 1
- align OfficeIMO.OfficeAlignment = Left
- color OfficeIMO.OfficeColor? = null
- linkUri string? = null
- style OfficeIMO.Pdf.PdfHeadingStyle? = null
- linkContents string? = null
- linkDestinationName string? = null
Returns
PdfContentBuilderpublic PdfContentBuilder AddImage(byte[] imageBytes, OfficeLength width, OfficeLength height, string? altText) #Adds a meaningful image from supported image bytes with alternative text.
Parameters
- imageBytes byte[]
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- altText string?
Returns
PdfContentBuilderpublic PdfContentBuilder AddImage(byte[] imageBytes, OfficeLength width, OfficeLength height, OfficeAlignment? align = null, OfficeClipPath? clipPath = null, OfficeImageFit? fit = null, OfficeLength? spacingBefore = null, OfficeLength? spacingAfter = null, PdfImageStyle? style = null, string? linkUri = null, string? linkContents = null, string? altText = null) #Adds a raster image supported by OfficeIMO.Drawing. See PdfDocument.AddImage.
Parameters
- imageBytes byte[]
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- align OfficeIMO.OfficeAlignment? = null
- clipPath OfficeIMO.Drawing.OfficeClipPath? = null
- fit OfficeIMO.Drawing.OfficeImageFit? = null
- spacingBefore OfficeIMO.OfficeLength? = null
- spacingAfter OfficeIMO.OfficeLength? = null
- style OfficeIMO.Pdf.PdfImageStyle? = null
- linkUri string? = null
- linkContents string? = null
- altText string? = null
Returns
PdfContentBuilderpublic PdfContentBuilder AddKeyValueTable(IEnumerable<KeyValuePair<string, string?>> rows, OfficeAlignment align = Left, PdfTableStyle? style = null, bool includeHeader = false, string keyHeader = "Key", string valueHeader = "Value") #Adds a two-column key/value table.
Parameters
- rows System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, string?>>
- align OfficeIMO.OfficeAlignment = Left
- style OfficeIMO.Pdf.PdfTableStyle? = null
- includeHeader bool = false
- keyHeader string = "Key"
- valueHeader string = "Value"
Returns
PdfContentBuilderpublic PdfContentBuilder AddKeyValueTable(IEnumerable<PdfKeyValueRow> rows, OfficeAlignment align = Left, PdfTableStyle? style = null, bool includeHeader = false, string keyHeader = "Key", string valueHeader = "Value") #Adds a two-column key/value table with rich row values.
Parameters
- rows System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfKeyValueRow>
- align OfficeIMO.OfficeAlignment = Left
- style OfficeIMO.Pdf.PdfTableStyle? = null
- includeHeader bool = false
- keyHeader string = "Key"
- valueHeader string = "Value"
Returns
PdfContentBuilderpublic PdfContentBuilder AddList(IEnumerable<string> items, OfficeAlignment align = Left, OfficeColor? color = null, PdfListStyle? style = null) #Adds a bulleted list of plain items.
Parameters
- items System.Collections.Generic.IEnumerable<string>
- align OfficeIMO.OfficeAlignment = Left
- color OfficeIMO.OfficeColor? = null
- style OfficeIMO.Pdf.PdfListStyle? = null
Returns
PdfContentBuilderpublic PdfContentBuilder AddList(IEnumerable<PdfListItem> items, OfficeAlignment align = Left, OfficeColor? color = null, PdfListStyle? style = null) #Adds a bulleted list whose items can contain rich inline text runs.
Parameters
- items System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfListItem>
- align OfficeIMO.OfficeAlignment = Left
- color OfficeIMO.OfficeColor? = null
- style OfficeIMO.Pdf.PdfListStyle? = null
Returns
PdfContentBuilderpublic PdfContentBuilder AddNumberedList(IEnumerable<string> items, OfficeAlignment align = Left, OfficeColor? color = null, int startNumber = 1, PdfListStyle? style = null) #Adds a numbered list of plain items.
Parameters
- items System.Collections.Generic.IEnumerable<string>
- align OfficeIMO.OfficeAlignment = Left
- color OfficeIMO.OfficeColor? = null
- startNumber int = 1
- style OfficeIMO.Pdf.PdfListStyle? = null
Returns
PdfContentBuilderpublic PdfContentBuilder AddNumberedList(IEnumerable<PdfListItem> items, OfficeAlignment align = Left, OfficeColor? color = null, int startNumber = 1, PdfListStyle? style = null) #Adds a numbered list whose items can contain rich inline text runs.
Parameters
- items System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfListItem>
- align OfficeIMO.OfficeAlignment = Left
- color OfficeIMO.OfficeColor? = null
- startNumber int = 1
- style OfficeIMO.Pdf.PdfListStyle? = null
Returns
PdfContentBuilderpublic PdfContentBuilder AddPanelParagraph(Action<PdfParagraph> build, PdfPanelStyle? style = null, OfficeAlignment align = Left, OfficeColor? color = null) #Adds a paragraph inside a styled panel.
Parameters
- build System.Action<OfficeIMO.Pdf.PdfParagraph>
- Paragraph content builder.
- style OfficeIMO.Pdf.PdfPanelStyle? = null
- Panel style (padding, background, border, etc.).
- align OfficeIMO.OfficeAlignment = Left
- Paragraph alignment; Left by default. Start places a paragraph whose first strong character is right-to-left at the right edge.
- color OfficeIMO.OfficeColor? = null
- Optional text colour.
Returns
PdfContentBuilderpublic PdfContentBuilder AddParagraph(string text, OfficeAlignment align = Start, OfficeColor? color = null, PdfParagraphStyle? style = null) #Adds a paragraph with one text run. See PdfDocument.AddParagraph.
Parameters
- text string
- align OfficeIMO.OfficeAlignment = Start
- color OfficeIMO.OfficeColor? = null
- style OfficeIMO.Pdf.PdfParagraphStyle? = null
Returns
PdfContentBuilderpublic PdfContentBuilder AddParagraph(Action<PdfParagraph> build, OfficeAlignment align = Start, OfficeColor? color = null, PdfParagraphStyle? style = null) #Adds a paragraph built from styled text runs. See PdfDocument.AddParagraph.
Parameters
- build System.Action<OfficeIMO.Pdf.PdfParagraph>
- align OfficeIMO.OfficeAlignment = Start
- color OfficeIMO.OfficeColor? = null
- style OfficeIMO.Pdf.PdfParagraphStyle? = null
Returns
PdfContentBuilderpublic PdfContentBuilder AddTable(IEnumerable<string[]> rows) #Adds a table of plain text rows with the document table style.
Parameters
- rows System.Collections.Generic.IEnumerable<string[]>
Returns
PdfContentBuilderpublic PdfContentBuilder AddTable(IEnumerable<PdfTableCell[]> rows) #Adds a table of explicit cells with the document table style.
Parameters
- rows System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCell[]>
Returns
PdfContentBuilderpublic PdfContentBuilder AddTable(IEnumerable<string[]> rows, OfficeAlignment align = Left, PdfTableStyle? style = null) #Adds a table of plain text rows.
Parameters
- rows System.Collections.Generic.IEnumerable<string[]>
- align OfficeIMO.OfficeAlignment = Left
- style OfficeIMO.Pdf.PdfTableStyle? = null
Returns
PdfContentBuilderpublic PdfContentBuilder AddTable(IEnumerable<PdfTableCell[]> rows, OfficeAlignment align = Left, PdfTableStyle? style = null) #Adds a table of explicit cells, including spans, links, images, form fields and rich runs.
Parameters
- rows System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCell[]>
- align OfficeIMO.OfficeAlignment = Left
- style OfficeIMO.Pdf.PdfTableStyle? = null
Returns
PdfContentBuilderpublic PdfContentBuilder AddTable<T>(IEnumerable<T?> rows, OfficeTableOptions? options = null) #Adds a table from typed rows. See PdfDocument.AddTable.
Type Parameters
- T
Parameters
- rows System.Collections.Generic.IEnumerable<T?>
- options OfficeIMO.OfficeTableOptions? = null
Returns
PdfContentBuilderpublic PdfContentBuilder Bookmark(string name) #Adds a named bookmark at the current flow position.
Parameters
- name string
Returns
PdfContentBuilderpublic PdfContentBuilder Canvas(Action<PdfPageCanvas> build) #Adds page-canvas drawing commands to the current flow.
Parameters
- build System.Action<OfficeIMO.Pdf.PdfPageCanvas>
Returns
PdfContentBuilderpublic PdfContentBuilder CheckBox(string name, bool isChecked = false, OfficeLength? size = null, OfficeAlignment align = Left, OfficeLength? spacingBefore = null, OfficeLength? spacingAfter = null, string checkedValueName = "Yes", PdfFormFieldStyle? style = null) #Adds a simple AcroForm check box at the current flow position.
Parameters
- name string
- isChecked bool = false
- size OfficeIMO.OfficeLength? = null
- align OfficeIMO.OfficeAlignment = Left
- spacingBefore OfficeIMO.OfficeLength? = null
- spacingAfter OfficeIMO.OfficeLength? = null
- checkedValueName string = "Yes"
- style OfficeIMO.Pdf.PdfFormFieldStyle? = null
Returns
PdfContentBuilderpublic PdfContentBuilder ChoiceField(string name, IEnumerable<string> options, string? value = null, OfficeLength? width = null, OfficeLength? height = null, OfficeAlignment align = Left, OfficeLength? fontSize = null, OfficeLength? spacingBefore = null, OfficeLength? spacingAfter = null, bool isComboBox = true, PdfFormFieldStyle? style = null) #Adds a simple AcroForm choice field at the current flow position.
Parameters
- name string
- options System.Collections.Generic.IEnumerable<string>
- value string? = null
- width OfficeIMO.OfficeLength? = null
- height OfficeIMO.OfficeLength? = null
- align OfficeIMO.OfficeAlignment = Left
- fontSize OfficeIMO.OfficeLength? = null
- spacingBefore OfficeIMO.OfficeLength? = null
- spacingAfter OfficeIMO.OfficeLength? = null
- isComboBox bool = true
- style OfficeIMO.Pdf.PdfFormFieldStyle? = null
Returns
PdfContentBuilderpublic PdfContentBuilder Column(Action<PdfContentBuilder> build) #Adds a vertical content sequence using this same universal receiver.
Parameters
- build System.Action<OfficeIMO.Pdf.PdfContentBuilder>
Returns
PdfContentBuilderpublic PdfContentBuilder ColumnBreak() #Advances automatic multi-column flow to the next column.
Returns
PdfContentBuilderpublic PdfContentBuilder Columns(Action<PdfContentBuilder> build, PdfMultiColumnOptions? options = null) #Flows common block content across equal-width columns in reading order.
Parameters
- build System.Action<OfficeIMO.Pdf.PdfContentBuilder>
- options OfficeIMO.Pdf.PdfMultiColumnOptions? = null
Returns
PdfContentBuilderpublic PdfContentBuilder Component(IPdfComponent component, PdfFlowOptions? options = null, PdfLayoutPositionCapture? capture = null) #Adds a reusable typed component through the canonical flow engine.
Parameters
- component OfficeIMO.Pdf.IPdfComponent
- options OfficeIMO.Pdf.PdfFlowOptions? = null
- capture OfficeIMO.Pdf.PdfLayoutPositionCapture? = null
Returns
PdfContentBuilderpublic PdfContentBuilder Component(IPdfContextComponent component, PdfFlowOptions? options = null, PdfLayoutPositionCapture? capture = null) #Adds a reusable page-aware component through the canonical deferred-flow engine.
Parameters
- component OfficeIMO.Pdf.IPdfContextComponent
- options OfficeIMO.Pdf.PdfFlowOptions? = null
- capture OfficeIMO.Pdf.PdfLayoutPositionCapture? = null
Returns
PdfContentBuilderpublic PdfContentBuilder Deferred(Func<PdfFlowContext, Action<PdfContentBuilder>> build, PdfFlowOptions? options = null, PdfLayoutPositionCapture? capture = null) #Adds replayable content materialized from the live page context during layout.
Parameters
- build System.Func<OfficeIMO.Pdf.PdfFlowContext, System.Action<OfficeIMO.Pdf.PdfContentBuilder>>
- options OfficeIMO.Pdf.PdfFlowOptions? = null
- capture OfficeIMO.Pdf.PdfLayoutPositionCapture? = null
Returns
PdfContentBuilderpublic PdfFootnoteDefinition DefineFootnote(Action<PdfContentBuilder> build, PdfFootnoteOptions? options = null) #Captures reusable footnote flow without inserting it into the body. Associate its handle with a styled text run.
Parameters
- build System.Action<OfficeIMO.Pdf.PdfContentBuilder>
- Static paragraphs, lists, panels, supported eager inline tables, images, rules, and spacers forming the footnote.
- options OfficeIMO.Pdf.PdfFootnoteOptions? = null
- Placement and optional separator flow, snapshotted during this call.
public PdfContentBuilder Drawing(OfficeDrawing drawing, OfficeAlignment? align = null, OfficeLength? spacingBefore = null, OfficeLength? spacingAfter = null, PdfDrawingStyle? style = null, string? linkUri = null, string? linkContents = null) #Adds a shared OfficeIMO.Drawing scene.
Parameters
- drawing OfficeIMO.Drawing.OfficeDrawing
- align OfficeIMO.OfficeAlignment? = null
- spacingBefore OfficeIMO.OfficeLength? = null
- spacingAfter OfficeIMO.OfficeLength? = null
- style OfficeIMO.Pdf.PdfDrawingStyle? = null
- linkUri string? = null
- linkContents string? = null
Returns
PdfContentBuilderpublic PdfContentBuilder Element(Action<PdfElementBuilder> build) #Builds a visual and semantic envelope around nested flow content.
Parameters
- build System.Action<OfficeIMO.Pdf.PdfElementBuilder>
- Element layout, semantics, and content configuration.
Returns
PdfContentBuilderpublic PdfContentBuilder Ellipse(OfficeLength width, OfficeLength height, OfficeColor? strokeColor = null, OfficeLength? strokeWidth = null, OfficeColor? fillColor = null, OfficeAlignment? align = null, OfficeLength? spacingBefore = null, OfficeLength? spacingAfter = null, OfficeStrokeDashStyle strokeDashStyle = Solid, OfficeStrokeLineCap? strokeLineCap = null, OfficeStrokeLineJoin? strokeLineJoin = null, PdfDrawingStyle? style = null, string? linkUri = null, string? linkContents = null) #Adds an ellipse vector shape.
Parameters
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- strokeColor OfficeIMO.OfficeColor? = null
- strokeWidth OfficeIMO.OfficeLength? = null
- fillColor OfficeIMO.OfficeColor? = null
- align OfficeIMO.OfficeAlignment? = null
- spacingBefore OfficeIMO.OfficeLength? = null
- spacingAfter OfficeIMO.OfficeLength? = null
- strokeDashStyle OfficeIMO.Drawing.OfficeStrokeDashStyle = Solid
- strokeLineCap OfficeIMO.Drawing.OfficeStrokeLineCap? = null
- strokeLineJoin OfficeIMO.Drawing.OfficeStrokeLineJoin? = null
- style OfficeIMO.Pdf.PdfDrawingStyle? = null
- linkUri string? = null
- linkContents string? = null
Returns
PdfContentBuilderpublic PdfContentBuilder Flow(Action<PdfContentBuilder> build, PdfFlowOptions? options = null, PdfLayoutPositionCapture? capture = null) #Adds a nested flow group with optional constraints and position capture.
Parameters
- build System.Action<OfficeIMO.Pdf.PdfContentBuilder>
- options OfficeIMO.Pdf.PdfFlowOptions? = null
- capture OfficeIMO.Pdf.PdfLayoutPositionCapture? = null
Returns
PdfContentBuilderpublic PdfContentBuilder FreeTextAnnotation(string contents, OfficeLength width, OfficeLength height, OfficeAlignment? align = null, OfficeLength? spacingBefore = null, OfficeLength? spacingAfter = null, OfficeLength? fontSize = null, OfficeColor? textColor = null, OfficeColor? borderColor = null, OfficeLength? borderWidth = null, OfficeColor? fillColor = null, OfficeAlignment textAlign = Left, OfficeLength? padding = null, OfficeLength? lineHeight = null) #Adds a PDF free-text annotation at the current flow position.
Parameters
- contents string
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- align OfficeIMO.OfficeAlignment? = null
- spacingBefore OfficeIMO.OfficeLength? = null
- spacingAfter OfficeIMO.OfficeLength? = null
- fontSize OfficeIMO.OfficeLength? = null
- textColor OfficeIMO.OfficeColor? = null
- borderColor OfficeIMO.OfficeColor? = null
- borderWidth OfficeIMO.OfficeLength? = null
- fillColor OfficeIMO.OfficeColor? = null
- textAlign OfficeIMO.OfficeAlignment = Left
- padding OfficeIMO.OfficeLength? = null
- lineHeight OfficeIMO.OfficeLength? = null
Returns
PdfContentBuilderpublic PdfContentBuilder H1(string text, PdfHeadingStyle? style = null, string? linkUri = null, string? linkContents = null, string? linkDestinationName = null) #Adds an H1 heading.
Parameters
- text string
- style OfficeIMO.Pdf.PdfHeadingStyle? = null
- linkUri string? = null
- linkContents string? = null
- linkDestinationName string? = null
Returns
PdfContentBuilderpublic PdfContentBuilder H1(string text, OfficeAlignment align, OfficeColor? color = null, string? linkUri = null, PdfHeadingStyle? style = null, string? linkContents = null, string? linkDestinationName = null) #Adds an H1 heading with explicit alignment and color.
Parameters
- text string
- align OfficeIMO.OfficeAlignment
- color OfficeIMO.OfficeColor? = null
- linkUri string? = null
- style OfficeIMO.Pdf.PdfHeadingStyle? = null
- linkContents string? = null
- linkDestinationName string? = null
Returns
PdfContentBuilderpublic PdfContentBuilder H2(string text, PdfHeadingStyle? style = null, string? linkUri = null, string? linkContents = null, string? linkDestinationName = null) #Adds an H2 heading.
Parameters
- text string
- style OfficeIMO.Pdf.PdfHeadingStyle? = null
- linkUri string? = null
- linkContents string? = null
- linkDestinationName string? = null
Returns
PdfContentBuilderpublic PdfContentBuilder H2(string text, OfficeAlignment align, OfficeColor? color = null, string? linkUri = null, PdfHeadingStyle? style = null, string? linkContents = null, string? linkDestinationName = null) #Adds an H2 heading with explicit alignment and color.
Parameters
- text string
- align OfficeIMO.OfficeAlignment
- color OfficeIMO.OfficeColor? = null
- linkUri string? = null
- style OfficeIMO.Pdf.PdfHeadingStyle? = null
- linkContents string? = null
- linkDestinationName string? = null
Returns
PdfContentBuilderpublic PdfContentBuilder H3(string text, PdfHeadingStyle? style = null, string? linkUri = null, string? linkContents = null, string? linkDestinationName = null) #Adds an H3 heading.
Parameters
- text string
- style OfficeIMO.Pdf.PdfHeadingStyle? = null
- linkUri string? = null
- linkContents string? = null
- linkDestinationName string? = null
Returns
PdfContentBuilderpublic PdfContentBuilder H3(string text, OfficeAlignment align, OfficeColor? color = null, string? linkUri = null, PdfHeadingStyle? style = null, string? linkContents = null, string? linkDestinationName = null) #Adds an H3 heading with explicit alignment and color.
Parameters
- text string
- align OfficeIMO.OfficeAlignment
- color OfficeIMO.OfficeColor? = null
- linkUri string? = null
- style OfficeIMO.Pdf.PdfHeadingStyle? = null
- linkContents string? = null
- linkDestinationName string? = null
Returns
PdfContentBuilderpublic PdfContentBuilder HighlightAnnotation(string contents, OfficeLength width, OfficeLength height, OfficeAlignment? align = null, OfficeLength? spacingBefore = null, OfficeLength? spacingAfter = null, OfficeColor? color = null) #Adds a PDF highlight annotation rectangle at the current flow position.
Parameters
- contents string
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- align OfficeIMO.OfficeAlignment? = null
- spacingBefore OfficeIMO.OfficeLength? = null
- spacingAfter OfficeIMO.OfficeLength? = null
- color OfficeIMO.OfficeColor? = null
Returns
PdfContentBuilderpublic PdfContentBuilder HR(OfficeLength? thickness = null, OfficeColor? color = null, OfficeLength? spacingBefore = null, OfficeLength? spacingAfter = null, PdfHorizontalRuleStyle? style = null) #Adds a horizontal rule.
Parameters
- thickness OfficeIMO.OfficeLength? = null
- Line thickness (pt).
- color OfficeIMO.OfficeColor? = null
- Optional color; inherited from the current default rule style when omitted.
- spacingBefore OfficeIMO.OfficeLength? = null
- Top spacing (pt), inherited from the current default rule style when omitted.
- spacingAfter OfficeIMO.OfficeLength? = null
- Bottom spacing (pt), inherited from the current default rule style when omitted.
- style OfficeIMO.Pdf.PdfHorizontalRuleStyle? = null
- Optional reusable rule style.
Returns
PdfContentBuilderpublic PdfContentBuilder Item() #Returns this content receiver for readable grouping in fluent chains.
Returns
PdfContentBuilderpublic PdfContentBuilder Item(Action<PdfContentBuilder> build) #Adds a logical group of content without introducing layout behavior.
Parameters
- build System.Action<OfficeIMO.Pdf.PdfContentBuilder>
Returns
PdfContentBuilderpublic PdfContentBuilder Layer(string name, Action<PdfContentBuilder> build, PdfLayerOptions? options = null) #Adds flow content controlled by a generated optional-content layer.
Parameters
- name string
- build System.Action<OfficeIMO.Pdf.PdfContentBuilder>
- options OfficeIMO.Pdf.PdfLayerOptions? = null
Returns
PdfContentBuilderpublic PdfContentBuilder Line(OfficeLength x1, OfficeLength y1, OfficeLength x2, OfficeLength y2, OfficeColor? strokeColor = null, OfficeLength? strokeWidth = null, OfficeAlignment? align = null, OfficeLength? spacingBefore = null, OfficeLength? spacingAfter = null, OfficeStrokeDashStyle strokeDashStyle = Solid, OfficeStrokeLineCap? strokeLineCap = null, OfficeStrokeLineJoin? strokeLineJoin = null, PdfDrawingStyle? style = null, string? linkUri = null, string? linkContents = null) #Adds a line vector shape.
Parameters
- x1 OfficeIMO.OfficeLength
- y1 OfficeIMO.OfficeLength
- x2 OfficeIMO.OfficeLength
- y2 OfficeIMO.OfficeLength
- strokeColor OfficeIMO.OfficeColor? = null
- strokeWidth OfficeIMO.OfficeLength? = null
- align OfficeIMO.OfficeAlignment? = null
- spacingBefore OfficeIMO.OfficeLength? = null
- spacingAfter OfficeIMO.OfficeLength? = null
- strokeDashStyle OfficeIMO.Drawing.OfficeStrokeDashStyle = Solid
- strokeLineCap OfficeIMO.Drawing.OfficeStrokeLineCap? = null
- strokeLineJoin OfficeIMO.Drawing.OfficeStrokeLineJoin? = null
- style OfficeIMO.Pdf.PdfDrawingStyle? = null
- linkUri string? = null
- linkContents string? = null
Returns
PdfContentBuilderpublic PdfContentBuilder MultiSelectChoiceField(string name, IEnumerable<string> options, IEnumerable<string>? values = null, OfficeLength? width = null, OfficeLength? height = null, OfficeAlignment align = Left, OfficeLength? fontSize = null, OfficeLength? spacingBefore = null, OfficeLength? spacingAfter = null, PdfFormFieldStyle? style = null) #Adds a simple AcroForm multi-select choice field at the current flow position.
Parameters
- name string
- options System.Collections.Generic.IEnumerable<string>
- values System.Collections.Generic.IEnumerable<string>? = null
- width OfficeIMO.OfficeLength? = null
- height OfficeIMO.OfficeLength? = null
- align OfficeIMO.OfficeAlignment = Left
- fontSize OfficeIMO.OfficeLength? = null
- spacingBefore OfficeIMO.OfficeLength? = null
- spacingAfter OfficeIMO.OfficeLength? = null
- style OfficeIMO.Pdf.PdfFormFieldStyle? = null
Returns
PdfContentBuilderpublic PdfContentBuilder PageBreak(bool preserveEmptyPage) #Starts a new page, optionally preserving an empty current page for consecutive explicit breaks.
Parameters
- preserveEmptyPage bool
Returns
PdfContentBuilderpublic PdfContentBuilder Panel(Action<PdfContentBuilder> build, PdfPanelStyle? style = null) #Adds a styled element while preserving its paragraphs, tables, links, and semantic structure.
Parameters
- build System.Action<OfficeIMO.Pdf.PdfContentBuilder>
- Panel content builder.
- style OfficeIMO.Pdf.PdfPanelStyle? = null
- Panel style (padding, background, border, etc.).
Returns
PdfContentBuilderpublic PdfContentBuilder Path(IEnumerable<OfficePathCommand> commands, OfficeColor? strokeColor = null, OfficeLength? strokeWidth = null, OfficeColor? fillColor = null, OfficeAlignment? align = null, OfficeLength? spacingBefore = null, OfficeLength? spacingAfter = null, OfficeStrokeDashStyle strokeDashStyle = Solid, OfficeStrokeLineCap? strokeLineCap = null, OfficeStrokeLineJoin? strokeLineJoin = null, PdfDrawingStyle? style = null, string? linkUri = null, string? linkContents = null) #Adds a freeform path vector shape.
Parameters
- commands System.Collections.Generic.IEnumerable<OfficeIMO.Drawing.OfficePathCommand>
- strokeColor OfficeIMO.OfficeColor? = null
- strokeWidth OfficeIMO.OfficeLength? = null
- fillColor OfficeIMO.OfficeColor? = null
- align OfficeIMO.OfficeAlignment? = null
- spacingBefore OfficeIMO.OfficeLength? = null
- spacingAfter OfficeIMO.OfficeLength? = null
- strokeDashStyle OfficeIMO.Drawing.OfficeStrokeDashStyle = Solid
- strokeLineCap OfficeIMO.Drawing.OfficeStrokeLineCap? = null
- strokeLineJoin OfficeIMO.Drawing.OfficeStrokeLineJoin? = null
- style OfficeIMO.Pdf.PdfDrawingStyle? = null
- linkUri string? = null
- linkContents string? = null
Returns
PdfContentBuilderpublic PdfContentBuilder Polygon(IEnumerable<OfficePoint> points, OfficeColor? strokeColor = null, OfficeLength? strokeWidth = null, OfficeColor? fillColor = null, OfficeAlignment? align = null, OfficeLength? spacingBefore = null, OfficeLength? spacingAfter = null, OfficeStrokeDashStyle strokeDashStyle = Solid, OfficeStrokeLineCap? strokeLineCap = null, OfficeStrokeLineJoin? strokeLineJoin = null, PdfDrawingStyle? style = null, string? linkUri = null, string? linkContents = null) #Adds a polygon vector shape.
Parameters
- points System.Collections.Generic.IEnumerable<OfficeIMO.Drawing.OfficePoint>
- strokeColor OfficeIMO.OfficeColor? = null
- strokeWidth OfficeIMO.OfficeLength? = null
- fillColor OfficeIMO.OfficeColor? = null
- align OfficeIMO.OfficeAlignment? = null
- spacingBefore OfficeIMO.OfficeLength? = null
- spacingAfter OfficeIMO.OfficeLength? = null
- strokeDashStyle OfficeIMO.Drawing.OfficeStrokeDashStyle = Solid
- strokeLineCap OfficeIMO.Drawing.OfficeStrokeLineCap? = null
- strokeLineJoin OfficeIMO.Drawing.OfficeStrokeLineJoin? = null
- style OfficeIMO.Pdf.PdfDrawingStyle? = null
- linkUri string? = null
- linkContents string? = null
Returns
PdfContentBuilderpublic PdfContentBuilder RadioButtonGroup(string name, IEnumerable<string> options, string? value = null, OfficeLength? size = null, OfficeLength? gap = null, OfficeAlignment align = Left, OfficeLength? spacingBefore = null, OfficeLength? spacingAfter = null, PdfFormFieldStyle? style = null) #Adds a simple AcroForm radio button group at the current flow position.
Parameters
- name string
- options System.Collections.Generic.IEnumerable<string>
- value string? = null
- size OfficeIMO.OfficeLength? = null
- gap OfficeIMO.OfficeLength? = null
- align OfficeIMO.OfficeAlignment = Left
- spacingBefore OfficeIMO.OfficeLength? = null
- spacingAfter OfficeIMO.OfficeLength? = null
- style OfficeIMO.Pdf.PdfFormFieldStyle? = null
Returns
PdfContentBuilderpublic PdfContentBuilder Rectangle(OfficeLength width, OfficeLength height, OfficeColor? strokeColor = null, OfficeLength? strokeWidth = null, OfficeColor? fillColor = null, OfficeAlignment? align = null, OfficeLength? spacingBefore = null, OfficeLength? spacingAfter = null, OfficeStrokeDashStyle strokeDashStyle = Solid, OfficeStrokeLineCap? strokeLineCap = null, OfficeStrokeLineJoin? strokeLineJoin = null, PdfDrawingStyle? style = null, string? linkUri = null, string? linkContents = null) #Adds a rectangle vector shape.
Parameters
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- strokeColor OfficeIMO.OfficeColor? = null
- strokeWidth OfficeIMO.OfficeLength? = null
- fillColor OfficeIMO.OfficeColor? = null
- align OfficeIMO.OfficeAlignment? = null
- spacingBefore OfficeIMO.OfficeLength? = null
- spacingAfter OfficeIMO.OfficeLength? = null
- strokeDashStyle OfficeIMO.Drawing.OfficeStrokeDashStyle = Solid
- strokeLineCap OfficeIMO.Drawing.OfficeStrokeLineCap? = null
- strokeLineJoin OfficeIMO.Drawing.OfficeStrokeLineJoin? = null
- style OfficeIMO.Pdf.PdfDrawingStyle? = null
- linkUri string? = null
- linkContents string? = null
Returns
PdfContentBuilderpublic PdfContentBuilder RoundedRectangle(OfficeLength width, OfficeLength height, OfficeLength cornerRadius, OfficeColor? strokeColor = null, OfficeLength? strokeWidth = null, OfficeColor? fillColor = null, OfficeAlignment? align = null, OfficeLength? spacingBefore = null, OfficeLength? spacingAfter = null, OfficeStrokeDashStyle strokeDashStyle = Solid, OfficeStrokeLineCap? strokeLineCap = null, OfficeStrokeLineJoin? strokeLineJoin = null, PdfDrawingStyle? style = null, string? linkUri = null, string? linkContents = null) #Adds a rounded rectangle vector shape.
Parameters
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- cornerRadius OfficeIMO.OfficeLength
- strokeColor OfficeIMO.OfficeColor? = null
- strokeWidth OfficeIMO.OfficeLength? = null
- fillColor OfficeIMO.OfficeColor? = null
- align OfficeIMO.OfficeAlignment? = null
- spacingBefore OfficeIMO.OfficeLength? = null
- spacingAfter OfficeIMO.OfficeLength? = null
- strokeDashStyle OfficeIMO.Drawing.OfficeStrokeDashStyle = Solid
- strokeLineCap OfficeIMO.Drawing.OfficeStrokeLineCap? = null
- strokeLineJoin OfficeIMO.Drawing.OfficeStrokeLineJoin? = null
- style OfficeIMO.Pdf.PdfDrawingStyle? = null
- linkUri string? = null
- linkContents string? = null
Returns
PdfContentBuilderpublic PdfContentBuilder Row(Action<PdfRowBuilder> build) #Adds a row whose columns can use relative, fixed, automatic, or percentage sizing.
Parameters
- build System.Action<OfficeIMO.Pdf.PdfRowBuilder>
Returns
PdfContentBuilderpublic PdfContentBuilder Section(string title, Action<PdfContentBuilder> build, PdfSectionOptions? options = null) #Adds a semantic section backed by an outline entry and named destination.
Parameters
- title string
- build System.Action<OfficeIMO.Pdf.PdfContentBuilder>
- options OfficeIMO.Pdf.PdfSectionOptions? = null
Returns
PdfContentBuilderpublic PdfContentBuilder Semantic(PdfSemanticRole role, Action<PdfContentBuilder> build, string? alternativeText = null) #Groups content under an explicit tagged-PDF semantic role without changing its visual layout.
Parameters
- role OfficeIMO.Pdf.PdfSemanticRole
- build System.Action<OfficeIMO.Pdf.PdfContentBuilder>
- alternativeText string? = null
Returns
PdfContentBuilderpublic PdfContentBuilder Shape(OfficeShape shape, OfficeAlignment? align = null, OfficeLength? spacingBefore = null, OfficeLength? spacingAfter = null, PdfDrawingStyle? style = null, string? linkUri = null, string? linkContents = null) #Adds a shared OfficeIMO.Drawing shape.
Parameters
- shape OfficeIMO.Drawing.OfficeShape
- align OfficeIMO.OfficeAlignment? = null
- spacingBefore OfficeIMO.OfficeLength? = null
- spacingAfter OfficeIMO.OfficeLength? = null
- style OfficeIMO.Pdf.PdfDrawingStyle? = null
- linkUri string? = null
- linkContents string? = null
Returns
PdfContentBuilderpublic PdfContentBuilder Spacer(OfficeLength height) #Adds invisible vertical space to the current flow.
Parameters
- height OfficeIMO.OfficeLength
Returns
PdfContentBuilderpublic PdfContentBuilder Subtitle(string text, OfficeAlignment align = Left, OfficeColor? color = null) #Adds a subtitle paragraph in the theme accent colour.
Parameters
- text string
- align OfficeIMO.OfficeAlignment = Left
- color OfficeIMO.OfficeColor? = null
Returns
PdfContentBuilderpublic PdfContentBuilder TableOfContents(PdfTableOfContentsOptions? options = null) #Adds an automatically generated, internally linked table of contents.
Parameters
- options OfficeIMO.Pdf.PdfTableOfContentsOptions? = null
Returns
PdfContentBuilderpublic PdfContentBuilder TextAnnotation(string contents, OfficeLength? width = null, OfficeLength? height = null, OfficeAlignment? align = null, OfficeLength? spacingBefore = null, OfficeLength? spacingAfter = null, PdfTextAnnotationIcon icon = Comment, OfficeColor? color = null, bool open = false) #Adds a PDF text annotation at the current flow position.
Parameters
- contents string
- width OfficeIMO.OfficeLength? = null
- height OfficeIMO.OfficeLength? = null
- align OfficeIMO.OfficeAlignment? = null
- spacingBefore OfficeIMO.OfficeLength? = null
- spacingAfter OfficeIMO.OfficeLength? = null
- icon OfficeIMO.Pdf.PdfTextAnnotationIcon = Comment
- color OfficeIMO.OfficeColor? = null
- open bool = false
Returns
PdfContentBuilderpublic PdfContentBuilder TextField(string name, OfficeLength? width = null, OfficeLength? height = null, string value = "", OfficeAlignment align = Left, OfficeLength? fontSize = null, OfficeLength? spacingBefore = null, OfficeLength? spacingAfter = null, PdfFormFieldStyle? style = null) #Adds a simple AcroForm text field at the current flow position.
Parameters
- name string
- width OfficeIMO.OfficeLength? = null
- height OfficeIMO.OfficeLength? = null
- value string = ""
- align OfficeIMO.OfficeAlignment = Left
- fontSize OfficeIMO.OfficeLength? = null
- spacingBefore OfficeIMO.OfficeLength? = null
- spacingAfter OfficeIMO.OfficeLength? = null
- style OfficeIMO.Pdf.PdfFormFieldStyle? = null
Returns
PdfContentBuilderpublic PdfContentBuilder Title(string text, OfficeAlignment align = Left, OfficeColor? color = null, PdfHeadingStyle? style = null) #Adds a document title above the heading hierarchy. It uses the theme title size and stays out of the generated outline.
Parameters
- text string
- align OfficeIMO.OfficeAlignment = Left
- color OfficeIMO.OfficeColor? = null
- style OfficeIMO.Pdf.PdfHeadingStyle? = null
Returns
PdfContentBuilder