Adding your company logos to the reports
The PDF reports produced by S-Filer Portal (transfer audits, system event audits, users, groups, communities and tickets) display two logos on the same line as the report title, repeated in the header of every page: a corporate logo on the left and the report logo on the right.
Both are simple image files stored on the server installation, so replacing them with your own comes down to copying two files at the right place.
Warning
These logos have nothing to do with the user interface theme. The theme is deployed on the gateway and only affects the web interface; see Adding your company logos. The report logos are on the server, they are shared by all the reports, and they are the same for every theme.
Where the logo files are located
The images used by the reports are in the images directory of the etc directory of the server installation:
[Install folder]/server/etc/images
For example, for an installation in the default folder under Linux:
/usr/local/sfiler-server/server/etc/images
Two files of that directory are the logos of the reports:
| File | Position in the report | Delivered content |
|---|---|---|
| corporate-logo.jpg | Left of the report title | The S-Filer Portal logo, in grey. This is the slot meant for your corporate logo |
| logo.jpg | Right of the report title | The S-Filer Portal logo, in colour |
Warning
The other images of the directory (CheckedBox.jpg, UncheckedBox.jpg, icon_community.png, icon_user.png, icon_storage.png) are also used by the reports. Leave them where they are.
Preparing your images
- Keep the file names exactly as they are. The names are written inside the report templates; an image copied under another name is simply ignored.
- Use a wide image. Each logo is scaled to fit its box in the report header, keeping its proportions. The delivered logos are about 3.4:1, and an image with similar proportions gives the best result. A square or tall image is reduced to the height of that box and ends up very small.
Replacing the logos
- Keep a copy of your two images outside the installation directory. An update of the server reinstalls the content of the etc directory, and would restore the delivered logos.
- Rename your images corporate-logo.jpg and logo.jpg.
- Copy them into
[Install folder]/server/etc/images, replacing the delivered files. - Generate any PDF report from the administrative interface to check the result. There is no need to restart the server: the next report that is generated reads the new files.
Warning
On an installation with more than one server, repeat the operation on every server. A report is produced by the server that handles the request, so a logo replaced on a single server gives a different result from one report to the next.
See Also
The CSV version of the reports contains no image, and is therefore not affected. See Generate Reports in the Administration Guide.
Using another file for the report logo
The logo on the right is also a configuration of the server. The key cfg.server.report.service.report.logo holds the path of the image and its default value is etc/images/logo.jpg. Setting it to another path lets you keep your own file next to the delivered one instead of overwriting it.
The path is either an absolute path, or a path relative to the server directory of the installation, which is the directory the server process runs from. Whichever way you set it, the server rereads its configuration periodically, so the new value is applied within a few minutes, without a restart.
From the S-Filer Administrative Console
Open the S-Filer Administrative Console and select your server instance, then go to Configuration > Reports. Enter the path of your image in the Report Logo field and save.
With the configuration CLI
./sfiler-config-cli.sh -l my-user -p my-password -cf "conf/sfiler.conf" set-config -n Server1 -k "cfg.server.report.service.report.logo" -v "etc/images/my-logo.png".\sfiler-config-cli.bat -l my-user -p my-password -cf "conf\sfiler.conf" set-config -n Server1 -k "cfg.server.report.service.report.logo" -v "etc/images/my-logo.png"Replace Server1 with the name of your server instance.
Warning
There is no equivalent configuration for the corporate logo on the left: that one is always read from etc/images/corporate-logo.jpg and can only be changed by replacing the file.
See Also
- set-config, the command used above.
- Server configuration reference, for the complete list of the configurations of the server.
