I'm currently experiencing a strange issue when converting a docx file, which uses different fonts, into pdf using DocIORenderer.
I'm loading the docx file into a WordDocument, and then converting it with
using (var renderer = new DocIORenderer())
using (var file = File.OpenWrite("c:\test\converted.pdf"))
{
PdfDocument pdf = renderer.ConvertToPDF(Document);
pdf.Save(file);
}
When viewed inside Acrobat Reader, the document is rendered correctly (see attached image "acrobat.png").
When the same pdf is viewed inside Chrome (version 70.0.3538.102) or Firefox (version 60.0.3) fonts are not even readable, and rendered totally wrong (see attached images "chrome.png" and "firefox.png").
This behavior truly limits fonts used inside pdf.
I've also attached both the pdf and the original docx file used for the tests.
Attachment:
pdf_issue_c0d78dc4.zip