I am doing a word merge, and after that I convert the document to PDF.
The word document is using "Lucida Handwriting" font, and it is displayed correctly when I output to DOCX:
After this, I convert to PDF using code:
// Save doc as DOCX to a memory stream
MemoryStream inter_ret_file = new MemoryStream();
document.Save(inter_ret_file, FormatType.Docx);
// Read the word document
WordDocument intermediateDocument = new WordDocument(inter_ret_file, Syncfusion.DocIO.FormatType.Docx);
document.Close();
inter_ret_file.Close();
//Converts Word document into PDF document
DocToPDFConverter converter = new DocToPDFConverter();
PdfDocument pdfDocument = converter.ConvertToPDF(intermediateDocument);
MemoryStream ret_file = new MemoryStream();
pdfDocument.Save(ret_file);
pdfDocument.Close();
pqp_template_stream.Close();
byte[] bin_file = ret_file.ToArray();
ret_file.Close();
// save the binary data
The PDF displays the text in a different font, but if I edit the PDF, and click on the text, it says it's
"Lucida Handwriting" even though the text that is displayed is not that font!
Please help me fix this!