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

flatten can corrput PDF file

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: 2.0.19
    • Fix Version/s: None
    • Component/s: AcroForm
    • Labels:
      None
    • Environment:
      Windows 7, Eclipse Neon, Java 8

      Description

      Hello,

      Depend of the content of the a text field, flatten create a PDF document without the value of the text value and Acorbat REader gives a error message when it opens the document.

      I have to rewrite the field value to have a correct PDF document.

      PDField field=form.getField("D├ętail page 1");
      if (field!=null) field.setValue(field.getValueAsString());

        Attachments

        1. screenshot-1.png
          131 kB
          Tilman Hausherr
        2. Rapport de poste 11042020 P2 orginal.pdf
          94 kB
          Jean-Pascal Laux
        3. Rapport de poste 10042020 P1 original.pdf
          421 kB
          Jean-Pascal Laux
        4. Rapport de poste 10042020 P1 flattened.pdf
          399 kB
          Jean-Pascal Laux
        5. image-2020-04-14-16-27-34-250.png
          88 kB
          Jean-Pascal Laux

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jplaux Jean-Pascal Laux
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: