Dim pdfFile As String = "D:\pdf\1.pdf" Dim reader As New PdfReader(pdfFile) Dim stamper As New PdfStamper(reader, New FileStream("D:\pdf\1c.pdf", FileMode.Create), PdfWriter.VERSION_1_5) Document.Compress = True stamper.FormFlattening = True stamper.SetFullCompression() stamper.Close()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)