Skip to main content

imagefrompdf

imagefrompdf es una herramienta de línea de comandos (CLI) que convierte un archivo PDF en imágenes (por página). Puedes elegir entre formatos de salida como PNG o JPG. El proyecto está diseñado para ser simple de usar, y coloca las imágenes generadas en la carpeta de descargas del usuario.

Características

  • Convierte PDFs en imágenes (una por página).
  • Soporta los formatos PNG y JPG.
  • Las imágenes se guardan en la carpeta de Descargas del usuario.
  • Modo CLI fácil de usar con opciones de formato.

Estructura del Proyecto

imagefrompdf/ ├── imagefrompdf/ │ └── main.py # Código principal de la CLI ├── LICENSE # Licencia ├── README.md # Descripción del proyecto ├── pyproject.toml # Configuración de la herramienta de empaquetado ├── setup.py # Script de instalación para PyPI └── requirements.txt # Dependencias necesarias

Requisitos

  • Python 3.6+
  • Las librerías necesarias son: pdf2image, Pillow y click.

Puedes instalar las dependencias con el siguiente comando:

pip install -r requirements.txt

Uso

Para convertir un PDF a imágenes, ejecuta el siguiente comando en tu terminal:

imagefrompdf --format png /ruta/a/tu/archivo.pdf

Este comando convertirá el archivo PDF en imágenes PNG, y las guardará en una carpeta dentro de tu directorio de Descargas.

Opciones

  • --format : Especifica el formato de imagen de salida. Puede ser png o jpg.

Ejemplo:

imagefrompdf --format jpg /ruta/a/archivo.pdf

Este comando generará imágenes en formato JPG en lugar de PNG.

Licencia

Este proyecto está bajo la Licencia Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0). Esto permite a otros copiar, distribuir, mejorar el trabajo, pero no usarlo con fines comerciales.

Puedes ver la licencia completa en el archivo LICENSE.

Metadata

Release files for imagefrompdf 0.0.1

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

Source distribution (sdist)

Source distribution for imagefrompdf 0.0.1
File Size Uploaded
imagefrompdf-0.0.1.tar.gz 3.5 kB Details

Built distribution (wheel)

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

Total release size: 7.7 kB

Release files / imagefrompdf-0.0.1.tar.gz

Download URL imagefrompdf-0.0.1.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
26587ecd2d8b47566b008a30c7c84fed44a73013009f4ebd13749d63a83097ce
BLAKE2b-256 checksum
How to use checksums
08cccf90e38fa9a8131e0538bb447c94a3571f43003be535e85f653f50571f52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / imagefrompdf-0.0.1-py3-none-any.whl

Download URL imagefrompdf-0.0.1-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b93126ceafcb9e1876ec4d3a5f57d6ae581363b0695cb87cebc46588df8bc7f
BLAKE2b-256 checksum
How to use checksums
298d7a336d7c9dd1be3c105780de8e6e62145bc53e8aaba00409e70f88bab588
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.0.1 This release

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