Forums

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

HTML edited in pdf layout is not working

Saidmurod Saidkhonov October 20, 2021

I'm trying to add an image to the header of the page and added HTML code to header block in "Space Settings -> Look and feel -> Pdf Export". However when I export the page I don't see anything on the header of the page:
image.png

1 answer

1 accepted

1 vote
Answer accepted
Brant Schroeder
Community Champion
October 20, 2021

@Saidmurod Saidkhonov Welcome to the Atlassian community

For the image can you please use the full URL and see if that resolves the issue.  Documentation can be found here: https://support.atlassian.com/confluence-cloud/docs/advanced-pdf-export-customizations/

Saidmurod Saidkhonov October 21, 2021

@Brant Schroeder Thank you for your response.
Yes I've already tried that but nothing is shown. I think it's ignoring html code at all. I tried testing just texts, but that also not showing. Or am I missing something?

Brant Schroeder
Community Champion
October 21, 2021

@Saidmurod Saidkhonov I followed the directions listed in the link above and was able to get it to work.  I had to make sure that I provided width and height on the image.  It also will only work on full site exports and not page exports just in case you are doing a page export to pdf.

Like Saidmurod Saidkhonov likes this
Brant Schroeder
Community Champion
October 21, 2021

Forgot to mention that this was key:

Follow these instructions to include an image on your page:

  1. Attach the image to a Confluence page.

  2. View the list of attachments on that page, then right-click the image and copy its location.

  3. Paste the link into the appropriate src="" attribute in your PDF Stylesheet, as shown above.

  4. Edit the image URL so that it is relative, by removing the first part of the URL before /download/....

Saidmurod Saidkhonov October 22, 2021

@Brant Schroeder Yes I'm doing a page export not full exports. Is there a way that it works for a page export?

Brant Schroeder
Community Champion
October 22, 2021

I do not believe so.  I believe there are some apps in the marketplace that can help with that. https://marketplace.atlassian.com/search?hosting=cloud&product=confluence&query=PDF%20export

Saidmurod Saidkhonov October 22, 2021

@Brant Schroeder Thank you! You helped a lot.

Suggest an answer

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

Atlassian Community Events