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

Disabled optional content groups are rendered

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.6, 2.0.13
    • Fix Version/s: 2.0.14, 3.0.0 PDFBox
    • Component/s: Rendering
    • Labels:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: