Skip to main content

Manipulação de documentos PDF e Imagens. Converter, Ler, rotacionar exportar etc.

Project description

Configuração instalação:

pip3 install -r requirements.txt

Uso dividir páginas de um arquivo PDF:

>>> from soup_files import File, Directory
>>> from pdflib import PdfStream

# instâncie o caminho do arquivo PDF e o diretório para exportar os dados.
file_pdf = File('path/to/file.pdf')
output_dir = Directory('path/to/save')

pdf_stream = PdfStream()
pdf_stream.add_file_pdf(file_pdf)
pdf_stream.to_files_pdf(output_dir) # isso irá converter cada página em um arquivo PDF

Uso para unir vários arquivos PDF.

>>> from soup_files import File, Directory
>>> from pdflib import PdfStream

# instâncie o caminho dos arquivos PDF que deseja unir.
f = File('path/to/file.pdf')
f2 = File('path/to/file2.pdf)
...
... # Adicione quantos arquivos desejar.

pdf_stream = PdfStream()
pdf_stream.add_file_pdf(f)
pdf_stream.add_file_pdf(f2)
pdf_stream.to_file_pdf(File('path/to/new_file.pdf'))

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

convert_stream-2.4.2.tar.gz (23.7 kB view details)

Uploaded Source

Built Distribution

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

convert_stream-2.4.2-py3-none-any.whl (30.9 kB view details)

Uploaded Python 3

File details

Details for the file convert_stream-2.4.2.tar.gz.

File metadata

  • Download URL: convert_stream-2.4.2.tar.gz
  • Upload date:
  • Size: 23.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for convert_stream-2.4.2.tar.gz
Algorithm Hash digest
SHA256 6c1eeb84221804152808050c93fd3a9c5b67395fe71aedb417f313949b9ff0a5
MD5 5338f42fb5a183b2409d35f3f80ffe8a
BLAKE2b-256 a9d6c66b023ba0fafc19a982c75e090a8c3d30ca7bb2b08fe9324fda82ae0af2

See more details on using hashes here.

File details

Details for the file convert_stream-2.4.2-py3-none-any.whl.

File metadata

  • Download URL: convert_stream-2.4.2-py3-none-any.whl
  • Upload date:
  • Size: 30.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for convert_stream-2.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7c751094d010913bfdf8611f39a5f53f026405fab076bab9bf97fc91140f0c63
MD5 731a9fc34a0d51a53152fdb88030b61f
BLAKE2b-256 3d0d69d104e73ae671e7d0a3ec205812fa920f2089da0c579bddf7d6b78328f3

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