PDF macro preview doesn't work inside the page history macro

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 7.13.2
    • 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

      1. Create a new blank page.
      2. Attach a PDF file and save the page.
      3. Make any modifications to the page, add some text and save it again.
      4. 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. 

      1. Upload the PDF file to your page, then publish the page. See Upload Files to learn how to do this. 
      2. From the editor toolbar, choose Insert   > Files and images
      3. Choose PDF from the Confluence content category.
      4. Select the attached file you want to display. 
      5. Choose Insert
      6. You can then publish your page to see the macro in action. 

            Assignee:
            Unassigned
            Reporter:
            Rodolfo Moreira (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: