PDF Macro

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

For details, see the View File Macro.

Code examples

The following examples are provided for advanced users who want to inspect or edit the underlying markup for a Confluence page. 

Macro name: viewpdf

Macro body: None.

Parameter name Required Default Parameter description and accepted values
name Yes (None.)

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

page No The page containing the macro The name of a Confluence page to which the PDF document is attached.

Storage format example

  <ac:structured-macro ac:name="viewpdf">
    <ac:parameter ac:name="name">
      <ri:attachment ri:filename="My_document.pdf"/>

Wiki markup example

{viewpdf:page=Docs|name=My document.pdf}

Was this helpful?

Thanks for your feedback!

Why was this unhelpful?

Have a question about this article?

See questions about this article

Powered by Confluence and Scroll Viewport