Confluence allows users with View permission to export a page to PDF and Word formats.
If you do not use the ‘Display Types’ parameter to restrict the content to either ‘default’ or ‘printable,’ then the macros affect the visibility in BOTH the Confluence default view and exported PDF or Word documents.
Output of Export when Hide If or Show If Macro is Enforced
In this example, we will be exporting the page into PDF format.