3.5.4 Embedding files in PDF output

Command-line option -dembed-source-code makes LilyPond embed all (user) source files needed for compilation in the final output PDF (see Advanced command-line options for LilyPond); a PDF viewer can then extract these attachments for further use.

In a similar vein it is possible to embed arbitrary files in the PDF output with function ly:note-extra-source-file (see Scheme functions).

LilyPond Notation Reference v2.25.15 (development-branch).