This commit is contained in:
CanbiZ
2025-04-30 10:30:21 +02:00
parent b9e5bbf00f
commit 1ffb95ca59
3 changed files with 778 additions and 731 deletions

View File

@@ -52,15 +52,17 @@ $STD apt-get install -y \
zlib1g \
tesseract-ocr \
tesseract-ocr-eng
cd /tmp
curl -fsSL "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10051/ghostpdl-10.05.1.tar.gz" -o "ghostscript.tar.gz"
tar -xzf ghostscript.tar.gz
cd ghostpdl-10.05.1
$STD ./configure
$STD make
$STD make install
# cd /tmp
# curl -fsSL "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10051/ghostpdl-10.05.1.tar.gz" -o "ghostscript.tar.gz"
# tar -xzf ghostscript.tar.gz
# cd ghostpdl-10.05.1
# $STD ./configure
# $STD make
# $STD make install
msg_ok "Installed OCR Dependencies"
setup_gs
msg_info "Installing JBIG2"
$STD git clone https://github.com/ie13/jbig2enc /opt/jbig2enc
cd /opt/jbig2enc