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