Class PdfStringDrawingOptions
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
Options for drawing single-line text chunks on PDF pages.
public sealed class PdfStringDrawingOptions
- Inheritance
-
PdfStringDrawingOptions
- Inherited Members
Remarks
For an example of using these options when drawing text lines, see the DrawString section in the Core API overview article.
For multi-line text, use PdfTextDrawingOptions, which supports word wrapping and bounded text rendering.
For automatic layout, including tables, paragraphs, and page breaking, use the higher-level Layout API.
Constructors
- PdfStringDrawingOptions()
Initializes a new instance of the PdfStringDrawingOptions class.
Properties
- AddActionAreas
Gets or sets a value indicating whether to add action areas for each URI found in the drawn text.
- Angle
Gets or sets the angle, in degrees, used to rotate the drawn text.
- MissingGlyphHandler
Gets or sets the handler used for glyphs that cannot be drawn with the current Font.
- ReadingDirection
Gets or sets the main reading direction of the text for the Bidi algorithm.
- Strikethrough
Gets or sets a value indicating whether the drawn text should have a horizontal line through it.
- SynthesizeBold
Gets or sets a value indicating whether bold text should be synthesized when the current font is not bold.
- SynthesizeItalic
Gets or sets a value indicating whether italic text should be synthesized when the current font is not italic.
- Underline
Gets or sets a value indicating whether the drawn text should be underlined.
Methods
- GetCharacterWidths()
Gets the character widths used when drawing a text string.
- SetCharacterWidths(IEnumerable<double>)
Sets the character widths used when drawing a text string.