Images embedded in report content are sized at 100% in PDF exports
Description
When exporting a report to PDF, any inline images that were resized to fit on the page will lose their scaling and appear in the PDF at 100%, usually much larger than the space available
Environment
- SaaS
- OpenCTI version: 6.2.15
- OpenCTI client: Edge
- Other environment details:
Reproducible Steps
- Create a new report
- Go to content tab and create an HTML document
- Write some content
- Paste a screenshot of a tool into the page
- Resize it to fit on the page
- Export to PDF (simple format; no neighbours)
Expected Output
Inline images appear on the PDF page as they did in the editor
Actual Output
Inline images are scaled to be very large (100%?), so that they are too large for the page
Additional information
On testing server under Report "RansomHub IOCs"
Screenshots (optional)
Also, a larger screenshot (eg. knowledge graph) will be completely missing from the PDF export
Original HTML:
PDF contents:
Reproduced. The problem occurs with both ways of exporting to PDF:
- embedded PDF exporter
- export-report-pdf connector (https://github.com/OpenCTI-Platform/connectors/tree/master/internal-export-file/export-report-pdf)
related issue for the export-report-pdf connector: https://github.com/OpenCTI-Platform/connectors/issues/2587