Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-4256

Return default value for CheckBox / RadioButton if /V entry is missing (widget /AS entries are present)

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.11
    • Fix Version/s: 2.0.12, 3.0.0 PDFBox
    • Component/s: AcroForm
    • Labels:
      None

      Description

      The /V entry is missing for the radio and checkbox fields in the attached file. getValue() returns nothing. A look at the widget shows that /AS is set. Shouldn't this be used as fallback? The value is the one that isn't COSName.Off.

      For the attached file, I looked at the radiobutton "Marital Status" and the checkbox "AS".

        Attachments

          Activity

            People

            • Assignee:
              msahyoun Maruan Sahyoun
              Reporter:
              tilman Tilman Hausherr
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: