Menu

#130 Compress tool reduces page size

open
nobody
None
7
2008-07-10
2007-06-15
mha
No

Hello,

I am currently using Multivalent to compress PDFs (i.e. tool.pdf.Compress). For some PDFs this tool reduces not only the size of the document itself but also the size of the pages. The typical example is shown in sample2.pdf (result in sample2-o.pdf): size before compression is 215.9x279.4 mm, size after compression is 210x279.4 mm.
sample1.pdf includes a very extreme example that happened while trying to create an anonymized and very simple sample - it contains only one page, its size is 215.9x279.4 mm and after compression its size is 0x0 mm.

What could be the reason for this? I checked the PDFs with tool.pdf.Validate and got no errors.

Calls:

Validation:
-----------
java -Xmx128m -classpath "[pathto]\Multivalent.jar" tool.pdf.Validate -full sample2.pdf
Result:
(empty line)
Compression:
------------
java -Xmx128m -classpath "[pathto]\Multivalent.jar" tool.pdf.Compress -compatible sample2.pdf
Result:
file:[pathto]/sample2.pdf, 328973 bytes
PDF 1.5, producer=Antenna House PDF Output Library 2.4.0 (Windows), creator=XSL
Formatter V4.1 MR1 (4,1,2007,0110) for Windows
additional compression may be possible with:
-compact
=> new length = 22885, saved 93%, elapsed time = 0 sec

Java Version:

java version "1.5.0_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
Java HotSpot(TM) Client VM (build 1.5.0_10-b03, mixed mode)

Multivalent Version:

January 2006

Thanks in advance!

Best regards,
Mathias

Discussion

  • mha

    mha - 2007-06-15

    4 sample PDFs

     
  • mha

    mha - 2008-07-10
    • priority: 5 --> 7
     
  • mha

    mha - 2008-07-10

    Logged In: YES
    user_id=1270766
    Originator: YES

    Hello?

    Could you reproduce this bug and will there be a bugfix?

     

Log in to post a comment.