Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-36927

Some PDF unable to render by the PDF viewfile macro.

    XMLWordPrintable

Details

    Description

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      Step to Replicate

      1. Attach the following PDF Unable to embed resource: whole.space.pdf of type application/pdf to a Confluence Page
      2. Insert a PDF viewfile macro into the page and try to render the attachment with it

      Expected Result.

      The PDF is rendered with the viewfilemacro

      Observed Result
      The PDF could not be displayed.

      The following error will be thrown in the logs

      2015-03-11 20:39:08,731 ERROR [DefaultSlideCacheManager:thread-2] [com.benryan.conversion.AbstractSlideConversionTask] call problem while converting 2015 bsa application (3).pdf
       -- referer: http://10.60.5.195:8563/confluence/display/MTS/pdf+no | url: /confluence/plugins/servlet/pptslide | userName: admin
      java.lang.NullPointerException
      	at java.util.ArrayList.addAll(Unknown Source)
      	at com.sun.pdfview.annotation.WidgetAnnotation.getPageCommandsForAnnotation(WidgetAnnotation.java:221)
      	at com.sun.pdfview.PDFPage.setAnnots(PDFPage.java:666)
      	at com.sun.pdfview.PDFFile.createPage(PDFFile.java:1661)
      	at com.sun.pdfview.PDFFile.getPage(PDFFile.java:1533)
      	at com.benryan.conversion.PdfSlideConversionBatchTask.convertFile(PdfSlideConversionBatchTask.java:105)
      	at com.benryan.conversion.PdfSlideConversionBatchTask.convertFile(PdfSlideConversionBatchTask.java:33)
      	at com.benryan.conversion.AbstractSlideConversionTask.call(AbstractSlideConversionTask.java:50)
      	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      	at java.util.concurrent.FutureTask.run(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at java.lang.Thread.run(Unknown Source)
      

      Workaround

      Use File Preview Macro instead of View File Macro. Currently, there is no workaround to make the View File Macro to display the PDF file properly.

      Attachments

        1. Bienchen.pdf
          990 kB
        2. sample_1.png
          sample_1.png
          4 kB
        3. whole.space.pdf
          182 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jcheok Jing Hwa Cheok (Inactive)
              Votes:
              21 Vote for this issue
              Watchers:
              26 Start watching this issue

              Dates

                Created:
                Updated: