Skip to content
rishabh3354Public

About

Open-source image to PDF converter for Linux. Batch convert JPG, PNG, BMP, TIFF, SVG & WebP into PDF with custom page size, DPI and AES-256 encryption. Python/PyQt5, MIT.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

Β 

History

88 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

JPEG2PDF β€” Image to PDF Converter for Linux (JPG, PNG, TIFF, WebP, SVG)

JPEG2PDF is a fast, offline image-to-PDF converter for Linux. Batch convert JPG, PNG, BMP, GIF, TIFF, SVG and WebP images into high-quality PDF documents β€” with page size and margin control, custom DPI, page numbering, rotation, grayscale output and AES-256 password protection. Everything runs locally; your images never leave your computer.

Open source (MIT), written in Python and PyQt5 β€” the full application source is in this repository.

Flathub installs Snap Store version MIT licensed GitHub stars

Runs on Ubuntu, Debian, Fedora and Arch Linux Built with Python and PyQt5 AES-256 PDF encryption Runs entirely offline

Installed 28,000+ times on Flathub.


Contents


πŸ“Έ Screenshots

Dark theme Light theme
JPEG2PDF main window in dark theme β€” image queue with dimensions, format and file size, live preview and PDF settings JPEG2PDF main window in light theme showing the same batch conversion queue

JPEG2PDF app settings and advanced PDF settings β€” measure units, page margins, image position, DPI and page rotation


πŸ“₯ Install

Install JPEG2PDF from the Snap StoreΒ  Install JPEG2PDF from Flathub

Snap

sudo snap install jpg2pdf
jpg2pdf

Flatpak

flatpak install flathub com.warlordsoftwares.jpeg2pdf
flatpak run com.warlordsoftwares.jpeg2pdf

Works on Ubuntu, Debian, Fedora, Arch, Linux Mint, Pop!_OS and any other distribution with Snap or Flatpak.


🌟 Features

  • Batch convert β€” turn a whole folder of images into PDFs in one click.
  • One PDF or many β€” merge every image into a single document, or export one PDF per image.
  • Sort and reorder β€” sort by name, date modified, file size or date taken, drag images into any order, or move them to the top or bottom.
  • Ticked automatically β€” new images are ready to convert; click the βœ“ column header to tick or untick all.
  • Page sizes β€” A4, A3, A5, Letter, Legal or any custom size, with automatic orientation.
  • Several images per page β€” 2, 4, 6 or 9 per page, great for receipts and ID cards.
  • Margins and positioning β€” set page margins and image placement in mm, cm, pt or inches.
  • Custom DPI β€” pick the image resolution that suits print or screen.
  • Rotate and crop β€” fix single images (only the PDF changes, never your files), or rotate a page range.
  • Clean up scans β€” straighten tilted pages, cut off dark borders and make text clearer.
  • Smaller PDFs β€” compress images, split into several PDFs, or add images to an existing PDF.
  • One PDF per image β€” keeps each file's name (photo.tif β†’ photo.pdf), including multi-page TIFFs.
  • Searchable PDFs β€” OCR makes the text searchable and copyable (snap).
  • Grayscale and black-and-white output.
  • Page numbering with configurable fonts and styles.
  • AES-256 encryption β€” password-protect the resulting PDF.
  • PDF metadata β€” set title, subject and author.
  • Drag and drop images straight into the window.
  • Live preview with zoom before you export.
  • Presets, preview and undo β€” save favourite settings, preview the PDF before saving, undo list changes (Ctrl+Z).
  • Save anywhere β€” any folder, including USB drives; folders can be imported with their subfolders.
  • Built-in help and shortcuts (F1), adjustable text size, dark and light themes.
  • Fully offline β€” no upload, no file-size limit, no watermark, no ads.

πŸ–Ό Supported image formats

JPG Β· JPEG Β· PNG Β· BMP Β· GIF Β· TIFF Β· TIF Β· SVG Β· WebP Β· HEIC (snap)

