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

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

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page