Free Support Forum - aspose.com

Multi-column section followed by another section on same page crashes during save

When creating a pdf with a section that has multiple columns, followed by another section which is not on a new page the Save call crashes.

var pdf = new Pdf();
var colSection = pdf.Sections.Add();
colSection.ColumnInfo.ColumnCount = 2;
colSection.Paragraphs.Add(new Text(“test”));
var anotherSection = pdf.Sections.Add();
anotherSection.IsNewPage = false;
pdf.Save(new MemoryStream()); //System.ArgumentNullException : Value cannot be null. Parameter name: fontInfoProvider

Aspose.Pdf version 9.8.0.0

Hi Ashwin,


Thanks
for using our API’s.
<o:p></o:p>

I
have tested the scenario and I am able to notice the same problem. For the sake
of correction, I have logged this problem as PDFNEWNET-37874 in
our issue tracking system. We will further look into the details of this
problem and will keep you updated on the status of correction. Please be
patient and spare us little time. We are sorry for this inconvenience.

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


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

Hi Nayyer,


While I tested using Aspose.Pdf for .Net 10.5 , the exception disappears but the PDF cannot be open(There is a problem with the format),

var pdf = new Pdf();
var colSection = pdf.Sections.Add();
colSection.ColumnInfo.ColumnCount = 2;
var text1 = new Text(“text1”);

var text2 = new Text(“text22”);
text2.IsFirstParagraphInColumn = true;
colSection.Paragraphs.Add(text1);
colSection.Paragraphs.Add(text2);
var anotherSection = pdf.Sections.Add();
anotherSection.IsNewPage = false;
anotherSection.Paragraphs.Add(new Text(“text3”));
pdf.Save(@“c:/temp/test.pdf”);

Hi Patrick,


Thanks for your inquiry. We have tested the scenario and managed to replicate the issue, so we have logged a ticket PDFNEWNET-38995 in our issue tracking system to investigate and rectify it. We will notify you as soon as we resolve the issue.

We are sorry for the inconvenience caused.

Best Regards,

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


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