Skip to main content

kmakepdf

kmakepdf is a simple yet powerful CLI tool to convert folders containing images and existing PDFs into a single merged PDF file.

Features

  • Recursive Processing: Automatically traverse subdirectories to create separate PDFs for each folder.
  • Smart Merging: Combines both images (.jpg, .jpeg, .png) and existing .pdf files.
  • Rich Logging: Professional, colored console output for better visibility.
  • CLI Interface: Easy-to-use command line interface.

Installation

pip install kmakepdf

Usage

Basic Usage

Convert a single folder to a PDF:

kmakepdf /path/to/folder

This will create /path/to/folder.pdf by default.

Specify Output File

You can specify a custom output filename:

kmakepdf /path/to/folder -o my_output.pdf

Recursive Mode

Process all subfolders within a directory:

kmakepdf /path/to/parent_folder -r

This will create a PDF for each subfolder inside parent_folder.

Development

This project uses uv for dependency management and nox for testing.

Setup

# Install dependencies
uv sync

Running Tests

uv run nox -s tests

License

MIT License. Copyright (c) 2025 Kihoa Nam.

Release files for kmakepdf 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kmakepdf 0.1.2
File Size Uploaded
kmakepdf-0.1.2.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kmakepdf 0.1.2
File Interpreter ABI Platform
kmakepdf-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.9 kB

Release files / kmakepdf-0.1.2.tar.gz

Download URL kmakepdf-0.1.2.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
64cdff8188d14a5c47d5767976d5cefae2a9180fa575e54014e2ba8c6b497ef5
BLAKE2b-256 checksum
How to use checksums
cbe3f875a30c7c2b20899c5251abdb90ae1f7ba79df048a97873fbd6e9e6ade6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / kmakepdf-0.1.2-py3-none-any.whl

Download URL kmakepdf-0.1.2-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6eea78c1384e59731f609445e0f84a52f4cc57bc1e03cc6bea166b8817ef002
BLAKE2b-256 checksum
How to use checksums
74ab3d0ba55739cf3652e2fdd264745e7202e5f903c41b2c0eaf76493ccf3c2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page