Modulo que ler,traduz e escreve arquivos PDF.
Project description
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
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for visionPDF-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c5fc428d178b138d048af45ebf25f19cc40acb87c84127ef7d4714c7919634b |
|
MD5 | d5997e91426d727057ffafe233728781 |
|
BLAKE2b-256 | d1a200566d6cafa9f72df47abd2de398fe53ffbf6968c9a7308f2407601dad67 |