We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to add a blank line between two segments while creating new Pdf

how can i add a blank line between two segments

adding line between segments while creating new PDF document.

we are using dll version

Using http://www.aspose.com/docs/display/pdfnet/Replaceable+Symbols
one of these symbol is for forcing to write content in a new line

while I need to add a Blank line between two segments

there is not symbol to write/ give a blank line in PDF

Hi there,

Thanks for your inquiry. You may use new line symbol twice to add a blank line between two segment. Please check following code sample for the purpose.



Aspose.Pdf.Generator.Text text = new Aspose.Pdf.Generator.Text(sec);

Aspose.Pdf.Generator.Segment seg1 = new Aspose.Pdf.Generator.Segment(text);

seg1.Content = "segment 1 #$NL #$NL";


Aspose.Pdf.Generator.Segment seg2 = new Aspose.Pdf.Generator.Segment(text);

seg2.Content = "paragraph 1 segment 2";




Please feel free to contact us for any further assistance.

Best Regards,