📚 PDF to Image Converter
🚀 pdf_to_img_converter é uma biblioteca Python para converter arquivos PDF em imagens PNG. Suporta entrada de arquivos locais e URLs, além de oferecer a opção de remover automaticamente as imagens geradas.
✨ Funcionalidades
- 📄 Conversão de PDF para imagens.
- 🌐 Suporte a arquivos locais e URLs.
- 🗑 Função para excluir as imagens após o uso.
⚡ Instalação
Instale o pacote diretamente do PyPI:
pip install pdf_to_img_converter
Requisitos:
pdf2image,requestsePillow(instalados automaticamente).
💡 Como Usar
📄 Converter um PDF local para imagens
from pdf_to_img_converter.converter import convert_pdf_to_image
image_paths = convert_pdf_to_image("documento.pdf")
print("Imagens geradas:", image_paths)
for img in image_paths:
print(img)
🌐 Converter um PDF a partir de uma URL
image_paths = convert_pdf_to_image("https://www.exemplo.com/arquivo.pdf")
print("Imagens geradas:", image_paths)
for img in image_paths:
print(img)
🗑 Excluir imagens geradas após o uso
from pdf_to_img_converter.converter import delete_images
delete_images(image_paths)
print("Imagens excluídas com sucesso!")
🧪 Executando Testes
Para rodar os testes unitários:
pytest tests/
🏗 Estrutura do Projeto
pdf_to_img_converter/
│
├── pdf_to_img_converter/ # 📦 Código da biblioteca
│ ├── __init__.py
│ ├── converter.py # 🔥 Funções principais
│
├── tests/ # 🧪 Testes unitários
│ ├── test_converter.py
│
├── test_files/
│
├── pyproject.toml # ⚙️ Configuração do pacote
├── README.md # 📚 Documentação do pacote
├── LICENSE # 📜 Licença MIT
└── MANIFEST.in # 📋 Inclusão de arquivos extras
📝 Licença
Distribuído sob a Licença MIT. Veja o arquivo LICENSE para mais informações.
👨💻 Autor
Desenvolvido por Roberto Lima 🚀✨
💬 Contato
- 📧 Email: robertolima.izphera@gmail.com
- 💼 LinkedIn: Roberto Lima
- 💼 Website: Roberto Lima
- 💼 Gravatar: Roberto Lima
⭐ Gostou do projeto?
Deixe uma ⭐ no repositório e compartilhe com a comunidade! 🚀✨
Metadata
Release files for pdf-to-img-converter 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pdf_to_img_converter-0.1.1.tar.gz | 4.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pdf_to_img_converter-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.9 kB
Release files / pdf_to_img_converter-0.1.1.tar.gz
| Download URL | pdf_to_img_converter-0.1.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
48375d779abffc0f69a04c16ff1f60124a6133c1de9435258096363876c501c3
|
|
BLAKE2b-256 checksum How to use checksums |
cb99a42231a157b288c3244ecf03258fa82f28b72c1be9b50dd507b8f8e4dbe3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / pdf_to_img_converter-0.1.1-py3-none-any.whl
| Download URL | pdf_to_img_converter-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
60905c8304391924fb6007b144c65bac45f158d816281d87945097d33cd141cb
|
|
BLAKE2b-256 checksum How to use checksums |
05aa1be0ac48bbe157c374880b3af0326c90dcbf05d47ef9e68c75a32a32ba03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Security for pdf-to-img-converter 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.