Unit: FPdfParagraphEdit
function RenderVerticalParagraph(Pdf: TPdf; const Text: WString; const Options: TPdfVerticalParagraphOptions; out Report: TPdfVerticalParagraphReport): Boolean;
Lays a paragraph down vertical columns that progress right to left, breaking between clusters at the column height
Remarks
- The shaping backend must report
SupportsVerticalShaping: HarfBuzz does, while the Windows Uniscribe backend reports none and the call is refused
- Every glyph stays upright and keeps its vertical form; the column breaks only between clusters, so a combining sequence is never split
- Each paragraph ends its column, and an explicit line break inside the text starts a new one
- The whole layout is computed before a glyph is written: a paragraph that exceeds
MaxColumns writes nothing and reports Overflow
TPdfVerticalParagraphReport returns the column, glyph and break counts with the laid-out width and height
- Since v3.379.0
Justify fills a column that ends short of its height by spreading the gap between its glyphs, while the last column of a paragraph keeps natural spacing and Justified counts the filled columns
- Since v3.380.0
ColumnsPerPage with PageWidth and PageHeight continues the columns that do not fit on new pages, each starting at the same column origin, and Pages returns the page count. The first columns go to the active page, continuation pages are inserted directly after it, and the active page is restored when the call succeeds
- Since v3.382.0
Balance spreads a paragraph that needs several columns evenly, so the last column is not left nearly empty, and BalancedParagraphs counts what it balanced; justification then fills against that paragraph's tallest column
TPdfVerticalParagraphReport.Slices holds each emitted column for in-memory hit testing; from internal version 3.396.3 one shared ActualText/PCM2 scope spans the column's glyph objects and persists through native saves, including cross-page continuation
ColumnObjects gives each column's first page object index for ReadPdfVerticalClusterMap; interior glyphs and incomplete membership are rejected, and batch text, insertion, removal or ActualText edits invalidate the whole column map while property edits and unchanged columns retain theirs
- Since internal v3.398.0 the Form-path overload of
ReadPdfVerticalClusterMap selects a first glyph inside nested or repeated Form invocations and checks exact membership against its containing Form; use the original overload or an empty path for page-level columns
- The column-scoped guarantee requires the native shared-mark API; a missing API is rejected before emitting glyphs. Legacy PCM1 tables retain bounds-only compatibility, and arbitrary external stream mutations, exact native character indices and arbitrary source-Form glyph association remain separate requirements
- Column progression, breaking, justification and balancing are done here; page composition beyond the column budget stays with the caller
See Also