Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading fields from PDF
Message
De
11/11/2011 17:28:58
 
 
À
11/11/2011 17:16:05
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:
01528703
Vues:
42
>First I get the suggestion to change Public to Dim
>
>Then a suggestion to change Collection to iCollection ( the interface)
>
>I think the error you got before from itextsharp said it was trying to cast as an icollection
>
>( not sure if it is important, but also remember iTextsharp is C# so anything passed into it may be case sensitive )

I am trying to make it simpler. I took this example from http://stackoverflow.com/questions/3367390/read-pdf-form-data-using-itextsharp.
        Dim pdfTemplate As String = "my.pdf"
        Dim pdfReader As New iTextSharp.text.pdf.PdfReader(pdfTemplate)
        Dim fields As iTextSharp.text.pdf.AcroFields = pdfReader.AcroFields.Fields
        Dim val As String = fields.GetField("fieldname")
It doesn't give any error. However, if you would take fields, how you would do a For/Each loop with it? I tried various declarations but I cannot find the right one. There has to be a way to scan that collection.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform