When converting Excel to PDF we have encountered a positioning problem with placed ‘Shapes’.
In our example the shape moved more to the right, than it was in the base xlsx document.
Conversion Code:
MyGlobalSettings has only overriden the function “GetStandardHeaderFooterFontStyleName”.
public static void CreatePdfFromExcel(Stream inWordDocumentStream, Stream inPdfOutStream)
{
var tmpDocument = new Aspose.Cells.Workbook(inWordDocumentStream);
tmpDocument.Settings.GlobalizationSettings = new MyGlobalSettings();
tmpDocument.Save(inPdfOutStream, Aspose.Cells.SaveFormat.Pdf);
}
Excel and result.zip (44.9 KB)