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

Tables in RTF not converting properly to PDF

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

7 Replies

AD Administrator Syncfusion Team 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



GM Geetha M Syncfusion Team 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


AD Administrator Syncfusion Team 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



SS Sivaguru S Syncfusion Team 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



AD Administrator Syncfusion Team 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



DY Deivaselvan Y Syncfusion Team 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



DY Deivaselvan Y Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon