lilypond-devel
[Top][All Lists]

## Writing metadata to the PDF file

 From: Reinhold Kainhofer Subject: Writing metadata to the PDF file Date: Mon, 27 Dec 2010 15:40:36 +0100 User-agent: KMail/1.13.5 (Linux/2.6.35-23-generic; KDE/4.5.4; i686; ; )

The request for PDF hyperlinks of \page-ref and \label reminded me that it
might be a nice enhancement to write out some of the \header fields as DOCINFO
would display the title (instead of the filename) in the window title, and the
etc.

All that needs to be done is to insert a DOCINFO pdfmark into the Postscript
and gs will take care of it:
[ /Author string
/Title string
/Subject string
/Keywords string
/DOCINFO pdfmark

The DOCINFO pdfmark Postscript extension is documented by Adobe on page 28 of

Now, I'm looking at the ps backend, but I don't know how to get access to the
global header object from the write-preamble function in scm/framework-ps.scm.

Any idea how to obtain the global header object so I can extract things like
title or composer?

Thanks,
Reinhold

PS: Bug squad, can you please file this as an enhancement request, so that it
doesn't get lost?
--
------------------------------------------------------------------