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

Compression creates issue with Page structure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.0 PDFBox
    • 3.0.0 PDFBox
    • Writing
    • None

    Description

       

      Hi Team.

       

      PDFBox version 3.0.0-RC1

      pdftoppm version 21.04.0

      mupdf-gl version 1.18.0

       

      This might be an unusual issue but might needs to be checked. The simple code below creates a PDF that can't be viewed with Poppler because of "error: malformed page tree"​

      PDDocument testPdf = Loader.loadPDF(new File("input.pdf"));
      testPdf.save(new File("output.pdf"));
      testPdf.close();
      PDDocument testPdf2 = Loader.loadPDF(new File("input.pdf"));
      testPdf2.save(new File("output2.pdf"), CompressParameters.NO_COMPRESSION);
      testPdf2.close();
      

      This is not a content issue because all PDFs from the same producer have the same problem, I've just picked an example.

      Best regards

      Daniel

       

      Attachments

        Issue Links

          Activity

            People

              lehmi Andreas Lehmkühler
              kalaspuffar Daniel Persson
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: