0

I use Itextsharp in WinDev and I try to get the names of a form. My code is hereafter :

Machaine est une chaine

PdfSource= FicSource
PdfDestination = RepCible+"\"+fExtraitChemin(PdfSource,fFichier)+" "+CodId+".pdf"
MonStream = allouer un FileStream(PdfDestination,FileMode::Create)

MonPdfReader est un PdfReader(PdfSource)

POUR TOUT MaChaine  DANS MonPdfReader.AcroFields.Fields.Keys

FIN

The problem is that "MonPdfReader.AcroFields.Fields.Keys" is not accepted.

Thanks for your ideas ...

CSchulz
  • 10,882
  • 11
  • 60
  • 114
  • Please try to explain a more detailed what you want to do. The french sentences are belonging to the code or not? Please adjust it. :) – CSchulz Feb 08 '14 at 11:49
  • Ok.My aim is to get the fields names so that i can more easyly fill them – user3286989 Feb 08 '14 at 15:28
  • The french sentences are part of the code. I do not succeed in defining the collection which is iterated. – user3286989 Feb 08 '14 at 15:30
  • In my code, "MaChaine" is a string and WinDev/Itext doesn't accept a string to refer to field.keys. – user3286989 Feb 08 '14 at 15:38
  • I eventually found out what was wrong. If anybody interested : PdfSource= Sai_FicSource //file pdf source MonPdfReader est un PdfReader(PdfSource) Monfield est un AcroFields.Item POUR TOUT Monfield DE MonPdfReader.AcroFields.Fields.Keys MaChaine=Monfield FIN – user3286989 Feb 08 '14 at 21:34
  • If this is your solution, please answer your own question. :) – CSchulz Feb 09 '14 at 00:59

1 Answers1

1

As you didn't answer your question, here it is :

PdfSource = Sai_FicSource 
//file pdf source 
MonPdfReader est un PdfReader(PdfSource) 
Monfield est un AcroFields.Item 
POUR TOUT Monfield DE MonPdfReader.AcroFields.Fields.Keys 
    MaChaine = Monfield 
FIN
WaLinke
  • 726
  • 2
  • 6
  • 25