Text misalignment occurs when compressing pdf in C#

Hi,
I got misalignment when I try to compress this pdf file.

Tested OSs were Win7 and Win10
.NET target platform is .net 6.0
Using SDK: Aspose.PDF for .Net 24.4

Test code


void testCompressPdf(string filename)
{
    Document pdfDocument = new Document(filename);

    OptimizationOptions pdfOptions = new OptimizationOptions();
    pdfOptions.CompressObjects = true;
    pdfOptions.LinkDuplcateStreams = true;
    pdfOptions.RemoveUnusedObjects = true;
    pdfOptions.RemoveUnusedStreams = true;
    pdfOptions.AllowReusePageContent = true;
    pdfOptions.UnembedFonts = false;
    pdfOptions.SubsetFonts = true;

    pdfDocument.OptimizeResources(pdfOptions);
    pdfDocument.Save(filename + ".output.zip.pdf");
}

(已压缩)齿轮-1.pdf (1.9 MB)

@kngstr
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-57209

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.