Debian Bug report logs - #675869
make PDF smaller with version1.4

version graph

Package: texlive-latex-extra-doc; Maintainer for texlive-latex-extra-doc is Debian TeX Task Force <[email protected]>; Source for texlive-latex-extra-doc is src:texlive-extra (PTS, buildd, popcon).

Reported by: [email protected]

Date: Sun, 3 Jun 2012 19:24:05 UTC

Severity: wishlist

Found in version texlive-extra/2012.20120529-1

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Debian TeX Maintainers <[email protected]>:
Bug#675869; Package texlive-latex-extra-doc. (Sun, 03 Jun 2012 19:24:08 GMT) (full text, mbox, link).


Acknowledgement sent to Hideki Yamane <[email protected]>:
New Bug report received and forwarded. Copy sent to Debian TeX Maintainers <[email protected]>. (Sun, 03 Jun 2012 19:24:08 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Hideki Yamane <[email protected]>
To: [email protected]
Subject: make PDF smaller with version1.4
Date: Mon, 4 Jun 2012 04:22:29 +0900
[Message part 1 (text/plain, inline)]
Package: texlive-latex-extra-doc
Version: 2012.20120529-1
Severity: wishlist

Hi,

 I got a advice from Munehiro Yamamoto (TeX package maintainer in VineLinux)
 to reduce PDF file size in TeX related package. It's just using pdfwrite
 device in GS to down its pdf level to 1.4.


----------------------------------------------------------------------------
how to
----------------------------------------------------------------------------

 I wrote temporary script as compress.sh, to exec gs like this,

>     gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dNOPAUSE -dQUIET -dBATCH \
>     -sOutputFile=$i.output $i && echo "$i"

 It re-Distiller pdf files to PDF1.4 via GS's pdfwrite, its script consumes 
 15 min in my box.

> real	15m36.362s
> user	15m4.020s
> sys	0m17.365s



----------------------------------------------------------------------------
result
----------------------------------------------------------------------------
$ du -h *xz
279M	data.tar.xz
245M	usr.orig.tar.xz
145M	usr.tar.xz

  279MB -> 245MB (best xz compression, reduce 30MB as Bug#)
  279MB -> 145MB (re-Distiller + best xz compression =130MB!)

 I think that's worth to try it :)
 And I've filed this to texlive-latex-extra-doc, however it may be applied to
 other packages.


-- 
Regards,

 Hideki Yamane     henrich @ debian.or.jp/org
 http://wiki.debian.org/HidekiYamane
[compress.sh (text/x-sh, attachment)]

Information forwarded to [email protected], Debian TeX Maintainers <[email protected]>:
Bug#675869; Package texlive-latex-extra-doc. (Fri, 06 Oct 2017 06:42:03 GMT) (full text, mbox, link).


Acknowledgement sent to Hideki Yamane <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <[email protected]>. (Fri, 06 Oct 2017 06:42:03 GMT) (full text, mbox, link).


Message #10 received at [email protected] (full text, mbox, reply):

From: Hideki Yamane <[email protected]>
To: [email protected]
Subject: Re: make PDF smaller with version1.4
Date: Fri, 6 Oct 2017 15:38:45 +0900
Hi again,

* Tried to apply PDF size reduction to all texlive-*-doc packages
-> Total:1416.4MB becomes 1024.8MB, 28% reduction.


* All -doc packages have nothing difference with PDF-1.4 and other versions,
  so just convert to PDF-1.4 is enough.

* Compare size with original
-----------------------------------------------------------
texlive-fonts-extra-doc
105M    original
72M     PDF-1.4

-> 32% reduction

texlive-fonts-recommended-doc
3.4M    original
2.8M    PDF-1.4

-> 17%

texlive-latex-base-doc
54M     original
62M     PDF-1.4

-> bigger...

texlive-latex-extra-doc
496M    original
316M    PDF-1.4

-> 36%

texlive-latex-recommended-doc
47M     original
42M     PDF-1.4

-> 10%

texlive-metapost-doc
37M     original
32M     PDF-1.4

-> 13%

texlive-pictures-doc
133M    original
157M    PDF-1.4

-> bigger...

texlive-pstricks-doc
283M    original
200M    PDF-1.4

-> 29%

texlive-publishers-doc
175M    original
120M    PDF-1.4

-> 31%

texlive-science-doc
60M     original
34M     PDF-1.4

-> 46%

texlive-humanities-doc
23M     original
19M     PDF-1.4

-> 17%
-----------------------------------------------------------

* texlive-pictures-doc and texlive-latex-base-doc become
bigger size with PDF-1.4. So we should exclude them.



Information forwarded to [email protected], Debian TeX Maintainers <[email protected]>:
Bug#675869; Package texlive-latex-extra-doc. (Fri, 06 Oct 2017 12:12:06 GMT) (full text, mbox, link).


Acknowledgement sent to Norbert Preining <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian TeX Maintainers <[email protected]>. (Fri, 06 Oct 2017 12:12:06 GMT) (full text, mbox, link).


Message #15 received at [email protected] (full text, mbox, reply):

From: Norbert Preining <[email protected]>
To: Hideki Yamane <[email protected]>, [email protected]
Subject: Re: Bug#675869: make PDF smaller with version1.4
Date: Fri, 6 Oct 2017 21:01:11 +0900
> * Compare size with original

How did you convert? And did you check that *all* files are still
correct after conversion/recompression?

Norbert

--
PREINING Norbert                               http://www.preining.info
Accelia Inc.     +    JAIST     +    TeX Live     +    Debian Developer
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13



Changed Bug submitter to '[email protected]' from 'Hideki Yamane <[email protected]>'. Request was from Hideki Yamane <[email protected]> to [email protected]. (Mon, 15 Apr 2019 00:54:12 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Thu May 15 16:11:14 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.