Page Dimensions are not accepted

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


Hi Sebastian,


Thanks for your inquiry. While testing the scenario, I’ve noticed the issue and logged it as PDFNEWNET-36016 for further investigation and resolution. We will keep you updated about the issue progress via this forum thread.

We are sorry for the inconvenience caused.

Best Regards,

The issues you have found earlier (filed as PDFNEWNET-36016) have been fixed in Aspose.Pdf for .NET 9.8.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.