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

flatten can corrput PDF file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 2.0.19
    • None
    • AcroForm
    • None
    • 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. Rapport de poste 10042020 P1 original.pdf
          421 kB
          Jean-Pascal Laux
        2. Rapport de poste 10042020 P1 flattened.pdf
          399 kB
          Jean-Pascal Laux
        3. screenshot-1.png
          131 kB
          Tilman Hausherr
        4. image-2020-04-14-16-27-34-250.png
          88 kB
          Jean-Pascal Laux
        5. Rapport de poste 11042020 P2 orginal.pdf
          94 kB
          Jean-Pascal Laux

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: