bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Reduce size of *TeX generated pdfs, Version 2


From: Knut Petersen
Subject: Re: [PATCH] Reduce size of *TeX generated pdfs, Version 2
Date: Fri, 09 Jan 2015 11:16:20 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

On 09.01.2015 10:38, James Lowe wrote:
On 08/01/15 19:10, Knut Petersen wrote:
On 08.01.2015 19:10, James wrote:
On 08/01/15 12:18, Knut Petersen wrote:
So here is Version 2
================

I fixed a few issues with version 1, added a command line option
--bigpdf / -b, and documented that option in the german and english
versions of usage.pdf .

The patch is based on the current git master of lilypond now.

cu,
   Knut
This is now being handled in Tracker issue
I think the easiest way to test the code thoroughly is to apply the patch,
do a full build, and then  change

        "bool bigpdfs = false"

in global-vars.cc to "bool bigpdfs = true" and do a full build again.

Postprocess the doc pdfs according to

          gs -sDEVICE=pdfwrite -o outgs.pdf  notation.pdf
          pdfsizeopt --use-multivalent=no outgs.pdf outfinal.pdf

and verify that everything went ok.
running gs was trivial, but pdfsizeopt? where do I get that *easily*.

Seems that Google's own instructions are out of date or don't work
(error 404 links) and there are a ton of other files that I need to
download (or check that I have) to make sure all the dependencies are
met for pdfsizeopt.
Yes, their install instructions were not updated to the v2 libexec. Use 
something like:

DIR=pdfsizeopt
mkdir $DIR
cd $DIR

wget -O pdfsizeopt.py http://pdfsizeopt.googlecode.com/git/pdfsizeopt.single
chmod 700 pdfsizeopt.py

wget https://pdfsizeopt.googlecode.com/files/pdfsizeopt_libexec_linux-v2.tar.gz
gzip -cd pdfsizeopt_libexec_linux-v2.tar.gz | tar -xvf -

# We have our own gs, so remove this one
rm pdfsizeopt_libexec/gs

cu,
 Knut



reply via email to

[Prev in Thread] Current Thread [Next in Thread]