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

Flatten not working on attached pdf form

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.3
    • 2.0.4, 3.0.0 PDFBox
    • AcroForm
    • 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. OpenOfficeForm_filled.pdf
          94 kB
          Tilman Hausherr
        2. OpenOfficeForm_filled_flattened_workaround.pdf
          93 kB
          rumburak
        3. OpenOfficeForm_filled_flattened.pdf
          84 kB
          rumburak
        4. OpenOfficeForm.pdf
          89 kB
          rumburak
        5. flattenissue.zip
          189 kB
          rumburak

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: