Focal Point
Compressing PDF files..!

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5901050761

May 08, 2006, 01:06 PM
MARIELOS
Compressing PDF files..!
I need some help about compressing PDF Files.

When I generate a report in webfocus in PDF format with a size of 30 MB (500 sheet approximately) they go through Web site and the bandwidth is saturated.

The question is:
Is there a way to include in the classes that generates the PDF or in the objects where is the procedure that turns PDF files in a routine of compression of the PDF file to generate?

The previous thing based on which that exists many routines free with which this compression can be made.

Somebody who can help me please..!
Thanks..!
September 08, 2006, 07:05 AM
pippo
Hi to all!
Can someone help me to understand PDF format compression?
When I produce a report in that format I have a PDF file with a size of about 40 Mb; but, if I compress this file (i.e. with WinZip), I obtain a file with a size of about 300 Kb.
Is there a method to produce directly that file "already compressed" (with WebFocus 7.1.4) with a size of 300 Kb?
Thanks in advance.

Andrea Corti
September 08, 2006, 07:24 AM
Tony A
Andrea,

You could always use a DOS program call using the (for example) winzip command line processor that will compress your file within your code.

Check out the help files on SYSTEM and DOS or SHELL commands.

For winzip (etc.) command line processing check out the respective web site or accompanying documentation.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
September 08, 2006, 07:44 AM
pippo
Thank you very much Tony.
I already compress my pdf file with a DOS command in the focexec (i.e. DOS PKZIP ...); my "problem" is that I want to produce a PDF file already compressed (usually you "cannot" compress a PDF file because it's already compressed).
I think that if I can compress a PDF file, it means that file is not "optimized", so I could remove something from that file at the "beginning" (i.e. when I'm using the style sheets of WebFocus)...

Andrea
September 08, 2006, 08:30 AM
S.J. Kadish
One more thought on compression - and admittedly it might not work here: run the jobs through Report Caster and distribute the job as compressed.


Sandy Kadish
Dev: 8.2.04- PostgreSQL
Test: 8.2.04 - PostgreSQL
Prod: 8.2.04 - PostgreSQL
September 08, 2006, 08:38 AM
Tony A
Andrea,

Not sure that you will achieve that as PDF files are generally created still with spaces contained within them and this is where the compression savings are made. I think that the PDF format is fairly rigid as well when it comes to the reader.

Have you thought about using an alternative file type that might not suffer from space problems? Try .doc or .ps etc.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10