Hi,
I have this code that converts sheets into pdfs.
MemoryStream pdfStream = new MemoryStream();
Workbook workbook = new Workbook();
workbook.LoadFromStream(stream, fileFormat);
Worksheet worksheet = workbook.Worksheets[0];
worksheet.PageSetup.PaperSize = PaperSizeType.PaperA4Rotated;
worksheet.PageSetup.IsFitToPage = true;
worksheet.SaveToPdfStream(pdfStream);
//checking the pages
Spire.Pdf.PdfDocument doc = new Spire.Pdf.PdfDocument();
doc.LoadFromStream(pdfStream);
var pages = doc.Pages;
When I debug and look into the converted pages I see the size hasn't been rotated and is using the default A4 format.
The same result is seen in the end pdf that is produced.
Same problem is for PaperA3 - PaperA3Rotated - it is using the A4 format for PaperA3Rotated.
I am using FreeSpire.Office version 8.2.0.
Thanks for the reply in advance!