Menu

#135 Compress with Java 1.6 Shrinking Fonts Problem

open
nobody
None
5
2007-09-07
2007-09-07
Leif
No

We are currently using Multivalent to compress PDFs (i.e. tool.pdf.Compress). This has been working perfectly with Jave 1.4 and Java 1.5, but now we are seeing problems with Java 1.6. For some PDFs this tool reduces not only the size of the document itself but also the size of the font used in the pages down to a microscopic level that needs 2000% magnification in the reader to see. Merely switching between Java 1.5 and Java 1.6 produces the different results. This is a fairly serious problem for us.

Here are the calls I do:
/usr/java/jdk1.5.0/bin/java -classpath multivalent.jar tool.pdf.Compress LoremIpsum.pdf
file:/pro/www/doc/LoremIpsum.pdf, 7677 bytes
PDF 1.2, producer=PDF::Create version 0.01, creator=null
additional compression may be possible with:
-compact
=> new length = 3281, saved 57%, elapsed time = 0 sec

/usr/java/jdk1.6.0/bin/java -classpath multivalent.jar tool.pdf.Compress LoremIpsum.pdf
file:/pro/www/doc/LoremIpsum.pdf, 7677 bytes
PDF 1.2, producer=PDF::Create version 0.01, creator=null
additional compression may be possible with:
-compact
=> new length = 3251, saved 57%, elapsed time = 0 sec

Java Version:
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)

Multivalent Version:
Release 20060102

One unique thing that may be worth mentioning is that we are starting out with a text document containing line feeds which we then run through ascii2pdf to generate the initial uncompressed pdf. This is then ran through pdf compress to produce the final result.

Thanks in advance for any help,
Leif

Discussion

  • Leif

    Leif - 2007-09-07

    Document after compress with micro font.

     
  • Leif

    Leif - 2007-09-07

    Document before compress.

     
  • Leif

    Leif - 2007-09-07

    Logged In: YES
    user_id=1885559
    Originator: YES

    File Added: LoremIpsumORIG.pdf

     

Log in to post a comment.