I have the following code:
var doc = new Document();
doc.LoadFromFile(sourceFile, FileFormat.Docx);
doc.Replace("<<username>>", des_name_report, true, true);
doc.SaveToStream(mstream, FileFormat.PDF);
SourceFile points to the attached file. The pdf file generated cannot be opened in any PDF reader.
It seems there is a bug in the PDF generation code. Is there a fix already available?
thanks.