lfortuny, he leído esto y me he dado cuenta que es verdad:
Cita:
|
❞
I'm afraid this is a mission impossible.
A pdf can be stored in so many diffrent ways...
the most horrific version is a picture/scan containing the text information you want.
an optimzed pdf ussually contains text as three letter fragments instead of complete lines of text. (this is a way of compressing information by pointing to a letter combination like 'ing' instead of repeating the combination everywhere it occurs)
So distilling info from a pdf... don't.
use a diffrent format like XML, HTML, TXT, RTF, etc... as PDF is a closed format, and in later versions even has read/copy restrictions and security on the file.
|
Podrías a lo mejor barajar la opción de usar un OCX lctor de PDF, como el Foxit que he puesto en el foro, cargar el fichero, guardarlo como texto y buscar la información en el texto.
Otra opción bastante chunga sería utilizar un OCR, pero de los gratuitos no he visto ninguno bueno.
Si el fichero de origen es tuyo (aunque estoy casi seguro que no), como dice el texto citado, yo también te aconsejo cambiar de formato.