Skip to main content

Lightweight PDF utilities — merge, split, extract, rotate, compress. By MiOffice.ai

Project description

mioffice-pdf-utils

Lightweight PDF utilities for Python — merge, split, extract pages, rotate, compress, and get metadata.

Built by JSVV SOLS LLC — the team behind MiOffice.ai, the AI Office Suite with 66+ browser-based tools.

Installation

pip install mioffice-pdf-utils

Usage

from mioffice_pdf_utils import merge_pdfs, split_pdf, extract_pages, rotate_pdf, get_metadata, compress_pdf

# Merge multiple PDFs
merge_pdfs(["file1.pdf", "file2.pdf"], "merged.pdf")

# Split PDF into individual pages
pages = split_pdf("document.pdf", "./output/")

# Extract specific pages (1-based)
extract_pages("document.pdf", "extracted.pdf", pages=[1, 3, 5])

# Rotate all pages
rotate_pdf("document.pdf", "rotated.pdf", degrees=90)

# Compress PDF
compress_pdf("large.pdf", "compressed.pdf")

# Get metadata
meta = get_metadata("document.pdf")
print(f"Title: {meta['title']}, Pages: {meta['page_count']}")

API

Function Description
merge_pdfs(paths, output) Merge multiple PDFs into one
split_pdf(path, output_dir) Split PDF into individual pages
extract_pages(path, output, pages) Extract specific pages
rotate_pdf(path, output, degrees) Rotate all pages
remove_pages(path, output, pages) Remove specific pages
compress_pdf(path, output) Compress PDF streams
get_metadata(path) Get title, author, page count

License

MIT — JSVV SOLS LLC

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mioffice_pdf_utils-1.0.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mioffice_pdf_utils-1.0.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file mioffice_pdf_utils-1.0.0.tar.gz.

File metadata

  • Download URL: mioffice_pdf_utils-1.0.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for mioffice_pdf_utils-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e518ccae41dc1258f50af27dd2f293397d9a08ba67c1777aaf59572d88878e07
MD5 2117de318dbb89be734eca471288453b
BLAKE2b-256 54cf8f5f714c522fab627a2b6374b372767250d296968ac7d0d03a8689741689

See more details on using hashes here.

File details

Details for the file mioffice_pdf_utils-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mioffice_pdf_utils-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b16f2e24c42656154e51bf5ead35130dae4bf587a1415f33dc71a66148134c69
MD5 c15df0ea5dd9f9327bb8415bc235eed5
BLAKE2b-256 5badd0b19dfede7902887b6f256d4b9486099ebd5223d78f52d4e46b6b745781

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page