Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1263)

Issue 4094045: Print out header fields as PDF metadata; Add simple markup->string function (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 3 months ago by Reinhold
Modified:
13 years, 3 months ago
Reviewers:
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Print out header fields as PDF metadata; Add simple markup->string function -) Create DOCINFO pdfmark, with the metadata fields extracted from the \header block -) Add scheme function markup->string that extracts and returns only the string part of a markup. As all header fields are possibly markups, we need to call this function on the header fields and use only the string representation (formatting and possibly some information lost!) as metadata. This function is very simply (for all known text markup functions, it extracts the text and ignores the formatting, all other markup functions are entirely ignored), so it might not work perfectly for complex markups. -) Add possibility to override a header field with the same name, but a pdf prefix, to force a particular metadata string, which is not displayed in the pdf. E.g. if the \header block contains pdftitle = "Title for pdf file" then that pdftitle header field will be used for the document title in the PDF metadata instead of the title header field.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -0 lines) Patch
A input/regression/pdfmark-metadata.ly View 1 chunk +19 lines, -0 lines 0 comments Download
M lily/book-scheme.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M lily/paper-book-scheme.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M scm/framework-ps.scm View 4 chunks +27 lines, -0 lines 0 comments Download
M scm/markup.scm View 1 chunk +60 lines, -0 lines 0 comments Download

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b