How to insert multiline text into a PDF document?
(Views :1630)

The IPDFGraphics.DrawMultiText method is used for drawing multi page text into a PDF document. The BreakBehavior property of the IPDFGraphicState helps in breaking the text into multiple pages.

C#
//IPDFGraphicState is used for setting properties of all drawing objects.
IPDFGraphicState props = pdfDoc.CreateGraphicState();
props.BreakBehavior = AutoBreakBehavior.MultiLineTextBreak;
VB
'IPDFGraphicState is used for setting properties of all drawing objects.
Dim props As IPDFGraphicState = pdfDoc.CreateGraphicState()
props.BreakBehavior = AutoBreakBehavior.MultiLineTextBreak

Sample:

http://websamples.syncfusion.com/samples/KB/PDF.Windows/PMLine/main.htm

Note:

This will work only with PDF.Legacy.Base

::adCenter::