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”