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.

Thu Nov 08, 2018 2:16 pm

Hi there,

We are using the mail merge functionality of Word to generate RTF documents, these RTF documents are then converted to PDF files using Spire.Doc. Values are imported from an xslx file into a RTF template file using the "Insert Merge Field" functionality. If the original value imported from the .xslx file contains whitespaces the value in the RTF is displayed correctly but in the PDF it is surrounded with "", similar values not containing whitespaces are not affected.

Document document = new Document();
document.LoadFromFile("input.rtf", FileFormat.Auto);

var pdfList = new ToPdfParameterList();
pdfList.PdfConformanceLevel = Spire.Pdf.PdfConformanceLevel.Pdf_A1B;
document.SaveToFile("output.pdf", pdfList);


We are using Spire.Doc version6.10.2

Attached are example in- and output files.
Book1.xlsx - Input xlsl file
Test.rtf - merged rtf file
Test.pdf - final pdf output

Teamdocters
 
Posts: 14
Joined: Mon Aug 20, 2018 8:53 am

Fri Nov 09, 2018 2:25 am

Hi,

Thanks for your inquiry.
I have reproduced your issue and logged it in our bug tracking system. We will let you know once it is fixed.
Sorry for the inconvenience caused.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Thu Nov 15, 2018 8:45 am

Hi,

Glad to inform you that the issue is fixed in Spire.Doc Pack(hot fix) Version:6.11.7.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Tue Nov 20, 2018 8:47 am

Hi,

Greetings from E-iceblue.
Did you use the hotfix? Has your issue been resolved?

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.Doc

cron