自助打印-技术文档

计划任务

php think printer:printer_money  
php think printer:printer_pay 

智能证件照接口

http://dev.id-photo-verify.com/doc.html

配置参数

# 制作并检测证件照	
printer_ai_key = 
# 制作并裁剪换正装
printer_ai_change_dress =  

文档转PDF

https://market.aliyun.com/products/56928005/cmapi00044564.html

身份证去除背景

可在后台配置

https://www.textin.com

pip3 install --upgrade pip
yum install -y rh-python38 which
pip3 install backgroundremover 

配置命令行

backgroundremover = /opt/rh/rh-python38/root/usr/local/bin/backgroundremover

默认为 /opt/rh/rh-python38/root/usr/local/bin/backgroundremover

试卷翻新

https://www.textin.com/experience/text_auto_removal

解压zip、7z、gz、tar、bz2包

yum -y install p7zip unar unzip

PDF 依赖

yum install ImageMagick ImageMagick-devel ghostscript pdftk  poppler-utils  perl-Image-ExifTool.noarch 

安装 libreoffice

doc xls ppt转pdf

yum install libreoffice  

GX

yum install python3
如果提示requests模块不存在
pip install --upgrade pip
pip install requests
如果提示secrets模块不存在
pip install python-secrets -i https://pypi.tuna.tsinghua.edu.cn/simple
如果上面的secrets不能安装可尝试
pip install virtualenv
virtualenv myenv
source myenv/bin/activate 
后再执行 
如果报urllib3错误,说明 urllib3与chardet版本不一致,使用以下方式解决
pip uninstall urllib3 chardet 
pip install --upgrade requests