Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
5.6.4, 1000.177.1, 8.4.0
-
13
-
Severity 3 - Minor
-
2
-
Description
NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.
Step to Replicate
- Attach the following PDF Unable to embed resource: whole.space.pdf of type application/pdf to a Confluence Page
- 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
Issue Links
- relates to
-
CONFCLOUD-36927 Some PDF unable to render by the PDF viewfile macro.
- Closed