Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Wed Sep 23, 2015 12:25 pm

Hi,
Can you tell me how you preserve the Xlsx page setup when converting an Xlsx spreadsheet to a Pdf?
Many Thanks,
Sean.

sean@mcdquality.com
 
Posts: 1
Joined: Mon May 04, 2015 4:27 pm

Thu Sep 24, 2015 3:50 am

Hello Sean,

Thanks for your inquiry.
Please test the below code snippet:
Code: Select all
 
            Workbook workbook = new Workbook();
            workbook.LoadFromFile("test.xlsx");
            workbook.SaveToFile("5877.pdf", FileFormat.PDF);


Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2774
Joined: Wed Jun 27, 2012 8:50 am

Fri Sep 25, 2015 7:25 am

Hello Sean,

Has your issue been solved?
Thanks for your feedback.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2774
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.XLS