Unacceptable PDF file size

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.
Post Reply
dawa
Posts: 18
Joined: Wed Sep 07 2005

Unacceptable PDF file size

Post by dawa »

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:

Code: Select all

#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()
What is going on?
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

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.

Hope this helps.
dawa
Posts: 18
Joined: Wed Sep 07 2005

Post by dawa »

Joan,

Thanks for the reply!

Well, I've tried to use Automatic Compression but I get the following error on this block of code:

Code: Select all

m.loPdf.FileNameOptionsEx = FileNameOption_NoPrompte ;
                  + FileNameOption_UseFileName ;
                  + FileNameOption_AutoCompression
[error]
8002000a: Out of present range.
[/error]

When I have mixed image types such as TIFF and JPEG, what is best compression to use? Will Automatic Compression compress both of the types?

Please advise!
dawa
Posts: 18
Joined: Wed Sep 07 2005

Unacceptable PDF file size

Post by dawa »

Joan,

Could you please take a look at the previous message?

I also converted all the TIFF images to JPEG format then used JPEGLow compression the size got reduced only by 1M from it's original 33M.

Code: Select all

m.loPdf.FileNameOptionsEx = FileNameOption_NoPrompte ;
                  + FileNameOption_UseFileName ;
                  + FileNameOption_JPegLevelLow 
Why is this happening?
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

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.

Thanks.
Post Reply