Can I set an image as the default title page for PDF export?
Asked by Isaac Steele:

A UI designer was nice enough to whip up some great looking title pages for PDFs for me to give our PDF docset more polish. The images are the exact size of a standard PDF page.  

Is there any way I can upload the PDF image to a confluence space, and then have that image load as the first page of any PDF Space Export?  

To clarify, we already have a working title page where there is an image set inside the default title page. I want to do away with this cover and instead us an image ***as*** the title page itself. I suppose it might be the same as setting an image and then expanding it to fille the entire page, but I'm afraid I don't know the CSS (or if Confluence even supports it).


Answers:
author: Edward Hang
body: Hi,

Is this still an issue? I seem to be getting similar results


author: Herve Frydlender
body: Hi,

Just add the image as space attachment and this to "Look \& Feel \> PDF Style Sheet":

```
@page:first {

/* Place an image in the background */
background-image: url("place the link to the image here");
background-size: cover;

}
```

comments: author: Isaac Steele
body: Hi   
[@Herve Frydlender](/t5/user/viewprofilepage/user-id/1208680) thanks for this. The image does set to fit the whole page, but it looks like whenever I do an export, content is superimposed ontop of the background image.  

![Test Title Page.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/70982i7834298E50FCEAB1/image-dimensions/373x475?v=v2 "Test Title Page.jpg")  

I'm trying to figure out how to get rid of that content/text field, so that the first page of the export is **only** the image (and then all the content starts on the next page):  

![ActualTitlePage.png](https://community.atlassian.com/t5/image/serverpage/image-id/70983i62231226DBD88CB9/image-dimensions/363x469?v=v2 "ActualTitlePage.png")  

It's especially weird because that first block of text can be either anything set in Look \& Feel \> "PDF Layout" (which is in HTML) or simply the first page within a given PDF export. Meanwhile, this image itself is set in Look \& Feel \> PDF Stylesheet (which is in CSS).  

All in all, it's very confusing (and frustrating) just to get a default cover page. :/  

But thank you for your help all the same.


author: Herve Frydlender
body: You're welcome.

I think the only option would be to force a page break before the title. Unfortunately, since 6.13 the way you specify specific formatting for the title as changed, and I'm struggling to find how to address that. If I find a way I'll come back to you.


author: Nils Bier _K15t_
body: Hi [@Isaac Steele](/t5/user/viewprofilepage/user-id/1900496)

Have you had a look at our [Scroll PDF Exporter](https://marketplace.atlassian.com/apps/7019/scroll-pdf-exporter-for-confluence?hosting=server&tab=overview) already? It allows you to easily customize your PDF templates using a graphical template designer. No CSS or HTML coding skills needed.

One feature of the template designer is to [define static pages](https://help.k15t.com/scroll-pdf-exporter/latest/server/customize-document-sections-169903644.html), and use background images on those static pages: You could simply define a title page with the wanted metadata (title of the page, date, ...) and [use the image as a background image](https://help.k15t.com/scroll-pdf-exporter/latest/server/customize-document-sections-169903644.html#id-.Customizedocumentsectionsv4.9-Createacustombackground).

Please let me know if you have any additional questions - as with all Marketplace apps, Scroll PDF Exporter can be tried for free using an evaluation license.

Best,  
Nils


Tags: confluence-server

server