We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

How to add Paragraphs in the PDFPage of PDFDocument Class

Hi,

I am trying to add paragraphs in the PDFPage like what we use to do in the tallPDF components example code mentioned below:

Dim currentSection As TallComponents.PDF.Layout.Section = section
CurrentSection.Paragraphs.Add(TextParagraph)
CurrentSection.Paragraphs.Add(TextParagraph)
CurrentSection.Paragraphs.Add(TextParagraph)
......

I am unable to find the similar classes or way in the Syncfusion classes.

The above code is provide very simple way to add textParagraph directly to pdfpage without worrying the location. Even there are drawing, area, etc....classes.

Any body help us to find the similar classes in the syncfusion or way to achieve the same features in the Syncfusion PDF components.

Looking you earliest response.

Thanks,
Jyotsna Jain


1 Reply

SP Selvakumar P Syncfusion Team January 19, 2011 09:12 AM UTC

Hi Shyam,

Thank you for using Syncfusion Products.

In order to add a paragraph to the document using our library, we need to get the paragraph as a string and have to layout the paragraph using TextLayoutElement class and TextLayoutResult class. Also, we find the location of the next paragraph from the previous paragraph using TextLayoutResult class.

We have attached the sample in which we have laid out paragraphs as such. Please refer to the link below and let us know if you have any questions.

Sample:
76179-739288557.zip

Regards,
Selvakumar.


Loader.
Live Chat Icon For mobile
Up arrow icon