OpenSlides / openslides-client

Webclient for OpenSlides 4+
MIT License
3 stars 32 forks source link

Motion PDF Export: export without pre-selected svg logo #3586

Open MSoeb opened 6 months ago

MSoeb commented 6 months ago

Description: The motion PDF export is not possible with an SVG file that is to be output in the header, for example. The image won't be exported. However, other image formats can be used without any problems.

Reproduction:

  1. download https://upload.wikimedia.org/wikipedia/commons/b/b0/NewTux.svg file, for example
  2. Open a meeting
  3. open files and upload the the file
  4. mark the new file with one of the header options in the three-dot-menu
  5. open motions > create a motion > export it -> logo is not exported

What should happen: It should be possible to use a svg file for header options.

reiterl commented 6 months ago

At the moment, we don't support svg file in pdf export. See IMAGE_USABLE_FOR_PDF_MIMETYPE. This is not a bug. Adding the support for svg requires some work, but I think could be possible with pdfmake.

m-schieder commented 6 months ago

pdfmake supports svg. However, they are integrated differently than images. This also needs to be implemented.