Problem converting XFA Dynamic to Standard - High Memory Usage, Hangs

Hi,

I’m having a problem converting some XFA based documents to AcroForms. Here is the code:

var pdf = new Aspose.Pdf.Document("SampleDocument.pdf");
pdf.Form.Type = Aspose.Pdf.Forms.FormType.Standard;  // This line never finishes.

This works with many XFA based documents I’ve tested but not the some like the one I am attaching. The process will hang on the line setting the FormType.Standard. With documents that hang, the memory usage typically will grow until you run out of memory. Killing the process is the only way to stop it.

Any ideas on why this is occurring?

SampleDocument.pdf (1.2 MB)

@dknudsen2
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-56023

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@dknudsen2
There is something in the attached document that is causing the hang. Created a task for the development team.

Thanks @sergei.shibanov for the updates.