We are trying to convert a Word document to a PDF. Some of the images inside of the document are landscape. Inside of the word doc, they are rotated 270 degrees to be in portrait orientation. After converting, the don't render correctly on the page. They are off center. If I manually save the image, rotate, and reinsert into the document, everything looks correct. Unfortunately, doing this isn't a long term option, as the documents are provided to us by a 3rd party.
I've attached some screenshots of the documents.
Syncfusion.DocIO.NET.Core: v17.3.0.34
Syncfusion.DocIORenderer.Net.Core: v17.3.0.34
using (var converter = new DocIORenderer())
{
converter.Settings.ChartRenderingOptions.ImageFormat = ExportImageFormat.Jpeg;
converter.Settings.EmbedFonts = true;
converter.Settings.PreserveFormFields = true;
var pdfDocument = converter.ConvertToPDF(wordDocument);
using (var outStream = new FileStream(outfile, FileMode.Create))
{
pdfDocument.Save(outStream);
outStream.Flush(true);
outStream.Close();
pdfDocument.Close(true);
}
}
Attachment:
Page1Of2_6dc1cc30.zip