Skip to content

Generate a pdf from all the images present inside a directory

License

Notifications You must be signed in to change notification settings

rsatwik/image2pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

image2pdf

Generate a pdf from all the images present inside a directory.

The script requires imagemagick package to be installed in the Linux system.

Steps to install imagemagick:

Usage:

  1. Clone the folder onto your system
  2. Add images (jpgor png or jpeg) to be combined into the folder. (Note: the pages in the final pdf are ordered based on the images sorted by their names)
  3. Optional: Update the image names as per your preferred order in the output pdf (example: naming the images as 1.jpeg,2.jpeg will result in 1.jpeg as the first page and 2.jpeg as the second page in the pdf)
  4. Execute the shell script
  5. Delete the existing images. Add new images to the folder, and repeat the process for generating a new pdf.

Example:

./image2pdf.sh final will generate a final.pdf in the directory

This folder can be used for quickly generating pdf for submissions (such as assignment submissions) from individual images of handwritten pages. Since captured images from devices such as mobile phones are named automatically in serial order, one can directly dump the images into the folder and generate the final pdf for submission.

About

Generate a pdf from all the images present inside a directory

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages