Skip to main content

Modulo que ler,traduz e escreve arquivos PDF.

Project description

OpenSource BuildPassing PythonVersion Pypi

visionPDF

Módulo Python para Leitura, Tradução e Escrita em Arquivos PDF.

Com uso dos módulos PyPDF2, reportlab e karkipytranslator , sintetizados em um único módulo, mas com todo o poder dos mesmos.

Instalação:

$ pip install visionPDF

Uso:

>> import visionPDF

------- LER -------

>> reader = visionPDF.PDFReader(file_in)    # Arquivo PDF a ser lido.
>> reader.get_text(page)                    # Retorna o texto da Pagina.

------- TRADUZIR ------

>> transl = visionPDF.PDFTranslate(to_lang)  # to_lang -> Linguagem para 
                                                    qual deseja traduzir.
                                                         Ex: pt,kr,en,...
>> transl.translate(text)                    # text -> Texto a ser traduzido.

-------- ESCREVER ---------

>> writer = visionPDF.PDFWriter(file_out,orientation)   # file_out -> Arquivo de Saida.
                                                        # orientation -> Orientação do documento. Ex: portrait/landscape.
>> writer.addText(text,x,y,font,size,color)            # Escreve um texto no documento.
>> writer.save_page()                                   # Salva o conteudo gravado na pagina e fecha ela.
>> writer.close()                                       # Fecha o Documento PDF.

Contato:

@informeai

Facebook Instagram Twitter

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

visionPDF-1.0.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file visionPDF-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: visionPDF-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1

File hashes

Hashes for visionPDF-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4c5fc428d178b138d048af45ebf25f19cc40acb87c84127ef7d4714c7919634b
MD5 d5997e91426d727057ffafe233728781
BLAKE2b-256 d1a200566d6cafa9f72df47abd2de398fe53ffbf6968c9a7308f2407601dad67

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