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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Long text (more pages)

Thread ID:





120892 Oct 26,2015 06:11 AM UTC Oct 28,2015 05:04 AM UTC Xamarin.Forms 3
Tags: PDF
Lorenzo Giudici
Asked On October 26, 2015 06:11 AM UTC

I ve got a long text. How can I divide  my text In multiple pages in automatic? 

Praveenkumar H [Syncfusion]
Replied On October 27, 2015 05:46 AM UTC

Hi Lorenzo,

You can draw long text using “PdfTextElement” class and you can automatically paginate the text to multiple pages, please refer the following code snippet.

PdfDocument doc = new PdfDocument();

PdfPage page = doc.Pages.Add();

PdfTextElement element = new PdfTextElement(longText);

PdfLayoutFormat format = new PdfLayoutFormat();

format.Layout = PdfLayoutType.Paginate;

element.Draw(page, 0, 0,format);

MemoryStream stream = new MemoryStream();



Please let us know if you need further assistance.

With Regards,

Lorenzo Giudici
Replied On October 27, 2015 04:37 PM UTC

It works well! Thanks

KarthikeyanC [Syncfusion]
Replied On October 28, 2015 05:04 AM UTC

Hi Lorenzo,
We are glad to know that your requirement has been fulfilled, please let us know if you need any further assistance.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon