Skip to content

Cross-platform command-line tool for creation of PDF documents from scans/photos of pages in JPEG (.jpg) format and the lightest weight ANSI C library to put multiple JPEG files into one PDF file.

License

Notifications You must be signed in to change notification settings

ImageProcessing-ElectronicPublications/jpeg2pdf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub release (latest by date) GitHub Release Date GitHub repo size GitHub all releases GitHub

jpeg2pdf

Cross-platform command-line tool for creation of PDF documents from scans/photos of pages in JPEG (.jpg) format and the lightest weight ANSI C library to put multiple JPEG files into one PDF file.

HOW TO USE

  1. Create PDF 'document.pdf' from all JPEG files in current directory:
    jpeg2pdf *.jpg -o document.pdf
  1. Create PDF 'scans.pdf' with: page size determined by maximum image size, page orientation forced to 'portrait', preserve the original dpi of images (don't scale), crop the height of each page at image borders (yields good results for scans with white background and correct dpi)
    jpeg2pdf -o scans.pdf -p auto -n portrait -z none -r height *.jpg
  1. Create PDF 'from_photos.pdf' with: A5 paper size, landscape orientation, fit the width of images (fw -- fit width), crop the height of each page (works well for properly cropped photos of A5 pages in landscape with unknown/wrong dpi and approximately correct widths)
    jpeg2pdf -o from_photos.pdf -p A5 -n landscape -z fw -r height *.jpg
  1. It is possible to specify the title, author, subject, keyword, and creator of produced PDF document with switches -t, -a, -s, -k, -c:
    jpeg2pdf -o doc.pdf -t "The Title of PDF" -a Andrew -c jpeg2pdf *.jpg

HOW TO COMPILE AND INSTALL

make && make install

compiles and installs jpeg2pdf to /usr/local/bin.

PROJECT HOME

http://sourceforge.net/projects/jpeg2pdf/

About

Cross-platform command-line tool for creation of PDF documents from scans/photos of pages in JPEG (.jpg) format and the lightest weight ANSI C library to put multiple JPEG files into one PDF file.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 95.9%
  • Roff 2.7%
  • Makefile 1.4%