opencti icon indicating copy to clipboard operation
opencti copied to clipboard

Images embedded in report content are sized at 100% in PDF exports

Open damians-filigran opened this issue 1 year ago • 1 comments

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

  1. SaaS
  2. OpenCTI version: 6.2.15
  3. OpenCTI client: Edge
  4. Other environment details:

Reproducible Steps

  1. Create a new report
  2. Go to content tab and create an HTML document
  3. Write some content
  4. Paste a screenshot of a tool into the page
  5. Resize it to fit on the page
  6. 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)

image

damians-filigran avatar Aug 29 '24 15:08 damians-filigran

Also, a larger screenshot (eg. knowledge graph) will be completely missing from the PDF export

Original HTML: image

PDF contents: image

damians-filigran avatar Aug 29 '24 15:08 damians-filigran

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)

romain-filigran avatar Sep 02 '24 06:09 romain-filigran

related issue for the export-report-pdf connector: https://github.com/OpenCTI-Platform/connectors/issues/2587

romain-filigran avatar Sep 02 '24 10:09 romain-filigran