Can I change page content when I export PDF
Asked by Lai Tat Ming_ Ray:

May I know is there a way (Plugin or feature) to change the page content when I export PDF?

e.g.

**From![before.PNG](/t5/image/serverpage/image-id/339591i23D9D664E2F0B77A/image-size/large?v=v2&px=999 "before.PNG")**

**To![after.PNG](/t5/image/serverpage/image-id/339592iF8A684032C938DA2/image-size/large?v=v2&px=999 "after.PNG")**


Answers:
author: Kristian Klima
body: [@Lai Tat Ming_ Ray](/t5/user/viewprofilepage/user-id/5077548)

One more thing...

What [@Tessa Tuteleers](/t5/user/viewprofilepage/user-id/24152) and I said checks out. However, if you absolutely MUST have different layouts in your Confluence and in your PDFs, there is way.

**Warning:** it's straight out from the 'use your right hand to scratch behind the left ear' department.

The [Scroll PDF Exporter](https://marketplace.atlassian.com/apps/7019/scroll-pdf-exporter-for-confluence?tab=overview&hosting=cloud) app supports Conditional Content created in [Scroll Documents](https://marketplace.atlassian.com/apps/1217608/scroll-documents-for-confluence?hosting=cloud&tab=overview) app and its extension [Variants](https://marketplace.atlassian.com/apps/1226295/variants-for-scroll-documents?hosting=cloud&tab=overview).

The way it works is that you create TWO version of your tables on the Confluence page.

Using the Variants app, you label all page with a label, say ALL.

You put each into a Scroll Conditional Content macro and assign labels, say, ORIGINAL and FLIPPED to them respectively.

You create a Variant defined as ALL plus FLIPPED minus ORIGINAL.

Then, when exporting your pages using the Scroll PDF Exporter, you choose that Variant. As a result, your PDF export will feature the desired content with flipped tables only.

If this sounds like a solution in search of a problem it's because it is :D It is possible but, as the saying goes, if you can doesn't mean you should :D

**Short version:** You're better off converting the tables to the format you need for your PDFs :)

comments: author: Tessa Tuteleers
body: Woah, that's certainly a creative way to fix a problem! :D

Yeah, this technically works, I just can't imagine it would be worth this much hassle.   
And the base of the premises remains, you would have to do al the converting manually for the existing confluence tables, and all new ones.


author: Lai Tat Ming_ Ray
body: that sound complicated. So, I need to use three plugins [Scroll PDF Exporter for Confluence](https://marketplace.atlassian.com/apps/7019/scroll-pdf-exporter-for-confluence?tab=overview&hosting=cloud) , [Scroll Documents for Confluence](https://marketplace.atlassian.com/apps/1217608/scroll-documents-for-confluence?hosting=cloud&tab=overview) and [Variants for Scroll Documents](https://marketplace.atlassian.com/apps/1226295/variants-for-scroll-documents?hosting=cloud&tab=overview) to do it?

I think I need to play around to know how it is done XD


author: Kristian Klima
body: [@Lai Tat Ming_ Ray](/t5/user/viewprofilepage/user-id/5077548) - told you it's a solution in search of problem :)


author: Lai Tat Ming_ Ray
body: Well. I tried it on my instance. it works.![cap.png](https://community.atlassian.com/t5/image/serverpage/image-id/339921i0E913B46DE5F28C8/image-size/large?v=v2&px=999 "cap.png")

But I think it is not worth to do. As those plugins have cost. it needs to be updated and synchronized in both sections, which is similar to creating two pages :)

I haven't thought it was able to do this. Thanks for suggesting this interesting solution.

thanks [@Kristian Klima](/t5/user/viewprofilepage/user-id/5074962) [@Tessa Tuteleers](/t5/user/viewprofilepage/user-id/24152)


author: Tessa Tuteleers
body: Hi [@Lai Tat Ming_ Ray](/t5/user/viewprofilepage/user-id/5077548) ,

You can override how tables are styled in the "Look and feel" -\> Export settings in your confluence instance.

There is also an app that let's you change styles with templates, called Scroll PDF Exporter for Confluence.

However, In your example, you are combining panels with tables and completely flip the tables. I don't think that will be possible with either of the tools, but perhaps my CSS knowledge does not reach far enough to be sure.

Maybe it will be eaier to make some changes to the pages in confluence themselves before exporting, so at least the structure is already how you want it, and then style them better with CSS.

- Tessa

comments: author: Kristian Klima
body: I don't think flipping table via CSS is an option.

Redesigning the tables on the source (Confluence page) is the simplest solution.


Tags: cloud

confluence-cloud