bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Issue 1463 in lilypond: Writing metadata to the PDF file


From: lilypond
Subject: Issue 1463 in lilypond: Writing metadata to the PDF file
Date: Mon, 27 Dec 2010 16:00:42 +0000

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<-------------------------------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]