Ver Mensaje Individual
  #4
Antiguo 15 de abril de 2016, 15:35
Kuk
Administrador
Última Actividad 19.09.2026 20:11
Posts Posts: 2.500
Likes enviados Enviados: 1037
Likes recibidos Recibidos: 1207

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.



NORMAS DEL FORO - para garantizar el buen funcionamiento del Foro.
¿Te han ayudado? NO TE OLVIDES de darle a
¿Quieres dirigirte a alguien en tu post? Notifícale haciendo clic en su Nick
Kuk is offline   Responder Con Cita