Free Support Forum - aspose.com

Log Infos from Insiede

Hi

We have the Problem with the new Version 4.2.1, that in some constaltions, the Procces usse 100% CPU and not come back frome the Save() Methode.

In 4.1.1 the same stuff works fine.

We think that in the Save a Endless Loop is. But only with special Conditions. Is it possible to get some Log Info's from inside the Save?

Did you have a nother idee, how we find the problem?

In the moment, i can not build some example code.

Regards Markus

Hello Markus,

I am afraid until or unless we test the scenario, we might not be able to figure out the actual reasons of the problem. Please try sharing some code snippet so that we can test the scenario at our end.

We apologize for your inconvenience.

Hi

Here a peace of Code to reproduce the Problem:

//The ListSection has set a default FormatArray of three levels.

//The user can use the default three levels' list without the pain of defining the list's format.

//But if you want to define your own list format, you should define it before using the list like the example.

Pdf pdf = new Pdf();

//Add four headings.

Section sec1 = pdf.Sections.Add();

for (int Level = 1; Level != 10; Level++)

{

Heading heading2 = new Heading(pdf, sec1, Level);

Segment segment2 = new Segment(heading2);

heading2.Segments.Add(segment2);

heading2.IsAutoSequence = true;

segment2.Content = "this is heading of level ";

segment2.Content += Level.ToString();

//Add the heading into Table Of Contents.

//heading2.IsInList = true;

//heading2.LabelWidth = 60;

//heading2.Margin = right;

sec1.Paragraphs.Add(heading2);

}

// Save the resultant PDF document

pdf.Save(@"Z:/pdftest/Colaboration_Test.pdf");

System.Diagnostics.Process.Start(@"Z:/pdftest/Colaboration_Test.pdf");

This works under 4.1.2 and under 4.2.1 it do not work.

Regards

Markus

Hello Markus,

Thanks for sharing the code snippet.

I have tested the scenario with latest version of Aspose.Pdf for .NET 4.2.0 and I am unable to notice any problem. The PDF document is being generated without any issue. For your reference, I have also attached the document, please take a look.

Can you please try using the latest release version which can be accessed over this link.

Hi

Now with this Dll it works.

Thx

Markus