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

RTF Text in PDF

Hi all, it´s quiet easy to print rtf text in a pdf file with the methode: pdfDoc.LastPage.Graphics.DrawRTFText( 0, 0, rtb1.Rtf ); but independent from the length of the rtf text only one page is created and the rest of the text is cut off. Is there an ease way to create a pdf with the whole rtftext ? thanks for help cu kai

2 Replies

AD Administrator Syncfusion Team October 10, 2005 11:43 AM UTC

Hi Kai, I have filed a bug report regarding this.you can track the status of this here. http://www.syncfusion.com/support/issues/pdf/Default.aspx?ToDo=view&questId=863 Thanks, Lalitha. >Hi all, > >it´s quiet easy to print rtf text in a pdf file with the methode: > pdfDoc.LastPage.Graphics.DrawRTFText( 0, 0, rtb1.Rtf ); > >but independent from the length of the rtf text only one page is created and the rest of the text is cut off. Is there an ease way to create a pdf with the whole rtftext ? > >thanks for help >cu >kai >


GK Gowthamraj Kumar Syncfusion Team May 24, 2022 10:04 AM UTC

Hi Kai Abesser,


We have tried to reproduce the reported issue on our end, but it is working properly. We have created a sample and converted the simple RTF to a PDF document, all the pages are converted properly. We suspect that the issue may occur in a particular input file. We were not able to reproduce the issue and we have shared the sample for your reference. Kindly please run the sample on your end and let us know the result.


Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/RTFtoPDFSample1566412777


Please refer to the below links for more information,

KB: https://www.syncfusion.com/kb/9556/how-to-convert-rtf-to-pdf-using-c-and-vb-net   

https://help.syncfusion.com/file-formats/pdf/working-with-text#inserting-rich-text-format-contents

UG: https://help.syncfusion.com/file-formats/pdf/working-with-document-conversions#converting-rtf-documents-to-pdf   


Please let us know if you need any further assistance in this.


Regards,

Gowthamraj K


Loader.
Live Chat Icon For mobile
Up arrow icon