I'm using a web application (Asp.net C# with .net framawork 3.5 ) I need to create a report (Aspose.Pdf version 184.108.40.206) with a custom page size, but it doesn't work.
See the code:
Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf();
pdf.PageSetup.PageHeight = 13.8F;
pdf.PageSetup.PageWidth = 21F;
//pdf.PageSetup.PageWidth = PageSize.A5Width; IT DOESN'T WORK TOO
//pdf.PageSetup.PageHeight = PageSize.A5Height; IT DOESN'T WORK TOO
Aspose.Pdf.Section sec = new Aspose.Pdf.Section();
for (int i = 0; i <= 100;i++ )
sec.Paragraphs.Add(new Text("Hi, this custom pagesize doesn't work! "));
The page size after saved the document is A4. See the document in the attached file.
WHAT I CAN DO SO SOLVE THE PROBLEM? I need to configure some thing in the control panel ?
HELP ME PLEASE !!!!!!!!!!!!!!!!!