Secure-Compliance-Solutions-LLC / GVM-Docker

Greenbone Vulnerability Management Docker Image with OpenVAS
https://securecompliance.gitbook.io/projects/
MIT License
249 stars 91 forks source link

[Enhancement] Modifying PDF report template #337

Closed siloed closed 2 years ago

siloed commented 2 years ago

Hi,

I am running v21.4 docker image and trying to create a custom PDF report template.

So far, I've tried editing the following file, which was the only PDF related template location I could identify on the docker image: /report_formats/latex.xsl

I've edited this and tested trying to change the report name e.g. from the text 'Scan Report' to something else. Saved, and tried re-generating PDF but it did not seem to have an affect. Tried restarting the container, and also creating the report out of a fresh scan task, but its still the same.

Can you please provide some guidance where I could find the correct PDF template to edit and how to enforce those changes?

Much appreciated

siloed commented 2 years ago

found the location.

I could find the report format id within /report_formats/report_format.xml

then the actual latex.xsl location that is used for PDF generation seems to be at: /var/lib/gvm/gvmd/report_formats/<theonlyavailable_folder_id_here>/<id_from_above_file>/latex.xsl

you can also find this by searching for latex.xsl files within the docker container for e.g.: find / -type f | grep latex.xsl