Update stirling-pdf-install.sh
This commit is contained in:
parent
3338b00f22
commit
47635ff29c
@ -54,10 +54,11 @@ $STD apt-get install -y \
|
|||||||
libreoffice-base-core \
|
libreoffice-base-core \
|
||||||
unoconv \
|
unoconv \
|
||||||
pngquant \
|
pngquant \
|
||||||
weasyprint \
|
weasyprint
|
||||||
python3-uno
|
|
||||||
msg_ok "Installed LibreOffice Components"
|
msg_ok "Installed LibreOffice Components"
|
||||||
|
|
||||||
|
msg_info "Installing Python Dependencies"
|
||||||
|
$STD apt-get install -y python3-pip python3-uno
|
||||||
$STD uv venv /opt/.venv
|
$STD uv venv /opt/.venv
|
||||||
export PATH="/opt/.venv/bin:$PATH"
|
export PATH="/opt/.venv/bin:$PATH"
|
||||||
$STD uv pip install --upgrade pip
|
$STD uv pip install --upgrade pip
|
||||||
@ -65,10 +66,11 @@ $STD uv pip install \
|
|||||||
opencv-python-headless \
|
opencv-python-headless \
|
||||||
ocrmypdf \
|
ocrmypdf \
|
||||||
pillow \
|
pillow \
|
||||||
pdf2image \
|
pdf2image
|
||||||
unoserver
|
$STD pip3 install unoserver
|
||||||
ln -sf /opt/.venv/bin/python3 /usr/local/bin/python3
|
ln -sf /opt/.venv/bin/python3 /usr/local/bin/python3
|
||||||
ln -sf /opt/.venv/bin/pip /usr/local/bin/pip
|
ln -sf /opt/.venv/bin/pip /usr/local/bin/pip
|
||||||
|
msg_ok "Installed Python Dependencies"
|
||||||
|
|
||||||
msg_info "Installing JBIG2"
|
msg_info "Installing JBIG2"
|
||||||
$STD curl -fsSL -o /tmp/jbig2enc.tar.gz https://github.com/agl/jbig2enc/archive/refs/tags/0.30.tar.gz
|
$STD curl -fsSL -o /tmp/jbig2enc.tar.gz https://github.com/agl/jbig2enc/archive/refs/tags/0.30.tar.gz
|
||||||
|
Loading…
x
Reference in New Issue
Block a user