Note that there are some explanatory texts on larger screens.

plurals
  1. POread pdf form data using iTextSharp: empty values
    primarykey
    data
    text
    <p>I'm reading a PDF module using iTextSharp and it's working quite good. I don't know why but, when I try to read the PDF fields using GetField() method some fields correctly filled on PDF file are returned as empty (value = ""). </p> <p>Do you know why? Are there some other way to extract values from PDF fields?</p> <pre><code>PdfReader pdfReader = new PdfReader(new RandomAccessFileOrArray(fileName), null); pdfFormFields = pdfReader.AcroFields; foreach (var field in pdfFormFields.Fields) { _logger.Error("Field: " + field.Key + " - Value: " + pdfFormFields.GetField(field.Key.ToString())); } </code></pre> <p>This is the output:</p> <pre><code>PDFReader.PDFRead - Field: modulo1[0].BASALE_PAG1[0].SITO_TUMORE_PRIMITIVO[0] - Value: Stomaco PDFReader.PDFRead - Field: modulo1[0].BASALE_PAG1[0].ALTRO_SITO_TUMORE_PRIMITIVO[0] - Value: cervice PDFReader.PDFRead - Field: modulo1[0].BASALE_PAG1[0].IST_PRIM_SECOND[0] - Value: su secondario PDFReader.PDFRead - Field: modulo1[0].BASALE_PAG1[0].STADIAZIONE[0] - Value: IIa PDFReader.PDFRead - Field: modulo1[0].BASALE_PAG2[0].OCTREOSCAN_Ga-PET[0] - Value: Negativo PDFReader.PDFRead - Field: modulo1[0].BASALE_PAG2[0].FUNZIONANTE[0] - Value: No PDFReader.PDFRead - Field: modulo1[0].BASALE_PAG2[0].CgA_INIZIO_TERAPIA[0] - Value: 1.00000000 PDFReader.PDFRead - Field: modulo1[0].BASALE_PAG2[0].CgA_VAL_RIFERIMENTO[0] - Value: PDFReader.PDFRead - Field: modulo1[0].BASALE_PAG2[0].ACIDO5_VAL_RIFERIMENTO[0] - Value: </code></pre> <p>tnx, <br /> Andrea</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload