Skip to content

Interactive cli for changing metadata of pdf files

License

Notifications You must be signed in to change notification settings

Scriptim/pdf-meta-editor

Repository files navigation

pdf-meta-editor

version (npm) license (GitHub) downloads (npm) dependencies (libraries.io)

Interactive cli for changing metadata of pdf files.

Demo

https://www.npmjs.com/package/pdf-meta-editor

Installation

sudo npm install -g pdf-meta-editor

Usage

pdf-meta-editor FILENAME

Command Line Arguments

-h/--help

Show this help page.

$ pdf-meta-editor --help
pdf-meta-editor

Usage: pdf-meta-editor FILENAME [-p|-o]
       pdf-meta-editor (-h|-v)

options
  -h --help      Show this help page.
  -v --version   Print the currently installed version.
  -p --print     Print the metadata instead of editing it.
  -o --overwrite Overwrite the original file.

-v/--version

Print the currently installed version.

-p/--print

Print the metadata instead of editing it.

Example
$ pdf-meta-editor Demo.pdf --print
Printing metadata of file Demo.pdf

FileType: PDF
FileSize: 5.7 kB
FileModifyDate: 2018:07:13 00:00:00+00:00
FileAccessDate: 2018:07:13 12:00:00+00:00
FilePermissions: rw-r--r--
PDFVersion: 1.3
PageCount: 1
Linearized: No

Title: Demo Title
Author: Demo Author
Subject: Demo Subject
CreateDate: 2018:07:13 00:00:00
FileModifyDate: 2018:07:13 00:00:00+00:00
Creator: Demo Creator
Producer: Demo Producer
Keywords: demo,pdf,file

-o/--overwrite

Overwrite the original file.

If not specified, the original file is retained by default.