iframe element does not export to PDF [NOT FIXED]
Asked by Deniz Kortan:

Hi All, I'm having a problems with the "iframe" element that Atlassian claimed to fix but it's not working for me.

When, I insert an iframe element, it appears in the Confluence Page, but does not export when exporting the Confluence Page to PDF. I can have 10 huge iframe elements in a row that don't show in the PDF and it's not even empty space, the PDF just has nothing there.

Atlassian stated that they fixed this bug earlier but obviously it's still a problem. See here: **<https://jira.atlassian.com/browse/CONFCLOUD-74949>**

My goal is to just have a live view of a Figjam in the Confluence Page, **which becomes a flat image** when exporting the Confluence Page to PDF. This must be possible.

I'm looking to avoid paying for an addon for just this one feature. I also don't want to code/host my own custom macro. I read online that there's a possibility to create my own "dynamic content macro" and use "renderModes" to render it as static for PDF export. But I still have no idea if it'd actually work. See this help article: <https://developer.atlassian.com/cloud/confluence/modules/dynamic-content-macro/>

Also, there's a miniscule chance that my custom CSS "PDF Stylesheet" is affecting the ability of Confluence to export an iframe to PDF, but I have an incredibly simple PDF Stylesheet. See below CSS code from my PDF Stylesheet...

/\* CSS - PDF Stylesheet \*/

[@page](/t5/user/viewprofilepage/user-id/2601906)

{

margin-top: .5in;

margin-bottom: .5in;

margin-left: .5in;

margin-right: .5in;

@bottom-right

{

content:"Page " counter(page) " of " counter(pages);

font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;

font-size: 10pt;

}

}

div

{

word-wrap: break-word;

}

hr { page-break-after:always; visibility: hidden; }

.pagetitle

{

page-break-before: always;

}


Answers:
author: Kristian Klima
body: Hi [@Deniz Kortan](/t5/user/viewprofilepage/user-id/4620643)

Using the method I outlined [here](https://community.atlassian.com/t5/Confluence-articles/Make-your-Google-Slides-presentation-presentable/ba-p/2716845) , I was able to create a PDF export file that showed a 'snapshot' of a Google docs spreadsheet (providing the target document is public for viewers).

However, the method failed when I tried to embed a Google slides presentation.

The outlined method (extracting the HTML element) works with iframing Figjams too (I tested that). As a Figjam tends to be a single entity (like a spreadsheet, unlike a multislide presentation), there's a chance it might work.

(I can't make any of my figjams public so I can't test it).


author: Dan Breyen
body: Hi [@Deniz Kortan](/t5/user/viewprofilepage/user-id/4620643) welcome to the community. Have you reached out to [Atlassian Support](https://support.atlassian.com/contact/?support_type=customer&inquiry_category=#/) and verified if your workflow was intended to be fixed? If it's still a problem, maybe there's a different workflow they were expecting to fix, or it's broken again.

comments: author: Deniz Kortan
body: Yes, I submitted a support ticket with them just before creating this post. Regardless, I think it's a good idea to have this post because I'm sure others can have this issue too. Either they'll help me or someday this post will help them.


Tags: cloud

confluence-cloud

dynamic

export

iframe

macro

pdf

pdf-export

static