pdfname: Name a PDF file using information from the pdfinfo command

[ mit, pdf, program ] [ Propose Tags ]

pdfname names a PDF file using the author, year of creation and title information extracted from the pdfinfo program.


[Skip to Readme]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1, 0.1.1, 0.1.2, 0.1.3, 0.2, 0.3
Change log CHANGELOG.md
Dependencies base (>=4.9.1.0 && <4.11), directory (>=1.3.0.0 && <1.4), filepath (>=1.4.1.1 && <1.5), optparse-applicative (>=0.14.0 && <0.15), pdfinfo (>=1.5.4 && <1.6), text (>=1.2.2.2 && <1.3) [details]
License MIT
Copyright Andrés Sicard-Ramírez 2017
Author Andrés Sicard-Ramírez
Maintainer Andrés Sicard-Ramírez <asr@eafit.edu.co>
Revised Revision 1 made by AndresSicardRamirez at 2017-07-08T00:00:21Z
Category PDF
Home page https://github.com/asr/pdfname#readme
Bug tracker https://github.com/asr/pdfname/issues
Uploaded by AndresSicardRamirez at 2017-07-07T23:31:17Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Executables pdfname
Downloads 4052 total (15 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2017-07-08 [all 3 reports]

Readme for pdfname-0.1

[back to package description]

pdfname

Description

Name a PDF file using information (author, year of creation and title) from the pdfinfo program.

Prerequisites

Installation

The program can installed with the following commands:

$ cabal update
$ cabal install

Usage

Just run pdfname on your PDF file.

How is the file name chosen?

Given the author, year of creation and title information extracted from the pdfinfo program (fields Author, CreationDate and Title, respectively) the name of the PDF file will be

author-year.title.pdf

where author and title are the strings obtained after making certain substitutions (e.g. remove whitespace, translate non-ASCCI characters and remove TeX/LaTeX specific information) to the information shown by the pdfinfo program.

Example. Let's suppose that running pdfinfo on the file foo.pdf shows the following (fictional and incomplete) information:

$ pdfinfo foo.pdf
Title:          Introducction to the <TEX>$\lambda$</TEX>-Calculus
Author:         Per Martin-Löf
CreationDate:   Fri Apr  9 07:14:01 2010

Now, running pdfname on that file will create the new file

/tmp/martin-lof-2010.introduction-to-the-lambda-calculus.pdf