- Attach some PPT and PDF files to a Confluence page
- Embed then into the page using viewfile macro
- Result: All of the files were rendered just fine
- BUT randomly and intermittently, when you revisit the same page again, one of the viewfile macro from all of the viewfile macros will not be rendered - at times only certain page in the PDF is rendered although all of the pages can be rendered just fine previously. The same scenario could happened to the PPT file too. You'll see this kind of error in the logs:
Refreshing the page (at times this has to be done twice) helps to render the affected PDF/PPT file once more. Viewing the individual PDF/PPT using viewfile macro in an individual page do not have the same problem.
Use the new File Viewer to embed the document in the page.
To force Confluence generate the slide images again:
- Get the attachment ID for the attachment with the problem. To do so, please run the following SQL query in your Confluence database:
Please replace filename.ext with the filename with the problem.
- Go to the folder <CONFLUENCE_DATA>/viewfile/.
- Remove all files containing the attachment id from step #1. Filenames will look like slide-1234-1 where 1234 is the attachment id.
- Go to the page containing the attachment embedded in it. This should recreate the images for the slides.