...and other formats readable by Pillow.


πŸ” Common tasks

Task How JPEG2PDF handles it
Convert JPG to PDF Drop the images in and export β€” one click
Convert PNG to PDF Same flow; transparency is flattened onto the page
Merge multiple images into one PDF Queue them, reorder, export as a single document
Convert a scanned document to PDF Auto orientation and DPI control for readable scans
Convert TIFF to PDF Multi-format queue, no conversion step needed first
Password protect a PDF Tick Password and set an AES-256 password
Make a grayscale PDF Toggle grayscale to shrink scans and photos
Add page numbers Enable numbering and pick the font and style
Set A4 or Letter page size Choose the page size, or leave it on Auto
Convert a whole folder Add a folder of images, then Create PDF
One PDF per image, same file names Advanced settings β†’ Split or join PDFs β†’ Make a separate PDF for each image
Several receipts on one page Advanced settings β†’ Page layout β†’ Images per page

πŸ›  Run from source

The application is MIT licensed and the full source is in src/.

git clone https://github.com/rishabh3354/JPG2PDF.git
cd JPG2PDF

Install PyQt5 and the Python dependencies:

sudo apt install python3-pyqt5          # Debian / Ubuntu
pip install -r req.txt                  # Pillow, fpdf2, pikepdf

Run it:

python3 src/jpg2pdf.py

Building the snap

snapcraft

The snap consumes pyqt5-runtime-core22-lite as a content snap rather than bundling PyQt5, which is what keeps the package small β€” snap/snapcraft.yaml is a working reference if you are packaging a PyQt5 app the same way.


❓ FAQ

Is JPEG2PDF free?

Yes. It is free to install from Flathub and the Snap Store, and the source is MIT licensed.

Does it upload my images anywhere?

No. All conversion happens locally on your machine. There is no upload, no account, and no file-size limit β€” which matters if you are converting scanned IDs, contracts or medical records.

Can it merge several images into one PDF?

Yes. Add all the images, reorder them however you like, and export a single PDF. You can also export one PDF per image.

Can it password protect the PDF?

Yes, with AES-256 encryption. Set the password before exporting.

What image formats does it support?

JPG, JPEG, PNG, BMP, GIF, TIFF, SVG and WebP, plus other formats Pillow can read.

Can I control page size and margins?

Yes β€” A4, A3, A5, Letter, Legal or a custom size, with margins and image position configurable in mm, cm, pt or inches, and a custom DPI setting.

Does it work on Wayland?

Yes. The packaged builds run under XWayland for compatibility (the snap sets QT_QPA_PLATFORM=xcb, so it also starts when the session asks for a Wayland Qt plugin).

Is it available for Windows or macOS?

Not currently β€” the packaged builds are Linux only. The source is Python and PyQt5, so it may run elsewhere, but that is untested and unsupported.

Can I contribute?

Yes. It is MIT licensed β€” open an issue or a pull request.


βš–οΈ How it compares

  • Online converters (iLovePDF, Smallpdf, Zamzar) β€” convenient, but you upload your documents to someone else's server and hit size and daily limits. JPEG2PDF works offline with no limits.
  • img2pdf / ImageMagick β€” excellent command-line tools, but no preview, no reordering and no encryption UI. JPEG2PDF is the graphical counterpart.
  • LibreOffice / GIMP export β€” works in a pinch, but painful for batches of images.
  • Scanner suites β€” heavier and usually tied to specific hardware.

🧩 More apps by Warlord Softwares

Other apps by Warlord Softwares are listed on warlordsoftwares.com.


πŸ”— Links


πŸ“„ License

MIT Β© Rishabh Bhardwaj / Warlord Softwares.

Built with PyQt5, Pillow, fpdf2 and pikepdf.

About

Open-source image to PDF converter for Linux. Batch convert JPG, PNG, BMP, TIFF, SVG & WebP into PDF with custom page size, DPI and AES-256 encryption. Python/PyQt5, MIT.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages