[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to generate a minimally sized pdf
From: |
David Wright |
Subject: |
Re: How to generate a minimally sized pdf |
Date: |
Mon, 29 May 2017 09:46:10 -0500 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Mon 29 May 2017 at 10:26:51 (+0300), Ivanov Dmitry wrote:
> On 5/29/17, Jeffery Shivers <address@hidden> wrote:
>
> > I believe other people have inquired about auto-cropping and
> > such in the past, too! Might be worth searching the archives (or just
> > googling to get there faster).
>
> I tried this:
>
> $lilypond -dpreview file.ly
>
> And it worked: gave me "file.preview.pdf", that was auto-cropped. Idea
> taken from here:
>
> https://superuser.com/questions/96970/lilypond-is-there-a-way-to-auto-crop-the-paper
>
> Thank you.
Happy that you're happy.
But the advantage of pdfcrop is that it works whereas -dpreview
doesn't. (There happens to be an active thread here on that matter¹.)
You also add a tool to your armoury that you can use on many
other² PDFs, LilyPond related or not, including ones that
you didn't produce yourself.
¹
http://lists.gnu.org/archive/html/lilypond-user/2017-05/msg00515.html
²Obviously not PDFs that are actually just wrapped images, and it
doesn't like completely blank pages.
Cheers,
David.