Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading fields from PDF
Message
De
11/11/2011 20:27:49
 
 
À
11/11/2011 20:01:23
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01528652
Message ID:
01528724
Vues:
23
>>I'm not at my desk right now but looking at the code above I am not sure this is an implementation of iEnumerable and if it is that lckey won't be a string but will be an object you'll need to cast as a string or find a string property within it.
>
>Well, that works. Is it just that the PDF I have is not fully compliant with a field approach. They basically just built a form with some grid lines and such and the client simply enters the data in the specific locations. So, those are not PDF fields. This is why when I executed that code, it didn't recognize any field. However, when I downloaded a real PDF form with field definition, I was able to read all of them.
>
>So, that approach is good. But, I cannot use it with the PDF I am working with.

I know you are very good with HTML so perhaps if you convert to HTML you will be able to easily parse it

http://sourceforge.net/projects/pdftohtml/

But if you will need to fill in data I strongly suggest you convert the PDFs to proper forms with fields and use iTextsharp to fill them.


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform