We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Incorrect conversion from an excel file to pdf

We are trying to convert an excel file to pdf (using Syncfusion.ExcelToPDFConverter.Base.dll v 10.404.0.71, .NET Framework 4.0 and C#). The issue is that the background in xlsx file is 60 degree rotated, but in output pdf document it's displayed not rotated.
Here's the part of code that converts the file:

string xlsxFileName = "C:\\bend-header.xlsx",
pdfFileName = "C:\\syncfusion-10-bend-header.pdf";
var wb = ExcelUtils.Open(xlsxFileName);
var converter = new ExcelToPdfConverter(wb);
var pdfDoc = converter.Convert(new ExcelToPdfConverterSettings());
pdfDoc.Save(pdfFileName);
wb.Close();

Attached are sample files:

- input file 'bend-header.xlsx';
- output file 'syncfusion-10-bend-header.pdf' received with the help of Syncfusion library;
- the desired output we'd like to get 'excel-bend-header.pdf' (received manually by selecting File -> Save As -> type pdf in MS Excel 2013 application).

 Can you advice on how to make the cells background in pdf file look the same as in xlsx file?

Thank you for your help!



Syncfusion_1ff5f403.zip

3 Replies

SR Sridhar Syncfusion Team February 14, 2013 03:29 PM UTC

Hi OSE OMEGA,

Thank you for using Syncfusion products.

We are able to see the cell rotation issue at our side while converting the excel file to an PDF document. We have forwarded to the development team for further analysis on this issue.
We will get back to you with  analysis details in two business days (18th February 2013).

Please let me know if you require any further clarifications.

Thanks,
Sridhar.S



AD Administrator Syncfusion Team February 19, 2013 01:33 PM UTC

Waiting for answer. Please let me know you need more details 

Thank you for your help!


SR Sridhar Syncfusion Team February 20, 2013 08:47 AM UTC

Hi OSEOMEGA,

 

Thank you for the update.

 

We are using Essential XlsiO for retirieving the data, styles from the worksheet and Essential PDF for rendering the data,cells ,styels etc,.. We could see the above issue is rendering with PDF to apply skew transformation for rectangle and it requires more  complex mathmatical calculation to apply the exact skew transformation.


So, we have logged this as an feature request and forwarded to the development team for futher analysis. We will get back to you once it has been implemented.

 

Please let me know if you require any further clarifications.

 

Thanks,
Sridhar.S


Loader.
Live Chat Icon For mobile
Up arrow icon