Hi,
I've been trying to insert a logo into a header using the PDF stylesheet.
I've looked at:
and
and modified the path with my own image location.
No matter what I try, when I click Save, I receive a HTTP Status 500 - Internal Server Error
Here's what I enter on the PDF stylesheet:
@page
{
margin-top: 2.54cm;
margin-bottom: 2.54cm;
margin-left: 1.27cm;
margin-right: 1.27cm;
@Top-left
{
background-image: url('/download/attachments/622690402/candella_logo_desktop_1.png');
background-size: 250px 86px;
background-repeat: no-repeat;
background-position: left center;
height: 86px;
width: 250px;
}
}
This is a sample of what I receive when I click Save:
Type Exception Report
Message java.lang.IllegalArgumentException: Host name may not be null
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
java.lang.RuntimeException: java.lang.IllegalArgumentException: Host name may not be null com.atlassian.confluence.extra.flyingpdf.config.ConfigurePdfExportAction.ssrfCheck(ConfigurePdfExportAction.java:169) com.atlassian.confluence.extra.flyingpdf.config.ConfigurePdfExportAction.doEdit(ConfigurePdfExportAction.java:283) java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.base/java.lang.reflect.Method.invoke(Method.java:568)
Hi @Beth Wadds and welcome to the community,
If you try with the full url, what response are you getting?
Thank you, changing the image line to the following worked.
background-image: url('https://candella.atlassian.net/wiki/download/attachments/622690402/candella_logo_desktop_1.png');
Thank you very very much!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.