API Reference
PdfContentBuilder
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 81 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 52
- Method PdfContentBuilder.Bookmark
- Method PdfContentBuilder.Bullets
- 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.Heading
- Method PdfContentBuilder.HighlightAnnotation
- Method PdfContentBuilder.HR
- Method PdfContentBuilder.Image
- Method PdfContentBuilder.Item
- Method PdfContentBuilder.KeyValueTable
- Method PdfContentBuilder.Layer
- Method PdfContentBuilder.Line
- Method PdfContentBuilder.MultiSelectChoiceField
- Method PdfContentBuilder.Numbered
- Method PdfContentBuilder.PageBreak
- Method PdfContentBuilder.Panel
- Method PdfContentBuilder.PanelParagraph
- Method PdfContentBuilder.Paragraph
- Method PdfContentBuilder.Path
- Method PdfContentBuilder.Polygon
- Method PdfContentBuilder.RadioButtonGroup
- Method PdfContentBuilder.Rectangle
- Method PdfContentBuilder.RichBullets
- Method PdfContentBuilder.RichNumbered
- Method PdfContentBuilder.RoundedRectangle
- Method PdfContentBuilder.Row
- Method PdfContentBuilder.Section
- Method PdfContentBuilder.Semantic
- Method PdfContentBuilder.Shape
- Method PdfContentBuilder.Spacer
- Method PdfContentBuilder.Table
- Method PdfContentBuilder.TableDeferred
- Method PdfContentBuilder.TableOfContents
- Method PdfContentBuilder.TableWithLinks
- Method PdfContentBuilder.Text
- Method PdfContentBuilder.TextAnnotation
- Method PdfContentBuilder.TextField
- Property PdfDocument.Content
Accepted by parameters 29
- Method IPdfComponent.Compose
- Method IPdfContextComponent.Compose
- Method PdfContentBuilder.Column
- Method PdfContentBuilder.Columns
- Method PdfContentBuilder.Deferred
- 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 Bookmark(String name) #PdfContentBuilderAdds a named bookmark at the current flow position.
Parameters
- name System.String
public PdfContentBuilder Bullets(IEnumerable<String> items, PdfAlign align = Left, PdfColor? color = null, PdfListStyle? style = null) #PdfContentBuilderAdds a simple bullet list.
Parameters
- items System.Collections.Generic.IEnumerable<System.String>
- align OfficeIMO.Pdf.PdfAlign = Left
- color OfficeIMO.Pdf.PdfColor? = null
- style OfficeIMO.Pdf.PdfListStyle? = null
public PdfContentBuilder Canvas(Action<PdfPageCanvas> build) #PdfContentBuilderAdds page-canvas drawing commands to the current flow.
Parameters
- build System.Action<OfficeIMO.Pdf.PdfPageCanvas>
public PdfContentBuilder CheckBox(String name, Boolean isChecked = false, Double size = 14, PdfAlign align = Left, Double spacingBefore = 0, Double spacingAfter = 6, String checkedValueName = "Yes", PdfFormFieldStyle? style = null) #PdfContentBuilderAdds a simple AcroForm check box at the current flow position.
Parameters
- name System.String
- isChecked System.Boolean = false
- size System.Double = 14
- align OfficeIMO.Pdf.PdfAlign = Left
- spacingBefore System.Double = 0
- spacingAfter System.Double = 6
- checkedValueName System.String = "Yes"
- style OfficeIMO.Pdf.PdfFormFieldStyle? = null
public PdfContentBuilder ChoiceField(String name, IEnumerable<String> options, String? value = null, Double width = 180, Double height = 22, PdfAlign align = Left, Double fontSize = 10, Double spacingBefore = 0, Double spacingAfter = 6, Boolean isComboBox = true, PdfFormFieldStyle? style = null) #PdfContentBuilderAdds a simple AcroForm choice field at the current flow position.
Parameters
- name System.String
- options System.Collections.Generic.IEnumerable<System.String>
- value System.String? = null
- width System.Double = 180
- height System.Double = 22
- align OfficeIMO.Pdf.PdfAlign = Left
- fontSize System.Double = 10
- spacingBefore System.Double = 0
- spacingAfter System.Double = 6
- isComboBox System.Boolean = true
- style OfficeIMO.Pdf.PdfFormFieldStyle? = null
public PdfContentBuilder Column(Action<PdfContentBuilder> build) #PdfContentBuilderAdds a vertical content sequence using this same universal receiver.
Parameters
- build System.Action<OfficeIMO.Pdf.PdfContentBuilder>
public PdfContentBuilder ColumnBreak() #PdfContentBuilderAdvances automatic multi-column flow to the next column.
public PdfContentBuilder Columns(Action<PdfContentBuilder> build, PdfMultiColumnOptions? options = null) #PdfContentBuilderFlows common block content across equal-width columns in reading order.
Parameters
- build System.Action<OfficeIMO.Pdf.PdfContentBuilder>
- options OfficeIMO.Pdf.PdfMultiColumnOptions? = null
public PdfContentBuilder Component(IPdfComponent component, PdfFlowOptions? options = null, PdfLayoutPositionCapture? capture = null) #PdfContentBuilderAdds a reusable typed component through the canonical flow engine.
Parameters
- component OfficeIMO.Pdf.IPdfComponent
- options OfficeIMO.Pdf.PdfFlowOptions? = null
- capture OfficeIMO.Pdf.PdfLayoutPositionCapture? = null
public PdfContentBuilder Component(IPdfContextComponent component, PdfFlowOptions? options = null, PdfLayoutPositionCapture? capture = null) #PdfContentBuilderAdds 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
public PdfContentBuilder Deferred(Func<PdfFlowContext, Action<PdfContentBuilder>> build, PdfFlowOptions? options = null, PdfLayoutPositionCapture? capture = null) #PdfContentBuilderAdds 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
public PdfContentBuilder Drawing(OfficeDrawing drawing, PdfAlign? align = null, Double? spacingBefore = null, Double? spacingAfter = null, PdfDrawingStyle? style = null, String? linkUri = null, String? linkContents = null) #PdfContentBuilderAdds a shared OfficeIMO.Drawing scene.
Parameters
- drawing OfficeIMO.Drawing.OfficeDrawing
- align OfficeIMO.Pdf.PdfAlign? = null
- spacingBefore System.Double? = null
- spacingAfter System.Double? = null
- style OfficeIMO.Pdf.PdfDrawingStyle? = null
- linkUri System.String? = null
- linkContents System.String? = null
public PdfContentBuilder Element(Action<PdfElementBuilder> build) #PdfContentBuilderBuilds a visual and semantic envelope around nested flow content.
Parameters
- build System.Action<OfficeIMO.Pdf.PdfElementBuilder>
- Element layout, semantics, and content configuration.
public PdfContentBuilder Ellipse(Double width, Double height, PdfColor? strokeColor = null, Double strokeWidth = 1, PdfColor? fillColor = null, PdfAlign? align = null, Double? spacingBefore = null, Double? spacingAfter = null, OfficeStrokeDashStyle strokeDashStyle = Solid, OfficeStrokeLineCap? strokeLineCap = null, OfficeStrokeLineJoin? strokeLineJoin = null, PdfDrawingStyle? style = null, String? linkUri = null, String? linkContents = null) #PdfContentBuilderAdds an ellipse vector shape.
Parameters
- width System.Double
- height System.Double
- strokeColor OfficeIMO.Pdf.PdfColor? = null
- strokeWidth System.Double = 1
- fillColor OfficeIMO.Pdf.PdfColor? = null
- align OfficeIMO.Pdf.PdfAlign? = null
- spacingBefore System.Double? = null
- spacingAfter System.Double? = null
- strokeDashStyle OfficeIMO.Drawing.OfficeStrokeDashStyle = Solid
- strokeLineCap OfficeIMO.Drawing.OfficeStrokeLineCap? = null
- strokeLineJoin OfficeIMO.Drawing.OfficeStrokeLineJoin? = null
- style OfficeIMO.Pdf.PdfDrawingStyle? = null
- linkUri System.String? = null
- linkContents System.String? = null
public PdfContentBuilder Flow(Action<PdfContentBuilder> build, PdfFlowOptions? options = null, PdfLayoutPositionCapture? capture = null) #PdfContentBuilderAdds 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
public PdfContentBuilder FreeTextAnnotation(String contents, Double width, Double height, PdfAlign? align = null, Double? spacingBefore = null, Double? spacingAfter = null, Double fontSize = 10, PdfColor? textColor = null, PdfColor? borderColor = null, Double borderWidth = 1, PdfColor? fillColor = null, PdfAlign textAlign = Left, Double padding = 3, Double? lineHeight = null) #PdfContentBuilderAdds a PDF free-text annotation at the current flow position.
Parameters
- contents System.String
- width System.Double
- height System.Double
- align OfficeIMO.Pdf.PdfAlign? = null
- spacingBefore System.Double? = null
- spacingAfter System.Double? = null
- fontSize System.Double = 10
- textColor OfficeIMO.Pdf.PdfColor? = null
- borderColor OfficeIMO.Pdf.PdfColor? = null
- borderWidth System.Double = 1
- fillColor OfficeIMO.Pdf.PdfColor? = null
- textAlign OfficeIMO.Pdf.PdfAlign = Left
- padding System.Double = 3
- lineHeight System.Double? = null
public PdfContentBuilder H1(String text, PdfHeadingStyle? style = null, String? linkUri = null, String? linkContents = null, String? linkDestinationName = null) #PdfContentBuilderAdds an H1 heading.
Parameters
- text System.String
- style OfficeIMO.Pdf.PdfHeadingStyle? = null
- linkUri System.String? = null
- linkContents System.String? = null
- linkDestinationName System.String? = null
public PdfContentBuilder H1(String text, PdfAlign align, PdfColor? color = null, String? linkUri = null, PdfHeadingStyle? style = null, String? linkContents = null, String? linkDestinationName = null) #PdfContentBuilderAdds an H1 heading with explicit alignment and color.
Parameters
- text System.String
- align OfficeIMO.Pdf.PdfAlign
- color OfficeIMO.Pdf.PdfColor? = null
- linkUri System.String? = null
- style OfficeIMO.Pdf.PdfHeadingStyle? = null
- linkContents System.String? = null
- linkDestinationName System.String? = null
public PdfContentBuilder H2(String text, PdfHeadingStyle? style = null, String? linkUri = null, String? linkContents = null, String? linkDestinationName = null) #PdfContentBuilderAdds an H2 heading.
Parameters
- text System.String
- style OfficeIMO.Pdf.PdfHeadingStyle? = null
- linkUri System.String? = null
- linkContents System.String? = null
- linkDestinationName System.String? = null
public PdfContentBuilder H2(String text, PdfAlign align, PdfColor? color = null, String? linkUri = null, PdfHeadingStyle? style = null, String? linkContents = null, String? linkDestinationName = null) #PdfContentBuilderAdds an H2 heading with explicit alignment and color.
Parameters
- text System.String
- align OfficeIMO.Pdf.PdfAlign
- color OfficeIMO.Pdf.PdfColor? = null
- linkUri System.String? = null
- style OfficeIMO.Pdf.PdfHeadingStyle? = null
- linkContents System.String? = null
- linkDestinationName System.String? = null
public PdfContentBuilder H3(String text, PdfHeadingStyle? style = null, String? linkUri = null, String? linkContents = null, String? linkDestinationName = null) #PdfContentBuilderAdds an H3 heading.
Parameters
- text System.String
- style OfficeIMO.Pdf.PdfHeadingStyle? = null
- linkUri System.String? = null
- linkContents System.String? = null
- linkDestinationName System.String? = null
public PdfContentBuilder H3(String text, PdfAlign align, PdfColor? color = null, String? linkUri = null, PdfHeadingStyle? style = null, String? linkContents = null, String? linkDestinationName = null) #PdfContentBuilderAdds an H3 heading with explicit alignment and color.
Parameters
- text System.String
- align OfficeIMO.Pdf.PdfAlign
- color OfficeIMO.Pdf.PdfColor? = null
- linkUri System.String? = null
- style OfficeIMO.Pdf.PdfHeadingStyle? = null
- linkContents System.String? = null
- linkDestinationName System.String? = null
public PdfContentBuilder Heading(Int32 level, String text, PdfAlign align = Left, PdfColor? color = null, String? linkUri = null, PdfHeadingStyle? style = null, String? linkContents = null, String? linkDestinationName = null) #PdfContentBuilderAdds a heading at an authored level from 1 through 9.
Parameters
- level System.Int32
- text System.String
- align OfficeIMO.Pdf.PdfAlign = Left
- color OfficeIMO.Pdf.PdfColor? = null
- linkUri System.String? = null
- style OfficeIMO.Pdf.PdfHeadingStyle? = null
- linkContents System.String? = null
- linkDestinationName System.String? = null
public PdfContentBuilder HighlightAnnotation(String contents, Double width, Double height, PdfAlign? align = null, Double? spacingBefore = null, Double? spacingAfter = null, PdfColor? color = null) #PdfContentBuilderAdds a PDF highlight annotation rectangle at the current flow position.
Parameters
- contents System.String
- width System.Double
- height System.Double
- align OfficeIMO.Pdf.PdfAlign? = null
- spacingBefore System.Double? = null
- spacingAfter System.Double? = null
- color OfficeIMO.Pdf.PdfColor? = null
public PdfContentBuilder HR(Double? thickness = null, PdfColor? color = null, Double? spacingBefore = null, Double? spacingAfter = null, PdfHorizontalRuleStyle? style = null) #PdfContentBuilderAdds a horizontal rule.
Parameters
- thickness System.Double? = null
- Line thickness (pt).
- color OfficeIMO.Pdf.PdfColor? = null
- Optional color; inherited from the current default rule style when omitted.
- spacingBefore System.Double? = null
- Top spacing (pt), inherited from the current default rule style when omitted.
- spacingAfter System.Double? = null
- Bottom spacing (pt), inherited from the current default rule style when omitted.
- style OfficeIMO.Pdf.PdfHorizontalRuleStyle? = null
- Optional reusable rule style.
public PdfContentBuilder Image(Byte[] jpegBytes, Double width, Double height, PdfAlign? align = null, OfficeClipPath? clipPath = null, OfficeImageFit? fit = null, Double? spacingBefore = null, Double? spacingAfter = null, PdfImageStyle? style = null, String? linkUri = null, String? linkContents = null) #PdfContentBuilderAdds a raster image supported by OfficeIMO.Drawing.
Parameters
- jpegBytes System.Byte[]
- Supported image bytes.
- width System.Double
- Target width in points.
- height System.Double
- Target height in points.
- align OfficeIMO.Pdf.PdfAlign? = null
- Image alignment inside content width.
- clipPath OfficeIMO.Drawing.OfficeClipPath? = null
- Optional local clipping path applied before drawing the image.
- fit OfficeIMO.Drawing.OfficeImageFit? = null
- Image fitting mode inside the target box.
- spacingBefore System.Double? = null
- Top spacing (pt), inherited from the current default image style when omitted.
- spacingAfter System.Double? = null
- Bottom spacing (pt), inherited from the current default image style when omitted.
- style OfficeIMO.Pdf.PdfImageStyle? = null
- Optional reusable image placement style.
- linkUri System.String? = null
- Optional absolute URI or catalog-base-relative URI for an image link annotation.
- linkContents System.String? = null
- Optional link annotation contents metadata.
public PdfContentBuilder Image(Byte[] jpegBytes, Double width, Double height, String? alternativeText) #PdfContentBuilderAdds a meaningful image from supported image bytes with alternate text.
Parameters
- jpegBytes System.Byte[]
- width System.Double
- height System.Double
- alternativeText System.String?
public PdfContentBuilder Image(Byte[] jpegBytes, Double width, Double height, PdfAlign? align, OfficeClipPath? clipPath, OfficeImageFit? fit, Double? spacingBefore, Double? spacingAfter, PdfImageStyle? style, String? linkUri, String? linkContents, String? alternativeText) #PdfContentBuilderAdds a raster image supported by OfficeIMO.Drawing.
Parameters
- jpegBytes System.Byte[]
- Supported image bytes.
- width System.Double
- Target width in points.
- height System.Double
- Target height in points.
- align OfficeIMO.Pdf.PdfAlign?
- Image alignment inside content width.
- clipPath OfficeIMO.Drawing.OfficeClipPath?
- Optional local clipping path applied before drawing the image.
- fit OfficeIMO.Drawing.OfficeImageFit?
- Image fitting mode inside the target box.
- spacingBefore System.Double?
- Top spacing (pt), inherited from the current default image style when omitted.
- spacingAfter System.Double?
- Bottom spacing (pt), inherited from the current default image style when omitted.
- style OfficeIMO.Pdf.PdfImageStyle?
- Optional reusable image placement style.
- linkUri System.String?
- Optional absolute URI or catalog-base-relative URI for an image link annotation.
- linkContents System.String?
- Optional link annotation contents metadata.
- alternativeText System.String?
- Optional alternate text for meaningful generated images.
public PdfContentBuilder Item() #PdfContentBuilderReturns this content receiver for readable grouping in fluent chains.
public PdfContentBuilder Item(Action<PdfContentBuilder> build) #PdfContentBuilderAdds a logical group of content without introducing layout behavior.
Parameters
- build System.Action<OfficeIMO.Pdf.PdfContentBuilder>
public PdfContentBuilder KeyValueTable(IEnumerable<KeyValuePair<String, String?>> rows, PdfAlign align = Left, PdfTableStyle? style = null, Boolean includeHeader = false, String keyHeader = "Key", String valueHeader = "Value") #PdfContentBuilderAdds a two-column key/value table.
Parameters
- rows System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.String?>>
- align OfficeIMO.Pdf.PdfAlign = Left
- style OfficeIMO.Pdf.PdfTableStyle? = null
- includeHeader System.Boolean = false
- keyHeader System.String = "Key"
- valueHeader System.String = "Value"
public PdfContentBuilder KeyValueTable(IEnumerable<PdfKeyValueRow> rows, PdfAlign align = Left, PdfTableStyle? style = null, Boolean includeHeader = false, String keyHeader = "Key", String valueHeader = "Value") #PdfContentBuilderAdds a two-column key/value table with rich row values.
Parameters
- rows System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfKeyValueRow>
- align OfficeIMO.Pdf.PdfAlign = Left
- style OfficeIMO.Pdf.PdfTableStyle? = null
- includeHeader System.Boolean = false
- keyHeader System.String = "Key"
- valueHeader System.String = "Value"
public PdfContentBuilder Layer(String name, Action<PdfContentBuilder> build, PdfLayerOptions? options = null) #PdfContentBuilderAdds flow content controlled by a generated optional-content layer.
Parameters
- name System.String
- build System.Action<OfficeIMO.Pdf.PdfContentBuilder>
- options OfficeIMO.Pdf.PdfLayerOptions? = null
public PdfContentBuilder Line(Double x1, Double y1, Double x2, Double y2, PdfColor? strokeColor = null, Double strokeWidth = 1, PdfAlign? align = null, Double? spacingBefore = null, Double? spacingAfter = null, OfficeStrokeDashStyle strokeDashStyle = Solid, OfficeStrokeLineCap? strokeLineCap = null, OfficeStrokeLineJoin? strokeLineJoin = null, PdfDrawingStyle? style = null, String? linkUri = null, String? linkContents = null) #PdfContentBuilderAdds a line vector shape.
Parameters
- x1 System.Double
- y1 System.Double
- x2 System.Double
- y2 System.Double
- strokeColor OfficeIMO.Pdf.PdfColor? = null
- strokeWidth System.Double = 1
- align OfficeIMO.Pdf.PdfAlign? = null
- spacingBefore System.Double? = null
- spacingAfter System.Double? = null
- strokeDashStyle OfficeIMO.Drawing.OfficeStrokeDashStyle = Solid
- strokeLineCap OfficeIMO.Drawing.OfficeStrokeLineCap? = null
- strokeLineJoin OfficeIMO.Drawing.OfficeStrokeLineJoin? = null
- style OfficeIMO.Pdf.PdfDrawingStyle? = null
- linkUri System.String? = null
- linkContents System.String? = null
public PdfContentBuilder MultiSelectChoiceField(String name, IEnumerable<String> options, IEnumerable<String>? values = null, Double width = 180, Double height = 72, PdfAlign align = Left, Double fontSize = 10, Double spacingBefore = 0, Double spacingAfter = 6, PdfFormFieldStyle? style = null) #PdfContentBuilderAdds a simple AcroForm multi-select choice field at the current flow position.
Parameters
- name System.String
- options System.Collections.Generic.IEnumerable<System.String>
- values System.Collections.Generic.IEnumerable<System.String>? = null
- width System.Double = 180
- height System.Double = 72
- align OfficeIMO.Pdf.PdfAlign = Left
- fontSize System.Double = 10
- spacingBefore System.Double = 0
- spacingAfter System.Double = 6
- style OfficeIMO.Pdf.PdfFormFieldStyle? = null
public PdfContentBuilder Numbered(IEnumerable<String> items, PdfAlign align = Left, PdfColor? color = null, Int32 startNumber = 1, PdfListStyle? style = null) #PdfContentBuilderAdds a simple numbered list.
Parameters
- items System.Collections.Generic.IEnumerable<System.String>
- align OfficeIMO.Pdf.PdfAlign = Left
- color OfficeIMO.Pdf.PdfColor? = null
- startNumber System.Int32 = 1
- style OfficeIMO.Pdf.PdfListStyle? = null
public PdfContentBuilder PageBreak(Boolean preserveEmptyPage) #PdfContentBuilderStarts a new page, optionally preserving an empty current page for consecutive explicit breaks.
Parameters
- preserveEmptyPage System.Boolean
public PdfContentBuilder Panel(Action<PdfContentBuilder> build, PdfPanelStyle? style = null) #PdfContentBuilderAdds 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.).
public PdfContentBuilder PanelParagraph(Action<PdfParagraphBuilder> build, PdfPanelStyle? style = null, PdfAlign align = Left, PdfColor? defaultColor = null) #PdfContentBuilderAdds a paragraph inside a styled panel.
Parameters
- build System.Action<OfficeIMO.Pdf.PdfParagraphBuilder>
- Paragraph content builder.
- style OfficeIMO.Pdf.PdfPanelStyle? = null
- Panel style (padding, background, border, etc.).
- align OfficeIMO.Pdf.PdfAlign = Left
- Paragraph alignment.
- defaultColor OfficeIMO.Pdf.PdfColor? = null
- Optional default text color.
public PdfContentBuilder Paragraph(Action<PdfParagraphBuilder> build, PdfAlign align = Left, PdfColor? defaultColor = null, PdfParagraphStyle? style = null) #PdfContentBuilderAdds a paragraph built from styled text runs.
Parameters
- build System.Action<OfficeIMO.Pdf.PdfParagraphBuilder>
- Paragraph content builder.
- align OfficeIMO.Pdf.PdfAlign = Left
- Paragraph alignment.
- defaultColor OfficeIMO.Pdf.PdfColor? = null
- Optional default text color.
- style OfficeIMO.Pdf.PdfParagraphStyle? = null
- Optional paragraph layout style.
public PdfContentBuilder Path(IEnumerable<OfficePathCommand> commands, PdfColor? strokeColor = null, Double strokeWidth = 1, PdfColor? fillColor = null, PdfAlign? align = null, Double? spacingBefore = null, Double? spacingAfter = null, OfficeStrokeDashStyle strokeDashStyle = Solid, OfficeStrokeLineCap? strokeLineCap = null, OfficeStrokeLineJoin? strokeLineJoin = null, PdfDrawingStyle? style = null, String? linkUri = null, String? linkContents = null) #PdfContentBuilderAdds a freeform path vector shape.
Parameters
- commands System.Collections.Generic.IEnumerable<OfficeIMO.Drawing.OfficePathCommand>
- strokeColor OfficeIMO.Pdf.PdfColor? = null
- strokeWidth System.Double = 1
- fillColor OfficeIMO.Pdf.PdfColor? = null
- align OfficeIMO.Pdf.PdfAlign? = null
- spacingBefore System.Double? = null
- spacingAfter System.Double? = null
- strokeDashStyle OfficeIMO.Drawing.OfficeStrokeDashStyle = Solid
- strokeLineCap OfficeIMO.Drawing.OfficeStrokeLineCap? = null
- strokeLineJoin OfficeIMO.Drawing.OfficeStrokeLineJoin? = null
- style OfficeIMO.Pdf.PdfDrawingStyle? = null
- linkUri System.String? = null
- linkContents System.String? = null
public PdfContentBuilder Polygon(IEnumerable<OfficePoint> points, PdfColor? strokeColor = null, Double strokeWidth = 1, PdfColor? fillColor = null, PdfAlign? align = null, Double? spacingBefore = null, Double? spacingAfter = null, OfficeStrokeDashStyle strokeDashStyle = Solid, OfficeStrokeLineCap? strokeLineCap = null, OfficeStrokeLineJoin? strokeLineJoin = null, PdfDrawingStyle? style = null, String? linkUri = null, String? linkContents = null) #PdfContentBuilderAdds a polygon vector shape.
Parameters
- points System.Collections.Generic.IEnumerable<OfficeIMO.Drawing.OfficePoint>
- strokeColor OfficeIMO.Pdf.PdfColor? = null
- strokeWidth System.Double = 1
- fillColor OfficeIMO.Pdf.PdfColor? = null
- align OfficeIMO.Pdf.PdfAlign? = null
- spacingBefore System.Double? = null
- spacingAfter System.Double? = null
- strokeDashStyle OfficeIMO.Drawing.OfficeStrokeDashStyle = Solid
- strokeLineCap OfficeIMO.Drawing.OfficeStrokeLineCap? = null
- strokeLineJoin OfficeIMO.Drawing.OfficeStrokeLineJoin? = null
- style OfficeIMO.Pdf.PdfDrawingStyle? = null
- linkUri System.String? = null
- linkContents System.String? = null
public PdfContentBuilder RadioButtonGroup(String name, IEnumerable<String> options, String? value = null, Double size = 14, Double gap = 6, PdfAlign align = Left, Double spacingBefore = 0, Double spacingAfter = 6, PdfFormFieldStyle? style = null) #PdfContentBuilderAdds a simple AcroForm radio button group at the current flow position.
Parameters
- name System.String
- options System.Collections.Generic.IEnumerable<System.String>
- value System.String? = null
- size System.Double = 14
- gap System.Double = 6
- align OfficeIMO.Pdf.PdfAlign = Left
- spacingBefore System.Double = 0
- spacingAfter System.Double = 6
- style OfficeIMO.Pdf.PdfFormFieldStyle? = null
public PdfContentBuilder Rectangle(Double width, Double height, PdfColor? strokeColor = null, Double strokeWidth = 1, PdfColor? fillColor = null, PdfAlign? align = null, Double? spacingBefore = null, Double? spacingAfter = null, OfficeStrokeDashStyle strokeDashStyle = Solid, OfficeStrokeLineCap? strokeLineCap = null, OfficeStrokeLineJoin? strokeLineJoin = null, PdfDrawingStyle? style = null, String? linkUri = null, String? linkContents = null) #PdfContentBuilderAdds a rectangle vector shape.
Parameters
- width System.Double
- height System.Double
- strokeColor OfficeIMO.Pdf.PdfColor? = null
- strokeWidth System.Double = 1
- fillColor OfficeIMO.Pdf.PdfColor? = null
- align OfficeIMO.Pdf.PdfAlign? = null
- spacingBefore System.Double? = null
- spacingAfter System.Double? = null
- strokeDashStyle OfficeIMO.Drawing.OfficeStrokeDashStyle = Solid
- strokeLineCap OfficeIMO.Drawing.OfficeStrokeLineCap? = null
- strokeLineJoin OfficeIMO.Drawing.OfficeStrokeLineJoin? = null
- style OfficeIMO.Pdf.PdfDrawingStyle? = null
- linkUri System.String? = null
- linkContents System.String? = null
public PdfContentBuilder RichBullets(IEnumerable<PdfListItem> items, PdfAlign align = Left, PdfColor? color = null, PdfListStyle? style = null) #PdfContentBuilderAdds a bullet list whose items can contain rich inline text runs.
Parameters
- items System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfListItem>
- align OfficeIMO.Pdf.PdfAlign = Left
- color OfficeIMO.Pdf.PdfColor? = null
- style OfficeIMO.Pdf.PdfListStyle? = null
public PdfContentBuilder RichNumbered(IEnumerable<PdfListItem> items, PdfAlign align = Left, PdfColor? color = null, Int32 startNumber = 1, PdfListStyle? style = null) #PdfContentBuilderAdds a numbered list whose items can contain rich inline text runs.
Parameters
- items System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfListItem>
- align OfficeIMO.Pdf.PdfAlign = Left
- color OfficeIMO.Pdf.PdfColor? = null
- startNumber System.Int32 = 1
- style OfficeIMO.Pdf.PdfListStyle? = null
public PdfContentBuilder RoundedRectangle(Double width, Double height, Double cornerRadius, PdfColor? strokeColor = null, Double strokeWidth = 1, PdfColor? fillColor = null, PdfAlign? align = null, Double? spacingBefore = null, Double? spacingAfter = null, OfficeStrokeDashStyle strokeDashStyle = Solid, OfficeStrokeLineCap? strokeLineCap = null, OfficeStrokeLineJoin? strokeLineJoin = null, PdfDrawingStyle? style = null, String? linkUri = null, String? linkContents = null) #PdfContentBuilderAdds a rounded rectangle vector shape.
Parameters
- width System.Double
- height System.Double
- cornerRadius System.Double
- strokeColor OfficeIMO.Pdf.PdfColor? = null
- strokeWidth System.Double = 1
- fillColor OfficeIMO.Pdf.PdfColor? = null
- align OfficeIMO.Pdf.PdfAlign? = null
- spacingBefore System.Double? = null
- spacingAfter System.Double? = null
- strokeDashStyle OfficeIMO.Drawing.OfficeStrokeDashStyle = Solid
- strokeLineCap OfficeIMO.Drawing.OfficeStrokeLineCap? = null
- strokeLineJoin OfficeIMO.Drawing.OfficeStrokeLineJoin? = null
- style OfficeIMO.Pdf.PdfDrawingStyle? = null
- linkUri System.String? = null
- linkContents System.String? = null
public PdfContentBuilder Row(Action<PdfRowBuilder> build) #PdfContentBuilderAdds a row whose columns can use relative, fixed, automatic, or percentage sizing.
Parameters
- build System.Action<OfficeIMO.Pdf.PdfRowBuilder>
public PdfContentBuilder Section(String title, Action<PdfContentBuilder> build, PdfSectionOptions? options = null) #PdfContentBuilderAdds a semantic section backed by an outline entry and named destination.
Parameters
- title System.String
- build System.Action<OfficeIMO.Pdf.PdfContentBuilder>
- options OfficeIMO.Pdf.PdfSectionOptions? = null
public PdfContentBuilder Semantic(PdfSemanticRole role, Action<PdfContentBuilder> build, String? alternativeText = null) #PdfContentBuilderGroups 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 System.String? = null
public PdfContentBuilder Shape(OfficeShape shape, PdfAlign? align = null, Double? spacingBefore = null, Double? spacingAfter = null, PdfDrawingStyle? style = null, String? linkUri = null, String? linkContents = null) #PdfContentBuilderAdds a shared OfficeIMO.Drawing shape.
Parameters
- shape OfficeIMO.Drawing.OfficeShape
- align OfficeIMO.Pdf.PdfAlign? = null
- spacingBefore System.Double? = null
- spacingAfter System.Double? = null
- style OfficeIMO.Pdf.PdfDrawingStyle? = null
- linkUri System.String? = null
- linkContents System.String? = null
public PdfContentBuilder Spacer(Double height) #PdfContentBuilderAdds invisible vertical space to the current flow.
Parameters
- height System.Double
public PdfContentBuilder Table(IEnumerable<String[]> rows, PdfAlign align = Left, PdfTableStyle? style = null) #PdfContentBuilderAdds a simple text table.
Parameters
- rows System.Collections.Generic.IEnumerable<System.String[]>
- Sequence of row arrays.
- align OfficeIMO.Pdf.PdfAlign = Left
- Table alignment.
- style OfficeIMO.Pdf.PdfTableStyle? = null
- Optional table styling.
public PdfContentBuilder Table(IEnumerable<PdfTableCell[]> rows, PdfAlign align = Left, PdfTableStyle? style = null) #PdfContentBuilderAdds a table with explicit cells, including optional column spans.
Parameters
- rows System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCell[]>
- Sequence of rows made from explicit table cells.
- align OfficeIMO.Pdf.PdfAlign = Left
- Table alignment.
- style OfficeIMO.Pdf.PdfTableStyle? = null
- Optional table styling.
public PdfContentBuilder TableDeferred(Func<IEnumerable<String[]>> rowFactory, Int32 batchSize = 256, PdfAlign align = Left, PdfTableStyle? style = null) #PdfContentBuilderAdds a deferred simple-text table whose rows are materialized in bounded batches.
Parameters
- rowFactory System.Func<System.Collections.Generic.IEnumerable<System.String[]>>
- batchSize System.Int32 = 256
- align OfficeIMO.Pdf.PdfAlign = Left
- style OfficeIMO.Pdf.PdfTableStyle? = null
public PdfContentBuilder TableDeferred(Func<IEnumerable<PdfTableCell[]>> rowFactory, Int32 batchSize = 256, PdfAlign align = Left, PdfTableStyle? style = null) #PdfContentBuilderAdds a deferred explicit-cell table whose rows are materialized in bounded batches.
Parameters
- rowFactory System.Func<System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCell[]>>
- batchSize System.Int32 = 256
- align OfficeIMO.Pdf.PdfAlign = Left
- style OfficeIMO.Pdf.PdfTableStyle? = null
public PdfContentBuilder TableOfContents(PdfTableOfContentsOptions? options = null) #PdfContentBuilderAdds an automatically generated, internally linked table of contents.
Parameters
- options OfficeIMO.Pdf.PdfTableOfContentsOptions? = null
public PdfContentBuilder TableWithLinks(IEnumerable<String[]> rows, Dictionary<ValueTuple<Int32, Int32>, String> links, PdfAlign align = Left, PdfTableStyle? style = null) #PdfContentBuilderAdds a simple text table and attaches link URIs to specific cells.
Parameters
- rows System.Collections.Generic.IEnumerable<System.String[]>
- Sequence of row arrays.
- links System.Collections.Generic.Dictionary<System.ValueTuple<System.Int32, System.Int32>, System.String>
- Per-cell absolute or catalog-base-relative link URIs keyed by zero-based row and column.
- align OfficeIMO.Pdf.PdfAlign = Left
- Table alignment.
- style OfficeIMO.Pdf.PdfTableStyle? = null
- Optional table styling.
public PdfContentBuilder Text(String text, PdfAlign align = Left, PdfColor? color = null, PdfParagraphStyle? style = null) #PdfContentBuilderAdds a plain paragraph using the current text defaults.
Parameters
- text System.String
- align OfficeIMO.Pdf.PdfAlign = Left
- color OfficeIMO.Pdf.PdfColor? = null
- style OfficeIMO.Pdf.PdfParagraphStyle? = null
public PdfContentBuilder TextAnnotation(String contents, Double width = 18, Double height = 18, PdfAlign? align = null, Double? spacingBefore = null, Double? spacingAfter = null, PdfTextAnnotationIcon icon = Comment, PdfColor? color = null, Boolean open = false) #PdfContentBuilderAdds a PDF text annotation at the current flow position.
Parameters
- contents System.String
- width System.Double = 18
- height System.Double = 18
- align OfficeIMO.Pdf.PdfAlign? = null
- spacingBefore System.Double? = null
- spacingAfter System.Double? = null
- icon OfficeIMO.Pdf.PdfTextAnnotationIcon = Comment
- color OfficeIMO.Pdf.PdfColor? = null
- open System.Boolean = false
public PdfContentBuilder TextField(String name, Double width = 180, Double height = 22, String value = "", PdfAlign align = Left, Double fontSize = 10, Double spacingBefore = 0, Double spacingAfter = 6, PdfFormFieldStyle? style = null) #PdfContentBuilderAdds a simple AcroForm text field at the current flow position.
Parameters
- name System.String
- width System.Double = 180
- height System.Double = 22
- value System.String = ""
- align OfficeIMO.Pdf.PdfAlign = Left
- fontSize System.Double = 10
- spacingBefore System.Double = 0
- spacingAfter System.Double = 6
- style OfficeIMO.Pdf.PdfFormFieldStyle? = null
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?