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)