Skip to content

Vim-cn/pdftk.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pdftk.vim

A vim wrapper of ericmason/pdftk. Edit metadata (e.g. author, title, etc) and bookmarks of pdf by vim.

中文文档

Usage

pdftk

In shell,

vi /the/path/of/test.pdf.txt

or in vim,

:edit /the/path/of/test.pdf.txt

exiftool

vi /the/path/of/test.jpg.json
[{
  "SourceFile": "1.jpg",
  "ExifToolVersion": 13.59,
  "FileName": "1.jpg",
  "Directory": ".",
  "FileSize": "101 kB",
  "FileModifyDate": "2026:06:12 15:56:06+08:00",
  "FileAccessDate": "2026:06:12 16:00:44+08:00",
  "FileInodeChangeDate": "2026:06:12 16:00:23+08:00",
  "FilePermissions": "-rw-r--r--",
  "FileType": "JPEG",
  "FileTypeExtension": "jpg",
  "MIMEType": "image/jpeg",
  "JFIFVersion": 1.01,
  "ExifByteOrder": "Big-endian (Motorola, MM)",
  "XResolution": 1,
  "YResolution": 1,
  "ResolutionUnit": "None",
  "YCbCrPositioning": "Centered",
  "ImageWidth": 776,
  "ImageHeight": 1024,
  "EncodingProcess": "Baseline DCT, Huffman coding",
  "BitsPerSample": 8,
  "ColorComponents": 3,
  "YCbCrSubSampling": "YCbCr4:2:0 (2 2)",
  "ImageSize": "776x1024",
  "Megapixels": 0.795
}]

Edit metainformation:

[{
  "XResolution": 2,
  "YResolution": 2,
  "ResolutionUnit": "cm"
}]
:wq

Dependent

  1. A distribution of vim. Such as vim/vim.
  2. ericmason/pdftk.
  3. exiftool.

Install

Package manager

Such as Shougo/dein.vim, Add the following code to your vimrc.

call dein#add('Vim-cn/pdftk.vim')

Then type the code in the command line of vim:

call dein#install()

Or the following, need wsdjeg/dein-ui.vim.

SPInstall

Or the following, need haya14busa/dein-command.vim.

Dein install

Manual

Download the package first.

git clone https://github.com/Vim-cn/pdftk.vim /path/to/save/this/package

Add the following code to your vimrc.

set runtimepath+=/path/to/save/this/package

Customize

See doc/pdftk.txt

Or type the code in the command line of vim:

help pdftk

FAQ

See more at Issues.

About

A vim wrapper of [ericmason/pdftk]. Edit metadata (e.g. author, title, etc) and bookmarks of pdf by vim.

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors