Metadata-Version: 2.4
Name: editpdfree
Version: 1.0.0
Summary: Free PDF utilities - merge, split, rotate, extract. Online at editpdfree.com
Home-page: https://www.editpdfree.com
Author: EditPDFree Team
Author-email: contact@editpdfree.com
Project-URL: Homepage, https://www.editpdfree.com
Project-URL: Merge PDF, https://www.editpdfree.com/merge-pdf
Project-URL: Split PDF, https://www.editpdfree.com/split-pdf
Project-URL: Compress PDF, https://www.editpdfree.com/compress-pdf
Project-URL: PDF to Word, https://www.editpdfree.com/pdf-to-word
Project-URL: Bug Tracker, https://www.editpdfree.com/contact
Keywords: pdf,pdf-tools,merge-pdf,split-pdf,editpdfree,pdf-editor
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: PyPDF2>=3.0.0
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license-file
Dynamic: project-url
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# 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

```bash
pip install editpdfree
```

## Quick Start

```python
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:

- [Merge PDF](https://www.editpdfree.com/merge-pdf)
- [Split PDF](https://www.editpdfree.com/split-pdf)
- [Compress PDF](https://www.editpdfree.com/compress-pdf)
- [PDF to Word](https://www.editpdfree.com/pdf-to-word)
- [Word to PDF](https://www.editpdfree.com/word-to-pdf)
- [Rotate PDF](https://www.editpdfree.com/rotate-pdf)
- [Protect PDF](https://www.editpdfree.com/protect-pdf)
- [Unlock PDF](https://www.editpdfree.com/unlock-pdf)
- [Watermark PDF](https://www.editpdfree.com/watermark-pdf)
- [PDF to JPG](https://www.editpdfree.com/pdf-to-jpg)
- [JPG to PDF](https://www.editpdfree.com/jpg-to-pdf)
- [Sign PDF](https://www.editpdfree.com/sign-pdf)
- [Edit PDF](https://www.editpdfree.com/edit-pdf)
- [OCR PDF](https://www.editpdfree.com/ocr-pdf)
- [PDF to Excel](https://www.editpdfree.com/pdf-to-excel)

## 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.
