Write the complex code necessary to do the same things that they are doing...

Its not a single API call - you will need to understand the nuances of the PDF 
format and then write low level code to process each object of the file and do 
whatever operations you feel are appropriate.

Or you can purchase/license one of the various commercial applications that 
already do this sort of stuff for you...

Leonard

From: Gonzalo Vásquez Sáez [mailto:gvasq...@neox.cl]
Sent: Thursday, November 19, 2009 6:30 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Compression not working?

That might be one way to focus the problem but, in such case, how can I achive 
this kind of "compression" benefit programatically?
Atentamente,

Gonzalo Vásquez Sáez
Gerente de Proyectos
Altiuz | Neox Desarrollo
Nueva Tajamar 555 Of. 802
Las Condes - Santiago
Fonos 56 (2) 335 2461 / 203 6200
[cid:image001.jpg@01CA694C.1F9E4EE0]<http://www.neox.cl>

[cid:image002.gif@01CA694C.1F9E4EE0]

IBM Certified Advanced Application Developer
Rational Application Developer for WebSphere Software

________________________________

[cid:image003.gif@01CA694C.1F9E4EE0]

IBM Certified Database Associate
DB2 Universal Database Family




Leonard Rosenthol escribió:
I didn't look at your output files, but most likely that reduction is caused by 
things such as the fonts no longer being embedded, image resolution being 
reduced and the like.  NOT the application of additional compression features.

When you throw things away - it's amazing how small you can get!

Leonard

From: Gonzalo Vásquez Sáez [mailto:gvasq...@neox.cl]
Sent: Thursday, November 19, 2009 4:29 PM
To: 
itext-questions@lists.sourceforge.net<mailto:itext-questions@lists.sourceforge.net>
Subject: [iText-questions] Compression not working?

I'm using version 2.1.7, with IBM's JDK included in Rational Software 
Developer, "java -version", says:

java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pwi32devifx-20080303 
(SR6b + IZ15865))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows Vista x86-32 
j9vmwi3223ifx-20080303 (JIT enabled)
J9VM - 20080228_17641_lHdSMR
JIT  - 20070820_1846ifx1_r8
GC   - 200802_28)
JCL  - 20071025

I Can't seem to make iText's PDF compression feature work, I've tried every 
example I could find about this subject, but most of them are either brokern 
(I've corrected them), or just don't compress at all.

I've tried setting compression levels in PdfCopy class instances, and also 
invoked setFullCompression() on both PdfStamper and PdfCopy, but haven't been 
able to make a worthwhile compression out of a original 1.87MB PDF file, which 
if opened in Acrobat Reader and then print using the "PDF Creator" (with 
default settings) windows printer driver, gets shrunk upto 98KB.

Any ideas on what could be wrong?

The Original PDF File is available at: http://bit.ly/riPFK

The PDF Creator shrunk PDF is at: http://bit.ly/3klm6M

And some code I've tested is at: http://bit.ly/4fiwCc

Any suggestions would be greatly appreciated.
--
Atentamente,

Gonzalo Vásquez Sáez
Gerente de Proyectos
Altiuz | Neox Desarrollo
Nueva Tajamar 555 Of. 802
Las Condes - Santiago
Fonos 56 (2) 335 2461 / 203 6200
[cid:image001.jpg@01CA694C.1F9E4EE0]<http://www.neox.cl>

[cid:image002.gif@01CA694C.1F9E4EE0]

IBM Certified Advanced Application Developer
Rational Application Developer for WebSphere Software

________________________________

[cid:image003.gif@01CA694C.1F9E4EE0]

IBM Certified Database Associate
DB2 Universal Database Family








________________________________






------------------------------------------------------------------------------

Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day

trial. Simplify your report design, integration and deployment - and focus on

what you do best, core application coding. Discover what's new with

Crystal Reports now.  http://p.sf.net/sfu/bobj-july






________________________________






_______________________________________________

iText-questions mailing list

iText-questions@lists.sourceforge.net<mailto:iText-questions@lists.sourceforge.net>

https://lists.sourceforge.net/lists/listinfo/itext-questions



Buy the iText book: http://www.1t3xt.com/docs/book.php

Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/

You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

<<inline: image001.jpg>>

<<inline: image002.gif>>

<<inline: image003.gif>>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to