Skip to main content

Free PDF utilities - merge, split, rotate, extract. Online at editpdfree.com

Project description

EditPDFree - Free PDF Utilities

EditPDFree provides a simple Python library for common PDF operations. All functionality is also available as free online tools at https://www.editpdfree.com.

Installation

pip install editpdfree

Quick Start

from editpdfree import merge_pdfs, split_pdf, get_page_count, rotate_pdf

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

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

# Get page count
pages = get_page_count('document.pdf')
print(f"PDF has {pages} pages")

# Rotate PDF
rotate_pdf('document.pdf', 90, 'rotated.pdf')

API Documentation

get_pdf_info(filepath)

Get detailed information about a PDF file including page count, metadata, and encryption status.

merge_pdfs(pdf_list, output)

Merge multiple PDF files into a single PDF.

Parameters:

  • pdf_list (list): List of PDF file paths to merge
  • output (str): Path for the output merged PDF file

Returns: Path to the created merged PDF

split_pdf(filepath, output_dir)

Split a PDF file into individual page files.

Parameters:

  • filepath (str): Path to the PDF file to split
  • output_dir (str): Directory where individual page PDFs will be saved

Returns: List of paths to created PDF files

extract_pages(filepath, pages, output)

Extract specific pages from a PDF file.

Parameters:

  • filepath (str): Path to the PDF file
  • pages (list): List of page numbers to extract (1-indexed)
  • output (str): Path for the output PDF file

Returns: Path to the created PDF with extracted pages

rotate_pdf(filepath, degrees, output)

Rotate all pages in a PDF file.

Parameters:

  • filepath (str): Path to the PDF file
  • degrees (int): Degrees to rotate (90, 180, 270, etc.)
  • output (str): Path for the output rotated PDF file

Returns: Path to the rotated PDF file

get_page_count(filepath)

Get the number of pages in a PDF file.

Parameters:

  • filepath (str): Path to the PDF file

Returns: Number of pages (int)

Online PDF Tools

For more advanced PDF operations, visit our free online tools at:

Requirements

  • Python >= 3.7
  • PyPDF2 >= 3.0.0

License

MIT License - See LICENSE file for details

Support

Visit www.editpdfree.com for more information and online tools.

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

editpdfree-1.0.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

editpdfree-1.0.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for editpdfree-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3da26f75b8f421ad5f9d414c838ea294a99671a78c507dc5e6b864eede262b9f
MD5 879be2c99fdef8bd6466591a21ee9892
BLAKE2b-256 ad780ad13dc52385ee882b2c69df078dabae57beefd0453829f81b629b52f3f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: editpdfree-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for editpdfree-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ea82c36203505a25795115f91c584081e9265b4d0bb87a9e1c433212a35c1676
MD5 f8bfea2e17ed22afc3345eea82a274af
BLAKE2b-256 fb5a4755b69706ea2964afb267febade2e1d4332eb59f001838f668a0b825cb7

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