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

Flatten not working on attached pdf form

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.3
    • Fix Version/s: 2.0.4, 3.0.0 PDFBox
    • Component/s: AcroForm
    • Labels:
      None

      Description

      Please see attached FlattenIssue.java. This code populates form fields in the OpenOfficeForm.pdf form and then it flattens the form. However the output OpenOfficeForm_filled_flattened.pdf is not correct. The values of the fields are incorrectly moved in left down corner.

      I have found a way how to workaround the issue please see FlattenIssueWorkaround.java which generates correct OpenOfficeForm_filled_flattened_workaround.pdf

      Attaching whole eclipse java project

        Attachments

        1. flattenissue.zip
          189 kB
          rumburak
        2. OpenOfficeForm_filled_flattened_workaround.pdf
          93 kB
          rumburak
        3. OpenOfficeForm_filled_flattened.pdf
          84 kB
          rumburak
        4. OpenOfficeForm_filled.pdf
          94 kB
          Tilman Hausherr
        5. OpenOfficeForm.pdf
          89 kB
          rumburak

          Activity

            People

            • Assignee:
              msahyoun Maruan Sahyoun
              Reporter:
              rumburak rumburak
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: