This sample shows how to reduce PDF file size by removing structure information from it.
To remove structure information from a PDF please use PdfDocument.RemoveStructureInformation() method. This method can significantly reduce output file size.
Please note that document without structure information will be less accessible for assistive devices.
This sample shows only one approach to reduce size of a PDF. Please check Compress PDF documents in C# and VB.NET sample code to see more approaches.