Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Mon Mar 28, 2016 4:42 pm

Problem: RTF to PDF Conversions Failing or Missing Data

Spire.Doc: 5.6.17.4040
Spire.License: 1.3.5.4040
Spire.Pdf: 3.6.131.4040

Problem #1: Some data is omitted during conversion from RTF to PDF.
In the following file, when converting to PDF, some data will be missing.
report1_cleansed.rtf
report2_cleansed.rtf
report3_cleansed.rtf
Specifically, look at the "FINDINGS" section. Some elements have the proper text displayed next to them (i.e. BONES: Left humeral prosthesis in place) while some have no text at all next to them (i.e. SOFT TISSUES:).

Problem #2: Stack Overflow when converting from RTF to PDF:
See file:
fails_to_convert_cleansed.rtf

In all cases, this is a partial code snippet showing the loading of the rtf and conversion to pdf. Most of the time it works. Here is a sample:

Document doc = new Document();
TextReader tr = new StringReader(sourceDocumentText);
doc.LoadRtf(tr);
var ms = new MemoryStream();
doc.SaveToStream(ms, FileFormat.Pdf);

We have no control over the inbound files as they are originating from external clients. We have had a number of these reported issues recently and would like to get resolution as soon as possible.

Thank you,
Tom

rutzelt
 
Posts: 43
Joined: Mon Sep 22, 2014 4:59 pm

Tue Mar 29, 2016 2:15 am

Dear Tom,

Thanks for your inquiry.
I have noticed your issue and posted it to our Dev team. Once it is fixed, we will let you know immediately. Sorry for inconvenience caused by us.
Also, I didn't find the file(report1_cleansed.rtf) in attached file.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Tue Mar 29, 2016 7:08 pm

Thanks Betsy. I have re-attached the zip file containing the missing report.

Regards,
Tom

rutzelt
 
Posts: 43
Joined: Mon Sep 22, 2014 4:59 pm

Wed Mar 30, 2016 2:22 am

Dear Tom,

Thanks for your information.
Once those issues are fixed, we will let you know.

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Mon Apr 04, 2016 4:24 pm

Has there been an update on this issue? Our clients have been asking for a resolution.

Thank you.

rutzelt
 
Posts: 43
Joined: Mon Sep 22, 2014 4:59 pm

Tue Apr 05, 2016 1:30 am

Dear Tom,

Thanks for your inquiry.
I have checked with our Dev team, your issue has been resolved, we will provide you a hotfix ASAP.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Wed Apr 06, 2016 6:56 pm

That is great news. When can we expect to see the hotfix? Our clients have been asking us for daily updates on the issues. We apologize for needing it so quickly.

Thanks.

rutzelt
 
Posts: 43
Joined: Mon Sep 22, 2014 4:59 pm

Thu Apr 07, 2016 1:27 am

Dear Tom,

We will provide you a hotfix of Spire.Office within next week. And I will inform you when it is ready.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Thu Apr 07, 2016 1:40 am

Thank you.

-Tom

rutzelt
 
Posts: 43
Joined: Mon Sep 22, 2014 4:59 pm

Thu Apr 14, 2016 2:37 am

Dear Tom,

Thanks for your waiting.
Now your issue has been resolved in following hotfix, welcome to test it.
http://www.e-iceblue.com/downloads/Temp ... 2.13.5.zip
If there is any question, welcome to get it back to us.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Thu Apr 14, 2016 3:38 am

My initial tests point to the issues being resolved.

Thank you for your rapid response. It is very much appreciated.

-Tom

rutzelt
 
Posts: 43
Joined: Mon Sep 22, 2014 4:59 pm

Thu Apr 14, 2016 4:12 am

Dear Tom,

Thanks for your reply.
Please feel free to contact us if there is any issue.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Thu Apr 14, 2016 3:51 pm

It appears that Problem #1 is fixed but Problem #2 is not.

Here is the description of Problem #2 again:

Problem #2: Stack Overflow when converting from RTF to PDF:
See file:
fails_to_convert_cleansed.rtf

Document doc = new Document();
TextReader tr = new StringReader(sourceDocumentText);
doc.LoadRtf(tr);
var ms = new MemoryStream();
doc.SaveToStream(ms, FileFormat.Pdf);

Exception detail:
Object reference not set to an instance of an object.

rutzelt
 
Posts: 43
Joined: Mon Sep 22, 2014 4:59 pm

Thu Apr 14, 2016 5:25 pm

As a correction to my last post, you did fix the problem associated with the original post in this message. When we ran a similar file through the conversion process, we received another error. This time, we do not receive a Stack Overflow but we do receive this:

An unhandled exception of type 'System.NullReferenceException' occurred in Spire.Doc.dll

Additional information: Object reference not set to an instance of an object.

The error is occurring in the same area:
var ms = new MemoryStream();
doc.SaveToStream(ms, targetFormat);

Would you please re-test your fix with the most current attachment? We think you will see the problem.

Thank you,
Tom

rutzelt
 
Posts: 43
Joined: Mon Sep 22, 2014 4:59 pm

Fri Apr 15, 2016 9:14 am

Dear Tom,

Thanks for your feedback.
I have reproduced your issue and posted it to our Dev team. Once it is fixed, we will inform you immediately.
Sorry for inconvenience caused by us.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Return to Spire.Doc