 |
Example 3: Compress a PDF file (low image quality, high compression) (Visual Basic) |
|
 |
Dim NVcomp : Set NVcomp = CreateObject("PDFcompress.Neevia")
NVcomp.CI = "jpx"
NVcomp.CQ = 20
NVcomp.GI = "jpx"
NVcomp.GQ = 20
NVcomp.MI = "jbig2"
NVcomp.MQ = 2
'For better compression uncomment the line below
' NVcomp.CreateObjectStreams = true
Dim retVal : retVal = NVcomp.CompressPDF("c:\in.pdf","c:\out.pdf")
If retVal <> 0 Then
MsgBox("Error code=" & CStr(retVal))
Else
MsgBox("Done")
End If
|
|
 |
|