A vim wrapper of ericmason/pdftk. Edit metadata (e.g. author, title, etc) and bookmarks of pdf by vim.
In shell,
vi /the/path/of/test.pdf.txt
or in vim,
:edit /the/path/of/test.pdf.txt
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- A distribution of vim. Such as vim/vim.
- ericmason/pdftk.
- exiftool.
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
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
See doc/pdftk.txt
Or type the code in the command line of vim:
help pdftk
See more at Issues.