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.
Syncfusion Feedback

Tables in RTF not converting properly to PDF

Thread ID:

Created:

Updated:

Platform:

Replies:

104505 Jul 25,2012 01:35 PM UTC Aug 3,2012 10:52 AM UTC Windows Forms 7
loading
Tags: PDF
Administrator [Syncfusion]
Asked On July 25, 2012 01:35 PM UTC

Greetings,
Using Syncfusion.Pdf.Base version: 4.402.0.46
I'm using a test solution that was offered as a download from another thread:
http://www.syncfusion.com/support/forums/pdf-windows/35728/RTF%20Text%20in%20PDF

 

I have an RTF file that renders beautifully in Word. The text lines-up nicely along with Table objects. I overwrote your sample.rtf with my rtf file and ran it through your conversion to PDF solution (referenced above) and it does not convert the Table objects correctly. They aren't sized properly, and the text inside those Table objects aren't lined-up correctly either.

Please advise.
Please don't tell me that I have to use the latest and greatest syncfusion libraries without real proof that the new version fixes this.
Thank you in advance.
John



SampleRTF_fb9eea19.zip

Administrator [Syncfusion]
Replied On July 25, 2012 01:48 PM UTC

Correction: I used the wrong thread link reference. Here is the sorrect one.

http://www.syncfusion.com/support/forums/pdf-windows/56056/RTF%20text%20cutoff

John


Geetha M [Syncfusion]
Replied On July 27, 2012 04:27 AM UTC

Hi John,

Thank you for your interest in Syncfusion products.

We have a new PDF from Essential Studio v5.2, the version you are using had been marked as legacy and we do not provide bug fixes for this version. With this new PDF, we have a DocToPDFConverter (depends on Essential DocIO and Essential PDF) using which Word, RTF files can easily be converted to PDF. Following is the code snippet:

WordDocument wordDocument = new WordDocument(@"Sample.rtf");
DocToPDFConverter converter = new DocToPDFConverter();
PdfDocument document = converter.ConvertToPDF(wordDocument);
document.Save("Sample.pdf");
document.Close(true);

I had place the converted PDF file in the link below.

You can download the latest version from the following link:

http://www.syncfusion.com/support/forums/general/103906/Essential-Studio-2012-Volume-2-Service-Pack-Release-v102075-available-for-download

Please try this and let us know if you have any questions.

Regards
Geetha


Output_b9b32339.zip

Administrator [Syncfusion]
Replied On July 30, 2012 02:41 PM UTC

Thank you Geetha.

One other question:
Would it be possible to have two different version of Syncfusion installed on the same Operating system? Meaning, one application uses v4.4, and another application uses a newer version?

Thank you
John


Sivaguru S [Syncfusion]
Replied On July 31, 2012 09:52 AM UTC

Hi John,

Thanks for the update.

Yes, you can install different versions of Essential studio in the same machine and use it in different projects by directly referring the assemblies from Essential studio installed location with “Specific version” property set to “True” for older versions assemblies.

Please let us know, if you have queries.

Regards,
Sivaguru S


Administrator [Syncfusion]
Replied On July 31, 2012 08:56 PM UTC

My RTF data is data from a database.
string myRTF = System.Text.Encoding.UTF8.GetString(mybytearray);

When using the ConvertToPDF method, I have to use this RTF formatted string instead of an RTF file. Can I use that string as the argument? I know that method is overloaded to allow for a stream argument.

When I pass myRTF as an argument, it throws an exception stating that the file name is too long.....

Please advise.

Thank You
John


Deivaselvan Y [Syncfusion]
Replied On August 3, 2012 10:51 AM UTC

Hi Jhon,

Thank you for your update.

You can able to give a filename or stream as an argument of WordDocument. We have prepared a sample to illustrate your requirement to read a RTF file from Database and convert into PDF. Please do find the sample from the attachment and let us know if this helps you.

Please do find more details about WordDocument method from the below UG link.
http://help.syncfusion.com/UG/Reporting/DocIO/ASP.NET/default.htm#!documents/42worddocument.htm

Please let us know if you have any other questions.

Regards,
Deiva selvan


Deivaselvan Y [Syncfusion]
Replied On August 3, 2012 10:52 AM UTC

Hi Jhon,

Please ignore our previous update.

You can able to give a filename or stream as an argument of WordDocument. We have prepared a sample to illustrate your requirement to read a RTF file from Database and convert into PDF. Please do find the sample from the attachment and let us know if this helps you.

Please do find more details about WordDocument method from the below UG link.
http://help.syncfusion.com/UG/Reporting/DocIO/ASP.NET/default.htm#!documents/42worddocument.htm

Please let us know if you have any other questions.

Regards,
Deiva selvan



Sample_a8d093a3.zip

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.

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

;