Simple Python module for generating PDF document from JPEG files.
It can put multiple scans/photos of pages in JPEG(.jpg) into one PDF file without quality loss. Python 3.6 or higher is required, no dependencies on external libraries.
import jpg2pdf
with jpg2pdf.create('test.pdf') as pdf:
pdf.add('1.jpg')
pdf.add('2.jpg')
pdf.add('3.jpg')