Browse Source

Merge branch 'master' of http://git.fmode.cn:3000/bin/edu-textbook

warrior 2 months ago
parent
commit
66609bffb6
1 changed files with 34 additions and 1 deletions
  1. 34 1
      docker-office/README.md

+ 34 - 1
docker-office/README.md

@@ -61,4 +61,37 @@ sudo docker run --rm -p 3000:3000 gotenberg/gotenberg
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
         proxy_set_header X-Forwarded-Proto $scheme;
     }
-```
+```
+
+# 依赖安装
+cp -rf fonts/* /usr/share/fonts/
+fc-cache -f -v
+sudo apt install ghostscript
+sudo apt install 
+
+sudo apt-get install libjpeg-dev libpng-dev libtiff-dev libgif-dev libopenjp2-7-dev libwebp-dev
+
+
+
+# 安装python2.7
+
+wget https://mirrors.huaweicloud.com/python/2.7.18/Python-2.7.18.tar.xz
+tar -xf Python-2.7.18.tar.xz
+
+cd Python-2.7.18
+./configure --with-pydebug
+make -s -j16
+
+## /etc/profile
+
+export PATH=$PATH:/home/user/python/Python-2.7.18/
+
+ln -s /root/lib/Python-2.7.18/python /usr/bin/
+
+## test
+scp final.pdf root@server.fmode.cn:/var/www/miner-manager/
+
+
+# FAQ:合成pdf图片丢失问题
+- 1.删除所有目录书签链接
+- 2.导出:关闭超链接选项导出