PDF Macro

Add the PDF macro to a page to display the content of a PDF document. First attach the document to a Confluence page, then use the macro to display the document.

This is great for sharing presentations, design documents, whitepapers, and other visual data.

This macro displays your file in a viewer, with next and back buttons, rather than showing a simple preview. 


On this page:

Screenshot: A page with a PDF macro displaying an A4 PDF document. 

Add this macro to your page

To add the PDF macro to a page:

  1. Upload the PDF file to your page, then publish the page. See Upload Files to learn how to do this. 
  2. Unable to render {include} The included page could not be found.
  3. Choose PDF from the Confluence content category.
  4. Select the attached file you want to display. 
  5. Choose Insert

You can then publish your page to see the macro in action. 

Screenshot: Configuring the PDF macro in the macro browser.

Change the macro parameters

Error rendering macro 'excerpt-include'

User 'null' does not have permission to view the page.

Here's a list of the parameters available in this macro. 

Parameter

Default

Description

Page Name
(page)

The page which contains the macro

Enter a page name, if you wish to display a document which is attached to another Confluence page.


File Name
(name)

none

The file name of the PDF document to be displayed. The document must be attached to a page on your Confluence site.

Error rendering macro 'excerpt-include'

User 'null' does not have permission to view the page.

Other ways to add this macro

Add this macro as you type

Unable to render {include} The included page could not be found.

Add this macro using wiki markup

Unable to render {include} The included page could not be found.

Macro name: viewpdf

Macro body: None.

{viewpdf:page=Docs|name=My document.pdf}
Last modified on May 18, 2020

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.