Ask a Question related to Adobe Acrobat SDK, Design and Development.
-
wouterdebo@gmail.com #1
compress pdf
Hello. I have written some code to save a pdf file. However, I want to
add code to compress the file, so the file-size will be reduced.
Does anybody know kow can I do this, or just point me in the right
direction?
My code:
Dim AcroExchApp As Acrobat.CAcroApp
Dim PDDoc As Acrobat.CAcroPDDoc
Dim avdoc As Acrobat.CAcroAVDoc
AcroExchApp = CreateObject("AcroExch.App")
PDDoc = CreateObject("AcroExch.PDDoc")
avdoc = CreateObject("AcroExch.AVDoc")
avdoc.Open(<sourceFile>, <sourceFile>)
avdoc = AcroExchApp.GetActiveDoc
If avdoc.IsValid Then
PDDoc = avdoc.GetPDDoc
If PDDoc.Save(1 Or 4 Or 32, <targetFile>) <> True Then
'messagebox.show("Error while saving")
End If
PDDoc.Close()
PDDoc = Nothing
End If
avdoc.Close(True)
avdoc = Nothing
AcroExchApp.Exit()
AcroExchApp = Nothing
Thanks in advance
Wouter
wouterdebo@gmail.com Guest
-
ByteArray Compress
It seems that bytearray compress uses a different algorithm than the one used by PHP anyone knows of any PHP class to uncompress a compressed... -
How to Compress with Acrobat CS
HI, I've constructed an A5 high res (300 DPI) 12 page PDF. The PDF is a collection of 12 Illustrator files, which in turn included PSD's, Vector's... -
ssh and compress problem
Hi, everyone! Can anyone please help me to resolve the following "ksh: /tmp/CSHM2_P3: cannot open" problem? I have no problem to create empty... -
Compress Movie
When publishing with MX Prof 2004 7.0.1, Win98, compress movie is automatically checked. When I publish the movie with the compress movie checked,... -
Compress/Zip a String
I need to convert a string, an URI/EmailAddress based string into a letter/number only string. I know I can use acsii table, but that will make...



Reply With Quote

