codelinered/pdf-image

将上传的图片转换为PDF,合并2个PDF文件为1个或将PDF转换为图片

2.0.0 2024-10-03 16:26 UTC

This package is auto-updated.

Last update: 2024-10-03 16:32:29 UTC


README

查看截图

演示页面

目录

包含

安装主构建

必需

  • PHP ^8.2
  • PHP GD 扩展

可选

  • Node.js >=18.0
  • npm npm i npm@latest -g
  • PHP Imagick 扩展
  • PHP ZIP 扩展

在您的操作系统上打开控制台并导航到您的项目文件夹。选择以下版本之一。

使用Composer

php composer create-project codelinered/pdf-image && cd pdf-image

使用GIT

git clone https://github.com/CodelineRed/pdf-image.git && cd pdf-image && git checkout main

使用ZIP

Unix

wget -O pi-main.zip https://github.com/CodelineRed/pdf-image/archive/main.zip && unzip pi-main.zip && cd pdf-image-main

Windows 10+

curl -L -o pi-main.zip https://github.com/CodelineRed/pdf-image/archive/main.zip && tar -xf pi-main.zip && cd pdf-image-main

使用Docker安装(可选)

必需

在您的操作系统上打开控制台并导航到您想安装项目的位置。

Unix

  • 启动Docker systemctl docker start
  • 复制并运行以下命令
docker run --rm --interactive --tty --volume $PWD:/app composer create-project --ignore-platform-reqs codelinered/pdf-image && cd pdf-image && docker-compose build && docker-compose up -d && xdg-open https://:7708

Windows 10+

  • 启动Docker Desktop "C:\Program Files\Docker\Docker Desktop.exe"
  • 复制并运行以下命令
docker run --rm --interactive --tty --volume %cd%:/app composer create-project --ignore-platform-reqs codelinered/pdf-image && cd pdf-image && docker-compose build && docker-compose up -d && start https://:7708

打开localhost:7708进行网站。