~sthagen/liitos#6: 
Suggested feature: PDF meta data

As a user I want to be able to fill some meta data fields like:

  • Author (should be clear)
  • Creator (more the generator liitos with version)
  • Keywords (in some form may only produce a quoted comma separated string)
  • Producer (the pipeline maybe)
  • Subject (the project or ...)
  • Title (Document title)

Example implementation could use variables (which the generator has to mostly trust) to produce a metadata.tex portion like so:

\hypersetup{%
  pdfinfo = {%
    Author={Au Thor},
    Title={TITULUM},
    Subject={PROJECT},
    Keywords={KeyA, KeyB, KeyD},
    Producer={Orga Team Publishing Pipeline v2023.1},
    Creator={liitos v2023.1.17}}}
Status
RESOLVED CLOSED
Submitter
~sthagen
Assigned to
Submitted
1 year, 10 months ago
Updated
8 months ago
Labels
Feature

~sthagen 1 year, 10 months ago

The upcoming release 2022.1.17 provides a commented out part implementing that functionality within metadata.tex.in:

% ...
% PDF Metadata:
%\hypersetup{%
%  pdfinfo = {%
%    Author={VALUE.SLOT},%%_PATCH_%_PDF_%_META_%_AUTHOR_%%
%    Title={VALUE.SLOT},%%_PATCH_%_PDF_%_META_%_TITLE_%%
%    Subject={VALUE.SLOT},%%_PATCH_%_PDF_%_META_%_SUBJECT_%%
%    Keywords={VALUE.SLOT},%%_PATCH_%_PDF_%_META_%_KEYWORDS_%%
%    Producer={VALUE.SLOT},%%_PATCH_%_PDF_%_META_%_PRODUCER_%%
%    Creator={VALUE.SLOT}}}%%_PATCH_%_PDF_%_META_%_CREATOR_%%

Maybe the following release will provide an interface per the YAML data files.

Already now one can edit the metadata.tex file following a liitos run and subsequently execute lualatex --shell-escape this.tex to achieve a similar effect.

~sthagen 1 year, 10 months ago

It may be best to not assume specific use cases or offer handling of such cases directly in liitos.

Instead it will be implemented as a call string interface.

The optional parameter -l, --label receives a call string as value (cf. documentation of version 2023.1.21 for details).

~sthagen REPORTED CLOSED 1 year, 10 months ago

Implemented in release 2023.1.21.

Register here or Log in to comment, or comment via email.