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.
Unfortunately, activation email could not send to your email. Please try again.

How to add Paragraphs in the PDFPage of PDFDocument Class

Thread ID:

Created:

Updated:

Platform:

Replies:

97885 Jan 18,2011 04:31 AM Jan 19,2011 04:12 AM ASP.NET Web Forms (Classic) 1
loading
Tags: PDF
shyam
Asked On January 18, 2011 04:31 AM

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


Selvakumar P [Syncfusion]
Replied On January 19, 2011 04:12 AM

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.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;