I have an excel document that I want to convert to PDF. The document prints out as 1 page in excel, I'd like for it to do the same once converted. The content ends up taking up only a quarter of the first page of the PDF. What am I doing wrong?
Here's the code I use:
Workbook wb1 = new Workbook();
MemoryStream stream = new MemoryStream();
XmlDocument xmlDoc = new XmlDocument();
Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf();
pdf.PageSetup.PageHeight = PageSize.A4Height;
pdf.PageSetup.PageWidth = PageSize.A4Width;
pdf.DestinationType = DestinationType.FitPage;
I've attached the resulting PDF.