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

Disabled optional content groups are rendered

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.6, 2.0.13
    • 2.0.14, 3.0.0 PDFBox
    • Rendering

    Description

      Printing a Documents with hidden optional content groups original.pdf renders hidden content printed.png. Code used to print

      InputStream sourceStream = new FileInputStream(pFile);
      try {
        PDDocument source = PDDocument.load(sourceStream);
        job.setPageable(new PDFPageable(source));
        job.print(atts);
      } finally {
        sourceStream.close();
      }
      

      This is not only a problem of PDFBox but can be done right ... ghostscript does it gs.png.

      Attachments

        1. printed.png
          366 kB
          Stefan Ziel
        2. pop-bugzilla42823-OCG.pdf
          1.07 MB
          Tilman Hausherr
        3. PDFBOX-4399-2.patch
          22 kB
          Stefan Ziel
        4. PDFBOX-4399-046615_p9_OCG-NoRotate-Annotations.pdf
          56 kB
          Tilman Hausherr
        5. original.pdf
          178 kB
          Stefan Ziel
        6. gs.png
          350 kB
          Stefan Ziel
        7. 1822-AGB.pdf
          304 kB
          Tilman Hausherr

        Issue Links

          Activity

            People

              tilman Tilman Hausherr
              jjcool Stefan Ziel
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: