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