Hi,
The content is displayed in Word but then isn’t displayed in the PDF.
Example Word and PDF files are attached.
Cheers,
public byte[] ConvertDocxToPdf(byte[] docxStream)
{
string docxTempFile = this.PersitTempFile(docxStream);
// Load the document from disk.
Document doc = new Document(docxTempFile);
string pdfFile = Path.GetTempPath() + Path.GetFileNameWithoutExtension(docxTempFile) + ".pdf";
// Save the document in PDF format.
doc.Save(pdfFile);
return File.ReadAllBytes(pdfFile);
}