Select if images in PDF export should be linked #2047

Open
opened 2026-02-05 02:43:29 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @Rumcajsev on GitHub (Jan 18, 2021).

Describe the feature you'd like
Currently when exportin page as pdf, images from that page are linked to their ogirinal url inside the pdf (ie. if I click on the image, it gets opened in the browser, with URL leading to my bookstack instance.
This can be problematic if I want to share the pdf with people outside of my organisation.

Ideally when exporting I would be able to select if I want these images to be linked, or only displayed.

Describe the benefits this feature would bring to BookStack users
This would allow for better sharing of files for people outside of my organisation.

Originally created by @Rumcajsev on GitHub (Jan 18, 2021). **Describe the feature you'd like** Currently when exportin page as pdf, images from that page are linked to their ogirinal url inside the pdf (ie. if I click on the image, it gets opened in the browser, with URL leading to my bookstack instance. This can be problematic if I want to share the pdf with people outside of my organisation. Ideally when exporting I would be able to select if I want these images to be linked, or only displayed. **Describe the benefits this feature would bring to BookStack users** This would allow for better sharing of files for people outside of my organisation.
OVERLORD added the 🔨 Feature Request🚚 Export System labels 2026-02-05 02:43:29 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Feb 5, 2021):

Not sure if I'd like an added option, but thinking this should maybe be the default behavior. The "thumbnails" already used as the main image content is approx double content width, so should be suitable for the vast number of cases.

@ssddanbrown commented on GitHub (Feb 5, 2021): Not sure if I'd like an added option, but thinking this should maybe be the default behavior. The "thumbnails" already used as the main image content is approx double content width, so should be suitable for the vast number of cases.
Author
Owner

@kay54068 commented on GitHub (Oct 12, 2021):

I got the same issue, but i use wkhtmltopdf 0.12.6 (with patched qt) version is not linked image issuue.

there are some DockeFile snippet

ARG  jpeg=libjpeg-dev
ARG  ssl=libssl-dev
ENV  CFLAGS=-w CXXFLAGS=-w

RUN apt-get update && apt-get install -y -q --no-install-recommends \
    build-essential \
    libfontconfig1-dev \
    libfreetype6-dev \
    $jpeg \
    libpng-dev \
    $ssl \
    libx11-dev \
    libxext-dev \
    libxrender-dev \
    python \
    zlib1g-dev \
    xfonts-75dpi \
    xfonts-base \
    && rm -rf /var/lib/apt/lists/*
RUN wget http://archive.ubuntu.com/ubuntu/pool/main/libj/libjpeg-turbo/libjpeg-turbo8_2.0.6-0ubuntu2_amd64.deb
RUN dpkg -i libjpeg-turbo8_2.0.6-0ubuntu2_amd64.deb
RUN wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.bionic_amd64.deb
RUN dpkg -i wkhtmltox_0.12.6-1.bionic_amd64.deb
RUN 
@kay54068 commented on GitHub (Oct 12, 2021): I got the same issue, but i use wkhtmltopdf 0.12.6 (with patched qt) version is not linked image issuue. there are some DockeFile snippet ```docker ARG jpeg=libjpeg-dev ARG ssl=libssl-dev ENV CFLAGS=-w CXXFLAGS=-w RUN apt-get update && apt-get install -y -q --no-install-recommends \ build-essential \ libfontconfig1-dev \ libfreetype6-dev \ $jpeg \ libpng-dev \ $ssl \ libx11-dev \ libxext-dev \ libxrender-dev \ python \ zlib1g-dev \ xfonts-75dpi \ xfonts-base \ && rm -rf /var/lib/apt/lists/* RUN wget http://archive.ubuntu.com/ubuntu/pool/main/libj/libjpeg-turbo/libjpeg-turbo8_2.0.6-0ubuntu2_amd64.deb RUN dpkg -i libjpeg-turbo8_2.0.6-0ubuntu2_amd64.deb RUN wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.bionic_amd64.deb RUN dpkg -i wkhtmltox_0.12.6-1.bionic_amd64.deb RUN ```
Author
Owner

@Bouni commented on GitHub (May 24, 2023):

I have the exact same issue and want to get rid of the links on the images. Is there some kind of template where I can tweak the behavior?
I already modified the PDF export with a custom layout in export-body-start.blade.php but every trick that I tried to get rid of the a tag using CSS failed so far ...

@Bouni commented on GitHub (May 24, 2023): I have the exact same issue and want to get rid of the links on the images. Is there some kind of template where I can tweak the behavior? I already modified the PDF export with a custom layout in `export-body-start.blade.php` but every trick that I tried to get rid of the `a` tag using CSS failed so far ...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2047