[]
DsPdfJS API / TextAlignment
Specifies the alignment of paragraph text along the reading direction axis.
Center:
2
The center of the paragraph text is aligned to the center of the layout box.
Distributed:
4
Justifies all text lines regardless of paragraph breaks.
Justified:
3
Aligns text to the leading side, and also justifies text to fill the lines.
Leading:
0
The leading edge of the paragraph text is aligned to the leading edge of the layout box.
Trailing:
1
The trailing edge of the paragraph text is aligned to the trailing edge of the layout box.