Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can I set an image as the default title page for PDF export?

Isaac Steele October 25, 2019

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).

3 answers

0 votes
Edward Hang March 2, 2022

Hi,

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

0 votes
Herve Frydlender
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 28, 2019

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;

}

 

Isaac Steele October 29, 2019

Hi 
@Herve Frydlender 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

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

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.

Herve Frydlender
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 30, 2019

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.

0 votes
Nils Bier _K15t_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 28, 2019

Hi @Isaac Steele

Have you had a look at our Scroll PDF Exporter 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, 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.

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events