BookStackApp / BookStack

A platform to create documentation/wiki content built with PHP & Laravel
https://www.bookstackapp.com/
MIT License
15.43k stars 1.94k forks source link

Export to PDF / missing link icon in pdf file #5185

Open conserve-cgn opened 2 months ago

conserve-cgn commented 2 months ago

Describe the Bug

A link in Bookstack has a link icon. If you want to export a book or a page as a PDF and the book contains a link, the link icon is not exported. You will only see a rectangle instead of the link icon.

Normally the link icon should also be visible in the exported PDF file.

In my screenshot I show the Bookstack page and the exported PDF file of the page. Then you can see that the link icon was not exported.

Steps to Reproduce

  1. Select book or page
  2. Click on Export button on the right side
  3. Click on PDF File

Expected Behaviour

Normally the link icon should also be visible in the exported PDF file.

Screenshots or Additional Context

pdf-export

Browser Details

No response

Exact BookStack Version

v24.05.3

ssddanbrown commented 2 months ago

Hi @conserve-cgn, I'm assuming this icon is defined via a customization since this is not something that's built into BookStack at all. Capabilities of the PDF renderer are more limited, so not everything possible via CSS will show.

You could instead override the customization for export to not show anything, or show some kind of HTML glyph instead. If you want an example of that, provide a sample of the customization you have active and I'll look to provide relevant export specific CSS.