Hi,
Our developers have identified an issue when converting a Word table to PDF using the code below.
The content is displayed in Word but then isn’t displayed in the PDF.
Example Word and PDF files are attached.
Cheers,
Chris
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);
}