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 file import File, Directory
>>> from pdflib import PdfStream
# instâncie o caminho do arquivo PDF e o diretório para exportar os dados.
f = File('path/to/file.pdf')
d = Directory('path/to/save')

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

Uso para unir vários arquivos PDF.

>>> from file 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.2.6.tar.gz (27.0 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.2.6-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for convert_stream-2.2.6.tar.gz
Algorithm Hash digest
SHA256 1e43c7d2f952cb522aa5f919ee9faa46f3b575bb82e822d8e02e3988cee32b3f
MD5 b4a702f645a6ecf7d2c724dd86a8d312
BLAKE2b-256 1ee6416089d54e24f857e897f32a77320c74efbee27fbba7fb589b4bb99a03f3

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for convert_stream-2.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9002db3ddaf175e623660b7c827d041a6e26d6dc33e2efcf00f57f574f81dcb6
MD5 fe15493d1d840a3f2cb7d80b1b359c15
BLAKE2b-256 198c2ff0f4b6e194df09c03e16a1f2543062dfc5af4e1cc2053f15f05bff52c6

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