i am facing the the same issue ‘Unsupported maximum profile version.’ i am using .net 6.0 and latest version of aspose.pages to convert a ps file to pdf file.
that is the code
class RunExamples
{
public static string GetDataDir_WorkingWithDocumentConversion()
{
// Update this path to your actual data directory path
return @"E:";
}
}
class Program
{
static void Main(string[] args)
{
// The path to the documents directory
string dataDir = RunExamples.GetDataDir_WorkingWithDocumentConversion();
// Initialize PsDocument with the name of PostScript file
PsDocument document = new PsDocument(dataDir + "input.ps");
// If you want to convert PostScript file despite minor errors set this flag
bool suppressErrors = true;
// Initialize options object with necessary parameters
PdfSaveOptions options = new PdfSaveOptions(suppressErrors);
// If you want to add special folder where fonts are stored
// Default fonts folder in OS is always included
options.AdditionalFontsFolders = new string[] { @"C:\path\to\your\fonts\" };
// Default page size is 595x842 and it is not mandatory to set it in PdfSaveOptions
// But if you need to specify size use the following line
options.Size = new Aspose.Page.Drawing.Size(595, 842);
// Save the document as PDF
document.SaveAsPdf(dataDir + "outputPDF_out.pdf", options);
// Review errors
if (suppressErrors)
{
foreach (PsConverterException ex in options.Exceptions)
{
Console.WriteLine(ex.Message);
}
}
}
}
please help and guide