Allows combining images to a searchable pdf using local ocr.
You can use this command if you have a bunch of images showing pages of a paper document
you want to share with others.
The resulting pdf document will show the images page per page
but also enable the user to search through recognized text parts for faster navigation.
The usage is simple, e.g. images2pdf eng attachment.pdf *.jpg or images2pdf deu Rechnung.pdf page1.png page2.png
The original repository will be stored on GitHub. You can use the original reopsitory if you want to use GitHub. Also issues and pull requests will be collected there for convenience.
This repository will be cloned to my own server. You can use the clone instead of this repository if you want to avoid use GitHub.
convert(from ImageMagick)ocrmypdf
- Clone project
- Add following line to your
.zshrc:
SOURCE "path/to/repo/images2pdf.plugin.zsh"- Clone project into
~/.oh-my-zsh/custom/plugins/images2pdf - Add
images2pdfto your plugin list
plugins=(… images2pdf …)- Add following line to your
.zshrc:
antigen bundle Zocker1999NET/zsh-images2pdf # GitHub if default repository unchanged
antigen bundle https://git.banananet.work/zsh-plugins/images2pdf # Own Serveror
- Add the repository to your plugin list
antigen bundles <<EOBUNDLES
…
Zocker1999NET/zsh-images2pdf # GitHub if default repository unchanged
https://git.banananet.work/zsh-plugins/images2pdf # Own Server
…
EOBUNDLES- Add following line to your
.zshrc:
antibody bundle Zocker1999NET/zsh-images2pdf # GitHub if default repository unchanged
antibody bundle https://git.banananet.work/zsh-plugins/images2pdf # Own Serveror
- Add the repository to your plugin list
antibody bundles <<EOBUNDLES
…
Zocker1999NET/zsh-images2pdf # GitHub if default repository unchanged
https://git.banananet.work/zsh-plugins/images2pdf # Own Server
…
EOBUNDLESimages2pdf LANG[+LANG…] OUTPUT [OPTS] INPUT…
LANG: Languages to detect forocrmypdfgiven in standardized three-letter codes (ISO 639-2 Alpha-3). Multiple languages may be given by concatenating them using+, likedeu+eng. Additional language packs may be installed following this documentation ofocrmypdfOUTPUT: The output name of the pdf document.OPTS: Additional options given toconvertWarning: These options cannot be given beforeOUTPUTdue to the way of processing the arguments given to the command.INPUT: All input files. These should be images supported by ImageMagick, otherwise the command may fail. The order the images were given to the command will be the resulting page order in the output document.
This plugin is licensed under WTFPL. Do the fuck you want to with this plugin, but please contribute to this plugin if you have made any improvements which could be useful for others.
If you find any issue, report it or fix it yourself and create a pull request.