Re: bottom of EPS output cut off (+ size of PDF files)
Hi Andrew, this Bash is going to be VERY(!!!) useful for me, thank you VERY(!!!) much for posting it, Andrea -- View this message in context: http://lilypond.1069038.n5.nabble.com/Re-bottom-of-EPS-output-cut-off-size-of-PDF-files-tp170186p170496.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: bottom of EPS output cut off (+ size of PDF files)
Hi Andrew, I'd like to add two lines to your bash, but I need assistance: After lilypond $file I'd like to burts the file into multiple pdfs (one per page) and I do this by: pdftk $file.pdf burst This makes one pdf file per page with the following output: originalpdf.pdf originalpdf01.pdf originalpdf02.pdf originalpdf03.pdf ... etc. Can I adapt this line: pdftops -eps $file.pdf to manage the multiple single pages pdf? Thank you, Andrea -- View this message in context: http://lilypond.1069038.n5.nabble.com/Re-bottom-of-EPS-output-cut-off-size-of-PDF-files-tp170186p170497.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: bottom of EPS output cut off (+ size of PDF files)
I wrote earlier about the bug in which Lilypond with the eps backend inaccurately calculates the bounding box, and Andrea provided a working solution (thank you). I turned it into this Bash script, which works well for me, though I don't understand why this process should be necessary. Intriguingly, when I run this script it produces a cropped PDF image which is about 10% the size of the PDF produced just by compiling with lilypond alone. In one example the full-page lilypond PDF, a single page with one system of music, was 160K; the PDF produced by lilycrop was 19K! ~/bin/lilycrop: #! /bin/sh set -e file=${1%.ly} lilypond $file pdftops -eps $file.pdf cat $file.eps | ps2eps $file_cut.eps epstopdf $file_cut.eps rm $file.eps $file_cut.eps mv $file_cut.pdf $file.pdf echo Cropped PDF '$file.pdf' produced from '$1' *** Andrew Cashner ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user