Comment #1 on issue 2643 by [email protected]: Attach lilypond source
in pdf
http://code.google.com/p/lilypond/issues/detail?id=2643
According to the following discussion, you can use the /pdfmark postscript
command to attach files:
http://forums.adobe.com/message/4438533
A sample eps file (hand-written text file) is attached, to create the pdf,
you need to run ghostscript with the -dNOSAFER option to allow file access:
ps2pdf -dNOSAFER test.eps
The resulting pdf file correctly shows the attachment in acroread. However,
neither okular nor evince are able to detect the attachment, only acroread
does.
More information about the file attachment subtype of the pdfmark command
can also be found on page 488 of
http://www.dpunkt.de/leseproben/1360/Kapitel_11.pdf
Attachments:
test.eps 559 bytes