Can I do automatically the compression of one pdf file?
I need to Compress a pdf file automatically. I´ve tried with the command line but my best result is pdf24-compress FileName to open the window with the file that I want to compress.
I need to set PPP, imagen quality, the output path, and compress it automatically.
Is it possible?
Thanks a lot!
exe = Environ("ProgramW6432") & "\PDF24\Pdf24-DocTool.exe"
q = """"
outPDF = q & outPDF & q
's = exe & " -join -profile ""default/good"" -outPutFile " & outPDF & " "
s = exe & " -join -profile -compress ""default/good"" -noProgress -outPutFile " & outPDF & " "
For I = LBound(a) To UBound(a)
a(I) = q & a(I) & q
Next I
s = s & Join(a, " ")
'Debug.Print s
Shell s, vbHide
How to avoid the popup on every time call
Which popup do you mean? File selection UI?
-outPutFile should be -outputFile
-join -profile -compress ""default/good"" seems to be wrong too. -join command syntax is like this:
pdf24-DocTool.exe -join [-sort] [-bookmarks bookmarksCmd] [-profile profileId] [-outputDir dir] [-outputFile file] file1 [file2] ...