Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-96932

Thumbnails and Previews are not generated and an error is thrown with some PDFs generated from scanned documents

    Details

      Description

      Thumbnails and Previews are not generated and an error is thrown with some PDFs generated from scanned documents

      Steps to reproduce

      1. Go to Document library
      2. Upload one of the attached PDFs, for example: A04871-04872.pdf or sigice9_172.Adobe.pdf
      3. Check document thumbnail and preview:
        • Expected behavior: thumbnail and preview are correctly generated
        • Wrong behavior: thumbnail and preview are not correctly generated, a blank page is displayed
      4. Check log file:
        • Expected behavior: no error is written to log file
        • Wrong behavior: some "Cannot read JBIG2 image" errors are written to log file
          Jun 14, 2019 10:31:02 AM com.liferay.portal.kernel.log.Jdk14LogImpl info
          INFO: Detected server tomcat
          2019-06-14 10:31:03.425 ERROR [main][PDFStreamEngine:211] Cannot read JBIG2 image: jbig2-imageio is not installed
          2019-06-14 10:31:04.699 INFO  [main][PropsUtil:385] Global shared lib directory /C:/Liferay/Bundles_Builds/portal-master/tomcat-9.0.17/lib/
          2019-06-14 10:31:04.702 INFO  [main][PropsUtil:396] Global lib directory /C:/Liferay/Bundles_Builds/portal-master/tomcat-9.0.17/lib/ext/
          2019-06-14 10:31:04.704 INFO  [main][PropsUtil:419] Portal lib directory /C:/Liferay/Bundles_Builds/portal-master/tomcat-9.0.17/webapps/ROOT/WEB-INF/lib/
          Loading jar:file:/C:/Liferay/Bundles_Builds/portal-master/tomcat-9.0.17/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
          2019-06-14 10:31:05.297 ERROR [main][PDFStreamEngine:211] Cannot read JBIG2 image: jbig2-imageio is not installed
          

        Attachments

        1. A04871-04872.pdf
          135 kB
        2. A12321-12321.pdf
          164 kB
        3. fixed on 72.png
          fixed on 72.png
          62 kB
        4. fixed on master.png
          fixed on master.png
          65 kB
        5. ItDoesntWorkScan.pdf
          10 kB
        6. No error in log.png
          No error in log.png
          33 kB
        7. sigice9_172.Adobe.pdf
          18 kB

          Issue Links

            Activity

              People

              Assignee:
              beck.liu Beck Liu
              Reporter:
              jorge.diaz Jorge Diaz
              Participants of an Issue:
              Recent user:
              Joel Garman
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 5 weeks, 6 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP88
                  7.0.10.13 DXP SP13
                  7.0.X
                  7.1.10 DXP FP15
                  7.1.X
                  7.2.10 DXP FP1
                  7.2.1 CE GA2
                  7.2.X
                  7.3.10 DXP GA1
                  Master