New Forum | Previous | Next | (P-PDF) Developers
Topic: Saving acrobat pdf to reduce file size
Conf: (P-PDF) Developers, Msg: 114115
Date: 6/25/2004 04:57 AM
I am using pdfLib library to create pdf documents using vb6. The file size is more than 4 MB. I have also installed adobe Acrobat 6.0 professional and if I use the Save As feature of Acrobat 6.0 to save the pdf file, the file size reduces to 1.5 MB.
I am trying to use the same feature in my vb code to reduce the file size. I used the following code to open the file and save it. But it is still not reducing the file size.
Set AcroExchPDDoc = CreateObject("AcroExch.PDDoc")
ok = AcroExchPDDoc.open(strFileName)
ok = AcroExchPDDoc.save(&H1, strFileName)
ok = AcroExchPDDoc.Close()
If it is possible how can I use the Save As with my code to reduce file size.