NAME
pdf-lbr-output-bib - Output BibTeX bibliographic metadata from PDF files.
SYNOPSIS
pdf-lbr-output-bib --version pdf-lbr-output-bib --help|-h
pdf-lbr-output-bib [ --clipboard|-c ] [ --max-authors|-m count [ --only-first-author|-f ] ] [ --filter|-F [type:]field[?iffield|!ifnotfield...]=spec ... ] [ --no-default-filter|-N ] [ --abbreviate|-a scheme ... ] [ --output-text-format|-o type=<format> ... | --output-text|-O | --pdf-file-comment|-P ] files|directories ...
... files|directories ... | pdf-lbr-output-bib ...
DESCRIPTION
pdf-lbr-output-bib reads BibTeX bibliographic metadata embedded in PDF files and/or any PDF files in directories. If files|directories are not given on the command line, they are read from standard input, one per line.
The BibTeX metadata is then printed to standard output; if --clipboard is given, it is instead copied to the clipboard.
OPTIONS
-
If the number of authors is greater than count, and
If --only-first-author is given, output only the first author, followed by "and others".
Otherwise, output the first count authors, followed by "and others".
- --filter|-F [type:]field[?iffield|!ifnotfield...]=spec ... [ --no-default-filter|-N ]
-
Apply the filter spec to the BibTeX field. If given, type applies filter only to BibTeX entries of that type, iffield applies filter only to BibTeX entries where <iffield> is defined, and ifnotfield applies filter only to BibTeX entries where <ifnotfield> is not defined. Possible spec are:
- d
-
Exclude field from output.
- =value
-
Set field to value in output.
- s/pattern/replacement[/pattern/replacement...]/
-
Replace each regular expression pattern with replacement in output.
If no --filter arguments are given, default filters given in the configuration file are applied (unless --no-default-filter is given).
- --abbreviate|-a scheme ...
-
Abbreviate journal/series titles according to the given scheme, applied in the order given on the command line. Available schemes:
- --pdf-file-comment|-P
-
If true, output the PDF filename as a comment before each BibTeX entry. Default is false. (The PDF filename is never included in the BibTeX entry itself.)
- --output-text-format|-o type=<format>
-
Instead of outputting a BibTeX entry, output plain text, formatting entries of type type with format format. BibTeX fields may be substituted into format with the syntax %field.
The author and editor fields must include one of the suffixes :fvlj or :vljf to indicate the citation style: author:fvlj cites authors with initials then last name; author:vljf cites authors with last name then initials.
Format text surrounded by curly braces is removed if it contains a % from an unexpanded field. Curly braces may be nested to define alternatives for missing fields, e.g. {DOI:%doi{URL:%url}} provides a URL only if the DOI field is missing.
- --output-text|-O
-
Instead of outputting a BibTeX entry, output plain text, formatting entries with formats given in the configuration file.
PART OF
App::PDFLibrarian
COPYRIGHT AND LICENSE
Copyright (C) 2016--2026 Karl Wette. Licensed under the GNU General Public License, version 3 or later.