[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    Re: Output PDF to stdout
From:       Valentin Petzel <valentin () petzel ! at>
Date:       2024-01-21 15:55:28
Message-ID: 12367609.O9o76ZdvQC () archbox
[Download RAW message or body]


Hello Vlad,

You will not avoid intermediate files in any case, as Lilypond with gs output 
will generate ps code, which is then turned into a pdf. If you want to pipe 
PDFs for convenience you might create a wrapper say plilypond in the search 
path doing something like this:

#!/bin/bash

t=$(mktemp) 1>&2
lilypond -o "$t" ${@} 1>&2
cat "$t".pdf
rm "$t".pdf 1>&2

Cheers,
Valentin

Am Donnerstag, 4. Jänner 2024, 23:34:28 CET schrieb Volodymyr Prokopyuk:
> Hi,
> 
> I know that lilypond can receive a source.ly file from the stdin by
> using lilypond
> -. Is it possible for lilypond to output PDF to the stdout?
> 
> My motivation behind using lilypond in a pipeline is to speed up PDF
> generation by avoiding storing intermediary files on disk. The pipeline I'd
> like to implement is
> cat source.ly | lintLy | lilypond - | optimizePDF > score.pdf
> Currently lilypond engraves PDF on disk, so a PDF optimizer has to read,
> optimize, and substitute PDF on disk.
> 
> Thank you,
> Vlad


["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic