-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 7.13.2
-
Component/s: Content - File Previews
-
None
-
2
-
Severity 3 - Minor
Issue Summary
Inside the page history macro, the PDF macro preview does not load, we get the following message error.
Error rendering macro 'viewpdf'com.atlassian.confluence.macro.MacroExecutionException: com.atlassian.confluence.macro.MacroExecutionException: The viewfile macro is unable to locate the attachment <"File name.pdf"> on this page
Steps to Reproduce
- Create a new blank page.
- Attach a PDF file and save the page.
- Make any modifications to the page, add some text and save it again.
- Go to the page history, and check the earlier versions.
Expected Results
A PDF preview is displayed.
Actual Results
The below exception is thrown in the page:
Error rendering macro 'viewpdf'com.atlassian.confluence.macro.MacroExecutionException: com.atlassian.confluence.macro.MacroExecutionException: The viewfile macro is unable to locate the attachment <"File name.pdf"> on this page
Workaround
Currently, there is no workaround to make the View File Macro display the PDF file properly but you can use Files and images preview instead of View File Macro.
- Upload the PDF file to your page, then publish the page. See Upload Files to learn how to do this.
- From the editor toolbar, choose Insert
> Files and images - Choose PDF from the Confluence content category.
- Select the attached file you want to display.
- Choose Insert.
- You can then publish your page to see the macro in action.