I’m using this code To compress pdf:
var Doc = new Document(inputPath);
var opts = new OptimizationOptions
{
AllowReusePageContent = true,
LinkDuplcateStreams = true,
RemoveUnusedObjects = true,
RemoveUn…...this code to compress pdf: var doc = new Document(inputPath); var...= { Encoding = ImageEncoding.Jpeg, CompressImages = false, ImageQuality...