Skip to main content

shade-plugins-pdf

Extrai o texto e as tabelas de um PDF com camada de texto. É um plugin do shade-sdk; roda offline, sem credencial e sem nenhuma operação com efeito.

No shade.toml do robô:

[plugins]
pdf = "0.1.0"
import shade_plugins_pdf as pdf

paginas = pdf.texto("extrato.pdf")              # uma string por página
tabelas = pdf.tabelas("extrato.pdf", pagina=1)  # [[["Pedido", "Cliente"], ["1001", "Acme"]]]
Operação O que faz
total_de_paginas(caminho) Quantas páginas o PDF tem.
texto(caminho, paginas=None) O texto de cada página pedida (a partir de 1; todas, se omitido).
tabelas(caminho, pagina=None) As tabelas da página (todas, se omitida): lista de linhas de células em texto, e "" na célula vazia.
  • Tabela é a que o PDF desenha com linhas; tabela só alinhada por espaços não é detectada.
  • Não faz OCR: PDF escaneado (só imagem) devolve texto vazio e nenhuma tabela.
  • Página fora do documento é recusada com ErroDeContrato.

Metadata

Release files for shade-plugins-pdf 0.1.0

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

Built distribution (wheel)

Table of built distributions (wheels) for shade-plugins-pdf 0.1.0
File Interpreter ABI Platform
shade_plugins_pdf-0.1.0-py3-none-any.whl Python 3 none any Details

Release files / shade_plugins_pdf-0.1.0-py3-none-any.whl

Download URL shade_plugins_pdf-0.1.0-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2290868c2f41b36fd1e5d2c63e46ff5fd608dc6ef198f46d8d189ffc0fe2fbc0
BLAKE2b-256 checksum
How to use checksums
ba2664dcf86e6121001ceed47f628c99770fe2bfbae7c6510ad666939ceb2a1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Security for shade-plugins-pdf 0.1.0

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

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