apachereduceapache-fopepsexceed

Reduce EPS file generated by Apache FOP


Fo far I have generated EPS files using the inkscape and these files were compact 2-3Kb [1]

For several important reasons now files are generated by Apache FOP. Adobe Illustrator shows the old and new versions of the same files in the same way and that is good. But the files from Apache FOP have become 12-15Kb [2]. The size of files is important to me

Inside the old file [1] there are a few headers and commands like lineto, moveto. Inside the new file [2] there are a lot of text, and some fragments of the text are the same at the beginning, in the middle and at the end of the file.

Do EPS need this repeated information?

How can I get rid of redundant data?


Solution

  • Use http://linuxcommand.org/man_pages/eps2eps1.html Ghostscript PostScript "distiller"

    $ eps2eps amex.eps amex.optimized.eps