Convert PS to PDF is taking for ever

Hi Team,

We have a situation here that needs your help.

We are trying to convert a .PS file into a .PDF for visualization.

We have been trying a couple of things, but nothing seems to work.

Everything we try it takes a really long time to get a response, if we get a response at all, normally it just hangs there.
nb.zip (2.7 MB)

Note: using your helicopter PS file all code works great and fast.

We tried using Aspose.PDF:

Aspose.Pdf.PsLoadOptions pso = new Aspose.Pdf.PsLoadOptions();
pso.FontsFolders = new string[]
{
@“PATH_to_Fonts”
};
pso.DisableFontLicenseVerifications = true;
//the code gets stuck in this method
Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(caminho, pso);
pdfDocument.Save(@“PATH_outputnb2.pdf”);

We tried using Aspose.PAGE:

PsConverter converter = new PsConverter();
PsConverterToPdfOptions options = new PsConverterToPdfOptions();
options.AddDataSource(new FileDataSource(caminho));
options.AddSaveDataSource(new FileDataSource(final));
converter.Process(options);

PsDocument psDocument = new PsDocument(“input.ps”);
PdfSaveOptions options = new PdfSaveOptions();
options.JpegQualityLevel = 80; // Adjust image quality if needed
options.SupressErrors = true; // Ignore minor errors during conversion
psDocument.SaveAsPdf(“output.pdf”, options);

we even tried “Convert PS to PDF via CLI”

@FredericoS

Have you been trying by applying a valid or 30-days free temporary license before converting the PS to PDF? We have tested with 25.4 version of the API in our environment and could not notice any issues.
PdfToPostScript_out.pdf (64.7 KB)

We don’t need a " [30-days free temporary license]", we have a aspose-total license that we are using.
license.SetLicense(@“PATH_to\Aspose.Total.NET.lic”);

you are saying that the 7mb file conversion was quick? or the helicopter pic conversion was quick?

can you share the code you are using?

@FredericoS

We apologize for the confusion. We only tested with nb.ps file and it did not take long. We missed testing with nb2.ps which we did now using same code snippet you shared above. We were able to replicate the issue.

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-59884

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.

The issues you have found earlier (filed as PDFNET-59884) have been fixed in Aspose.PDF for .NET 25.7.