Saludos
Necesitamos leer el contenido del texto de un archivo PDF, necesario para lectura de asientos contables, el usuario desea evitar la transcripción de miles de asientos contables.
Lectura del TEXTO desde archivo PDF
Re: Lectura del TEXTO desde archivo PDF
hi,
as i can say you need to extract TEXT from PDF
there are Tools, like xPDFreader, which can extract TEXT from PDF
https://www.xpdfreader.com/download.html
---
you can use Source of xPDFreader and try to use it direct under harbour
as i can say you need to extract TEXT from PDF
there are Tools, like xPDFreader, which can extract TEXT from PDF
https://www.xpdfreader.com/download.html
---
you can use Source of xPDFreader and try to use it direct under harbour
greeting,
Jimmy
Jimmy
- Antonio Linares
- Site Admin
- Posts: 42259
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- nageswaragunupudi
- Posts: 10691
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: Lectura del TEXTO desde archivo PDF
This may not work with complex pdfs but works with simple pdfs
No harm trying
No harm trying
Code: Select all | Expand
function pdf2txt( cPdf, cTxt )
local oWord := WinWordObj()
local oDoc
cPdf := cFileSetExt( cPdf, "pdf" )
if File( cPdf )
cPdf := TrueName( cPdf )
DEFAULT cTxt := cFileSetExt( cPdf, "txt" )
oDoc := oWord:Documents:Open( cPdf )
oDoc:SaveAs2( cTxt, 2 ) // wdFormatText )
oDoc:Close()
FW_MEMOEDIT( cTxt )
else
? cPdf + " not found"
cTxt := nil
endif
return cTxt
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India