iframe element does not export to PDF [NOT FIXED]

Deniz Kortan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 21, 2024

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 

{

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;  

}  

2 answers

0 votes
Kristian Klima
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 21, 2024

Hi @Deniz Kortan 

Using the method I outlined here , 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).

0 votes
Dan Breyen
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 21, 2024

Hi @Deniz Kortan welcome to the community.  Have you reached out to Atlassian Support 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.  

Deniz Kortan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 21, 2024

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events