PdfPageCanvas
OfficeIMO.Pdf
Builds foreground page content at absolute top-left page coordinates in the order items are added.
Inheritance
- object
- PdfPageCanvas
Usage
Explore 34 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 24
- Method PdfPageCanvas.ActualText
- Method PdfPageCanvas.Artifact
- Method PdfPageCanvas.CheckBox
- Method PdfPageCanvas.CheckBoxWithExportValue
- Method PdfPageCanvas.ChoiceField
- Method PdfPageCanvas.Clip
- Method PdfPageCanvas.Drawing
- Method PdfPageCanvas.Effect
- Method PdfPageCanvas.Figure
- Method PdfPageCanvas.FreeTextAnnotation
- Method PdfPageCanvas.HighlightAnnotation
- Method PdfPageCanvas.Image
- Method PdfPageCanvas.LinkToNamedDestination
- Method PdfPageCanvas.NamedDestination
- Method PdfPageCanvas.Outline
- Method PdfPageCanvas.RadioButton
- Method PdfPageCanvas.Shape
- Method PdfPageCanvas.Structure
- Method PdfPageCanvas.Table
- Method PdfPageCanvas.Text
- Method PdfPageCanvas.TextAnnotation
- Method PdfPageCanvas.TextBox
- Method PdfPageCanvas.TextField
- Method PdfPageCanvas.WithBlendMode
Accepted by parameters 10
- Method PdfContentBuilder.Canvas
- Method PdfDocumentStamper.Content
- Method PdfPageBuilder.Canvas
- Method PdfPageCanvas.ActualText
- Method PdfPageCanvas.Artifact
- Method PdfPageCanvas.Clip
- Method PdfPageCanvas.Effect
- Method PdfPageCanvas.Figure
- Method PdfPageCanvas.Structure
- Method PdfPageCanvas.WithBlendMode
Constructors
Methods
public PdfPageCanvas ActualText(string text, Action<PdfPageCanvas> build) #Groups positioned text fragments under one logical replacement string for extraction and accessibility. Child paint remains unchanged while readers that honor ActualText receive the supplied logical text once.
Parameters
- text string
- build System.Action<OfficeIMO.Pdf.PdfPageCanvas>
Returns
PdfPageCanvaspublic PdfPageCanvas ActualText(string text, OfficeLength x, OfficeLength y, Action<PdfPageCanvas> build) #Groups positioned paint under one logical replacement string and anchors the invisible extraction span at an absolute top-left page coordinate.
Parameters
- text string
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- build System.Action<OfficeIMO.Pdf.PdfPageCanvas>
Returns
PdfPageCanvaspublic PdfPageCanvas ActualText(string text, OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, Action<PdfPageCanvas> build) #Groups paint under a logical replacement with an extraction rectangle in top-left page coordinates. The rectangle preserves spacing between adjacent spans; the paint remains owned by the same replacement for extraction and editing.
Parameters
- text string
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- build System.Action<OfficeIMO.Pdf.PdfPageCanvas>
Returns
PdfPageCanvaspublic PdfPageCanvas Artifact(Action<PdfPageCanvas> build) #Groups decorative canvas content as a PDF artifact excluded from the structure tree.
Parameters
- build System.Action<OfficeIMO.Pdf.PdfPageCanvas>
Returns
PdfPageCanvaspublic PdfPageCanvas CheckBox(string name, bool isChecked, OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, string checkedValueName = "Yes", PdfFormFieldStyle? style = null) #Adds an interactive check box at fixed top-left page coordinates.
Parameters
- name string
- isChecked bool
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- checkedValueName string = "Yes"
- style OfficeIMO.Pdf.PdfFormFieldStyle? = null
Returns
PdfPageCanvaspublic PdfPageCanvas CheckBoxWithExportValue(string name, bool isChecked, OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, string checkedValueName, string exportValue, PdfFormFieldStyle? style = null) #Adds an interactive check box with separate PDF appearance-state and exported values.
Parameters
- name string
- isChecked bool
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- checkedValueName string
- exportValue string
- style OfficeIMO.Pdf.PdfFormFieldStyle? = null
Returns
PdfPageCanvaspublic PdfPageCanvas ChoiceField(string name, IEnumerable<string> options, IEnumerable<string>? values, OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, OfficeLength? fontSize = null, bool isComboBox = true, bool allowsMultipleSelection = false, PdfFormFieldStyle? style = null) #Adds an interactive choice field at fixed top-left page coordinates.
Parameters
- name string
- options System.Collections.Generic.IEnumerable<string>
- values System.Collections.Generic.IEnumerable<string>?
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- fontSize OfficeIMO.OfficeLength? = null
- isComboBox bool = true
- allowsMultipleSelection bool = false
- style OfficeIMO.Pdf.PdfFormFieldStyle? = null
Returns
PdfPageCanvaspublic PdfPageCanvas ChoiceField(string name, IEnumerable<PdfFormFieldOption> options, IEnumerable<string>? values, OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, OfficeLength? fontSize = null, bool isComboBox = true, bool allowsMultipleSelection = false, PdfFormFieldStyle? style = null) #Adds an interactive choice field whose export values differ from its displayed labels.
Parameters
- name string
- options System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfFormFieldOption>
- values System.Collections.Generic.IEnumerable<string>?
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- fontSize OfficeIMO.OfficeLength? = null
- isComboBox bool = true
- allowsMultipleSelection bool = false
- style OfficeIMO.Pdf.PdfFormFieldStyle? = null
Returns
PdfPageCanvaspublic PdfPageCanvas Clip(OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, Action<PdfPageCanvas> build) #Adds a clipped fixed-position canvas frame using top-left page coordinates.
Parameters
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- build System.Action<OfficeIMO.Pdf.PdfPageCanvas>
Returns
PdfPageCanvaspublic PdfPageCanvas Clip(OfficeLength x, OfficeLength y, OfficeClipPath clipPath, Action<PdfPageCanvas> build) #Adds a path-clipped fixed-position canvas frame using top-left page coordinates.
Parameters
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- clipPath OfficeIMO.Drawing.OfficeClipPath
- build System.Action<OfficeIMO.Pdf.PdfPageCanvas>
Returns
PdfPageCanvaspublic PdfPageCanvas Drawing(OfficeDrawing drawing, OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, PdfDrawingStyle? style = null, string? linkUri = null, string? linkContents = null, double rotationAngle = 0) #Adds a shared vector drawing inside a fixed page rectangle using top-left page coordinates.
Parameters
- drawing OfficeIMO.Drawing.OfficeDrawing
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- style OfficeIMO.Pdf.PdfDrawingStyle? = null
- linkUri string? = null
- linkContents string? = null
- rotationAngle double = 0
Returns
PdfPageCanvaspublic PdfPageCanvas Effect(OfficeTransform transform, double opacity, Action<PdfPageCanvas> build) #Adds nested canvas content through one top-left-coordinate affine transform and opacity state.
Parameters
- transform OfficeIMO.Drawing.OfficeTransform
- opacity double
- build System.Action<OfficeIMO.Pdf.PdfPageCanvas>
Returns
PdfPageCanvaspublic PdfPageCanvas Effect(OfficeTransform transform, double opacity, OfficeBlendMode blendMode, Action<PdfPageCanvas> build) #Adds nested canvas content through one top-left-coordinate affine transform, opacity, and blend mode.
Parameters
- transform OfficeIMO.Drawing.OfficeTransform
- opacity double
- blendMode OfficeIMO.Drawing.OfficeBlendMode
- build System.Action<OfficeIMO.Pdf.PdfPageCanvas>
Returns
PdfPageCanvaspublic PdfPageCanvas Figure(string alternativeText, Action<PdfPageCanvas> build) #Groups absolute canvas content as one tagged figure with alternative text.
Parameters
- alternativeText string
- build System.Action<OfficeIMO.Pdf.PdfPageCanvas>
Returns
PdfPageCanvaspublic PdfPageCanvas FreeTextAnnotation(string contents, OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, 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 fixed top-left page coordinates.
Parameters
- contents string
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- 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
PdfPageCanvaspublic PdfPageCanvas HighlightAnnotation(string contents, OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, OfficeColor? color = null) #Adds a PDF highlight annotation rectangle at fixed top-left page coordinates.
Parameters
- contents string
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- color OfficeIMO.OfficeColor? = null
Returns
PdfPageCanvaspublic PdfPageCanvas Image(byte[] imageBytes, OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, PdfImageStyle? style, string? linkUri, string? linkContents, string? alternativeText, double rotationAngle) #Adds a supported image at fixed top-left page coordinates.
Parameters
- imageBytes byte[]
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- style OfficeIMO.Pdf.PdfImageStyle?
- linkUri string?
- linkContents string?
- alternativeText string?
- rotationAngle double
Returns
PdfPageCanvaspublic PdfPageCanvas Image(byte[] imageBytes, OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, PdfImageStyle? style = null, string? linkUri = null, string? linkContents = null, string? alternativeText = null, double rotationAngle = 0, bool horizontalFlip = false, bool verticalFlip = false) #Adds a supported image at fixed top-left page coordinates.
Parameters
- imageBytes byte[]
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- style OfficeIMO.Pdf.PdfImageStyle? = null
- linkUri string? = null
- linkContents string? = null
- alternativeText string? = null
- rotationAngle double = 0
- horizontalFlip bool = false
- verticalFlip bool = false
Returns
PdfPageCanvaspublic PdfPageCanvas LinkToNamedDestination(string destinationName, OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, string? contents = null) #Adds a document-internal link annotation targeting a named destination.
Parameters
- destinationName string
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- contents string? = null
Returns
PdfPageCanvaspublic PdfPageCanvas NamedDestination(string name, OfficeLength x, OfficeLength y) #Adds a named destination at an absolute top-left page coordinate.
Parameters
- name string
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
Returns
PdfPageCanvaspublic PdfPageCanvas Outline(string title, int level, OfficeLength y) #Adds a document outline entry targeting an absolute top-left page coordinate.
Parameters
- title string
- Visible outline title.
- level int
- One-based outline hierarchy level.
- y OfficeIMO.OfficeLength
- Top coordinate in page points.
Returns
PdfPageCanvaspublic PdfPageCanvas Outline(string title, int level, OfficeLength y, PdfOutlineState state) #Adds a PDF outline entry anchored to this page with an explicit expansion preference.
Parameters
- title string
- Visible outline title.
- level int
- One-based outline hierarchy level.
- y OfficeIMO.OfficeLength
- Top coordinate in page points.
- state OfficeIMO.Pdf.PdfOutlineState
- Optional per-entry expansion preference.
Returns
PdfPageCanvaspublic PdfPageCanvas RadioButton(string name, string option, bool isSelected, OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, PdfFormFieldStyle? style = null) #Adds one interactive radio-button widget. Widgets with the same field name are emitted as one radio group on the page.
Parameters
- name string
- option string
- isSelected bool
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- style OfficeIMO.Pdf.PdfFormFieldStyle? = null
Returns
PdfPageCanvaspublic PdfPageCanvas Shape(OfficeShape shape, OfficeLength x, OfficeLength y, PdfDrawingStyle? style = null, string? linkUri = null, string? linkContents = null, double rotationAngle = 0) #Adds a shared drawing shape at fixed top-left page coordinates.
Parameters
- shape OfficeIMO.Drawing.OfficeShape
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- style OfficeIMO.Pdf.PdfDrawingStyle? = null
- linkUri string? = null
- linkContents string? = null
- rotationAngle double = 0
Returns
PdfPageCanvaspublic PdfPageCanvas Structure(PdfCanvasStructureRole role, Action<PdfPageCanvas> build, PdfCanvasStructureOptions? options = null) #Groups absolute canvas content under a typed tagged-PDF structure container.
Parameters
- role OfficeIMO.Pdf.PdfCanvasStructureRole
- build System.Action<OfficeIMO.Pdf.PdfPageCanvas>
- options OfficeIMO.Pdf.PdfCanvasStructureOptions? = null
Returns
PdfPageCanvaspublic PdfPageCanvas Table(IEnumerable<string[]> rows, OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, PdfTableStyle? style, Action<PdfLayoutDiagnostic>? diagnosticHandler) #Adds a fixed-position table inside a page rectangle using top-left page coordinates and reports layout diagnostics during rendering.
Parameters
- rows System.Collections.Generic.IEnumerable<string[]>
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- style OfficeIMO.Pdf.PdfTableStyle?
- diagnosticHandler System.Action<OfficeIMO.Pdf.PdfLayoutDiagnostic>?
Returns
PdfPageCanvaspublic PdfPageCanvas Table(IEnumerable<string[]> rows, OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, PdfTableStyle? style = null, double rotationAngle = 0, Action<PdfLayoutDiagnostic>? diagnosticHandler = null) #Adds a fixed-position table inside a page rectangle using top-left page coordinates and reports layout diagnostics during rendering.
Parameters
- rows System.Collections.Generic.IEnumerable<string[]>
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- style OfficeIMO.Pdf.PdfTableStyle? = null
- rotationAngle double = 0
- diagnosticHandler System.Action<OfficeIMO.Pdf.PdfLayoutDiagnostic>? = null
Returns
PdfPageCanvaspublic PdfPageCanvas Table(IEnumerable<PdfTableCell[]> rows, OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, PdfTableStyle? style, Action<PdfLayoutDiagnostic>? diagnosticHandler) #Adds a fixed-position rich table inside a page rectangle using top-left page coordinates and reports layout diagnostics during rendering.
Parameters
- rows System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCell[]>
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- style OfficeIMO.Pdf.PdfTableStyle?
- diagnosticHandler System.Action<OfficeIMO.Pdf.PdfLayoutDiagnostic>?
Returns
PdfPageCanvaspublic PdfPageCanvas Table(IEnumerable<PdfTableCell[]> rows, OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, PdfTableStyle? style = null, double rotationAngle = 0, Action<PdfLayoutDiagnostic>? diagnosticHandler = null) #Adds a fixed-position rich table inside a page rectangle using top-left page coordinates and reports layout diagnostics during rendering.
Parameters
- rows System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTableCell[]>
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- style OfficeIMO.Pdf.PdfTableStyle? = null
- rotationAngle double = 0
- diagnosticHandler System.Action<OfficeIMO.Pdf.PdfLayoutDiagnostic>? = null
Returns
PdfPageCanvaspublic PdfPageCanvas Text(string text, OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, OfficeLength? fontSize = null, OfficeColor? color = null, OfficeAlignment align = Left, PdfStandardFont? font = null) #Adds text inside a fixed page rectangle using top-left page coordinates.
Parameters
- text string
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- fontSize OfficeIMO.OfficeLength? = null
- color OfficeIMO.OfficeColor? = null
- align OfficeIMO.OfficeAlignment = Left
- font OfficeIMO.Pdf.PdfStandardFont? = null
Returns
PdfPageCanvaspublic PdfPageCanvas Text(IEnumerable<PdfTextRun> runs, OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, OfficeColor? defaultColor = null, OfficeAlignment align = Left, OfficeLength? fontSize = null, OfficeLength? lineHeight = null) #Adds rich text runs inside a fixed page rectangle using top-left page coordinates.
Parameters
- runs System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTextRun>
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- defaultColor OfficeIMO.OfficeColor? = null
- align OfficeIMO.OfficeAlignment = Left
- fontSize OfficeIMO.OfficeLength? = null
- lineHeight OfficeIMO.OfficeLength? = null
Returns
PdfPageCanvaspublic PdfPageCanvas Text(IEnumerable<PdfTextRun> runs, PdfCanvasTextStructureRole structureRole, OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, OfficeColor? defaultColor = null, OfficeAlignment align = Left, OfficeLength? fontSize = null, OfficeLength? lineHeight = null) #Adds tagged rich text runs inside a fixed page rectangle using top-left page coordinates.
Parameters
- runs System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTextRun>
- structureRole OfficeIMO.Pdf.PdfCanvasTextStructureRole
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- defaultColor OfficeIMO.OfficeColor? = null
- align OfficeIMO.OfficeAlignment = Left
- fontSize OfficeIMO.OfficeLength? = null
- lineHeight OfficeIMO.OfficeLength? = null
Returns
PdfPageCanvaspublic PdfPageCanvas TextAnnotation(string contents, OfficeLength x, OfficeLength y, OfficeLength? width = null, OfficeLength? height = null, PdfTextAnnotationIcon icon = Comment, OfficeColor? color = null, bool open = false) #Adds a PDF text annotation at fixed top-left page coordinates.
Parameters
- contents string
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength? = null
- height OfficeIMO.OfficeLength? = null
- icon OfficeIMO.Pdf.PdfTextAnnotationIcon = Comment
- color OfficeIMO.OfficeColor? = null
- open bool = false
Returns
PdfPageCanvaspublic PdfPageCanvas TextBox(string text, OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, PdfCanvasTextBoxStyle? style, Action<PdfLayoutDiagnostic>? diagnosticHandler) #Adds a styled fixed-position text box using top-left page coordinates and reports layout diagnostics during rendering.
Parameters
- text string
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- style OfficeIMO.Pdf.PdfCanvasTextBoxStyle?
- diagnosticHandler System.Action<OfficeIMO.Pdf.PdfLayoutDiagnostic>?
Returns
PdfPageCanvaspublic PdfPageCanvas TextBox(string text, OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, PdfCanvasTextBoxStyle? style = null, double rotationAngle = 0, Action<PdfLayoutDiagnostic>? diagnosticHandler = null) #Adds a styled fixed-position text box using top-left page coordinates and reports layout diagnostics during rendering.
Parameters
- text string
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- style OfficeIMO.Pdf.PdfCanvasTextBoxStyle? = null
- rotationAngle double = 0
- diagnosticHandler System.Action<OfficeIMO.Pdf.PdfLayoutDiagnostic>? = null
Returns
PdfPageCanvaspublic PdfPageCanvas TextBox(IEnumerable<PdfTextRun> runs, OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, PdfCanvasTextBoxStyle? style, Action<PdfLayoutDiagnostic>? diagnosticHandler) #Adds styled rich text inside a fixed-position text box using top-left page coordinates and reports layout diagnostics during rendering.
Parameters
- runs System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTextRun>
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- style OfficeIMO.Pdf.PdfCanvasTextBoxStyle?
- diagnosticHandler System.Action<OfficeIMO.Pdf.PdfLayoutDiagnostic>?
Returns
PdfPageCanvaspublic PdfPageCanvas TextBox(IEnumerable<PdfTextRun> runs, OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, PdfCanvasTextBoxStyle? style = null, double rotationAngle = 0, Action<PdfLayoutDiagnostic>? diagnosticHandler = null) #Adds styled rich text inside a fixed-position text box using top-left page coordinates and reports layout diagnostics during rendering.
Parameters
- runs System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTextRun>
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- style OfficeIMO.Pdf.PdfCanvasTextBoxStyle? = null
- rotationAngle double = 0
- diagnosticHandler System.Action<OfficeIMO.Pdf.PdfLayoutDiagnostic>? = null
Returns
PdfPageCanvaspublic PdfPageCanvas TextField(string name, string? value, OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, OfficeLength? fontSize = null, PdfFormFieldStyle? style = null) #Adds an interactive text field at fixed top-left page coordinates.
Parameters
- name string
- value string?
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- fontSize OfficeIMO.OfficeLength? = null
- style OfficeIMO.Pdf.PdfFormFieldStyle? = null
Returns
PdfPageCanvaspublic PdfPageCanvas WithBlendMode(OfficeBlendMode blendMode, Action<PdfPageCanvas> build) #Adds nested canvas content composited with the requested blend mode.
Parameters
- blendMode OfficeIMO.Drawing.OfficeBlendMode
- build System.Action<OfficeIMO.Pdf.PdfPageCanvas>
Returns
PdfPageCanvas