Status: Accepted
Owner: ----
Labels: Type-Enhancement Priority-Medium
New issue 1463 by brownian.box: Writing metadata to the PDF file
http://code.google.com/p/lilypond/issues/detail?id=1463
Reported by Reinhold Kainhofer,
http://lists.gnu.org/archive/html/bug-lilypond/2010-12/msg00382.html :
%---------------------8<-------------------------------
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 fields (i.e. metadata) to the PDF file. The advantage would be that
PDF readers would display the title (instead of the filename) in the window
title, and the document information would contain more information about
the author, title, 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
http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/pdf_creation_apis_and_specs/pdfmarkReference.pdf
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?
%---------------------8<-------------------------------
_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond