The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
I've got a PDF Converter Version 2.05 Professional.
I printing a report from Visual Foxpro 9.0 to using the printer. It prints but the resulting PDF is more 33M. It have about 46 pages, among them 44 are TIFs and 2 of them are JPGs.
I've tried many settings.
Below is the latest code that I am testing with:
#define FileNameOption_NoPrompte 0x00000001 && do not prompt for file name
#define FileNameOption_UseFileName 0x00000002 && use file name set by SetDefaultFileName else use document name
#define FileNameOption_JPegLevelLow 0x00020000 && Low JPeg compression
m.loPdf = CREATEOBJECT("cdintf.cdintf")
m.loPdf.DriverInit("KELLY-WESTON: IC IMAGE PDF")
m.loPdf.FileNameOptionsEx = FileNameOption_NoPrompte ;
+ FileNameOption_UseFileName ;
+ FileNameOption_JPegLevelLow
SET PRINTER TO NAME ("PDF Converter")
REPORT FORM rptimagereport.frx NOEJECT NOCONSOLE TO PRINTER
m.loPDF.DriverEnd()
You are using in your code Jpeg compression, this compression algorithm is good for Jpeg images (you have 2 of them in your document) but it will not compress the tiff images you have.
If you Tiff images are black and white I suggest that you try CCITT fax Compression algorithm, if they are colored I suggest that you try Automatic Compression algorithm.
FileNameOptionsEx is not supposed to generate an out of range message.
For the size of the output, please send us the original file you are trying to convert to PDF to support@amyuni.com we will check it and see what are the best options to use during conversion and will let you know.
To reduce the size of a file containing images you may need to use 'Remove duplicate images' by example.