Optimize PDF document C# | Aspose.PDF | file got corrupted after optimization

I have a problem in production
When i optimise a specifique PDF file, he was corrupted
Test.pdf (790.0 KB)

Test_optimise.pdf (687.6 KB)

Document doc = new Document(dataDir + @"Test.pdf");
var optimizationOptions = new Aspose.Pdf.Optimization.OptimizationOptions();
optimizationOptions.RemoveUnusedObjects = true;
optimizationOptions.RemoveUnusedStreams = true;
optimizationOptions.AllowReusePageContent = true;
optimizationOptions.LinkDuplcateStreams = true;
optimizationOptions.UnembedFonts = true;
doc.OptimizeResources(optimizationOptions);
doc.Save(dataDir + @"Test_optimise.pdf");

@admin.grenoble

The issue seems related to fonts being unembedded during optimization. If you exclude the optimizationOptions.UnembedFonts = true; the PDF output would be fine. Please let us know if font unembedding is strictly required in your case. We will further proceed to assist you accordingly.

we make only a OptimizePDF function.
this option is necessary for us

@admin.grenoble

We have logged this issue as PDFNET-49559 in our issue tracking system for the sake of correction. We will look into its details and keep you posted with the status of its rectification. Please be patient and spare us some time.

We are sorry for the inconvenience.