Hi,
when I use the following code:
var docu = new Aspose.Pdf.Document();
var p1 = docu.Pages.Add();
p1.SetPageSize(130, 140);
var aBox = new Aspose.Pdf.FloatingBox(3, 60);
aBox.Left = 1;
aBox.Top = 1;
aBox.Border = new Aspose.Pdf.BorderInfo(Aspose.Pdf.BorderSide.Left);
p1.Paragraphs.Add(aBox);
docu.Save(@“c:\temp\workoutput\blablabla.pdf”);
the output pdf Page Dimension is set to DIN A4 and not to 130x140 points.
When i debug my application and watch to the PageInfo Property of the p1 Object, i see, that this property is not updated by the function “SetPageSize”. The values are the default values of a DIN A4 page.
One possible solution is that i use the PageInfo Object and set it to PageInfo Property of the p1 Object. But the SetPageSize Function is then useless.
Kind regards
Sebastian