Stirling-Tools / Stirling-PDF

#1 Locally hosted web application that allows you to perform various operations on PDF files
https://stirlingpdf.com
MIT License
44.09k stars 3.6k forks source link

[Bug]: When converting word to pdf, the lines in the table are missing. The left is the Word file and the right is the converted pdf. #1659

Closed duronxx closed 2 months ago

duronxx commented 2 months ago

The Problem

image After testing the API and manual conversion on the web, the situation is the same, and the table is missing.

Version of Stirling-PDF

frooodle/s-pdf:latest-fat

Last Working Version of Stirling-PDF

No response

Page Where the Problem Occurred

No response

Docker Configuration

version: '3.3'  # 定义docker-compose文件的版本

services:  # 定义服务
  stirling-pdf:
    container_name: Stirling-PDF-Security-Fat  # 容器名称
    image: frooodle/s-pdf:latest-fat  # 使用的Docker镜像
    deploy:
      resources:
        limits:
          memory: 4G  # 限制内存使用为4G
    healthcheck:  # 健康检查配置
      test: ["CMD-SHELL", "curl -f http://localhost:9080/api/v1/info/status | grep -q 'UP' && curl -fL http://localhost:9080/ | grep -q 'Please sign in'"]  # 健康检查命令
      interval: 5s  # 健康检查间隔时间
      timeout: 10s  # 健康检查超时时间
      retries: 16  # 健康检查重试次数
    ports:
      - 19080:8080  # 端口映射,将主机的9080端口映射到容器的8080端口
    volumes:
      - ./trainingData:/usr/share/tessdata:rw  # 目录映射,挂载本地trainingData目录到容器内的/usr/share/tessdata目录,读写权限
      - ./customFiles:/customFiles:rw  # 目录映射,挂载本地customFiles目录到容器内的/customFiles目录,读写权限
      - ./logs:/logs:rw  # 目录映射,挂载本地logs目录到容器内的/logs目录,读写权限
      - ./configs:/configs:rw  # 目录映射,挂载本地configs目录到容器内的/configs目录,读写权限
    environment:  # 环境变量配置
      DOCKER_ENABLE_SECURITY: "true"  # 启用安全性
      SECURITY_ENABLELOGIN: "true"  # 启用登录
      PUID: 1002  # 用户ID
      PGID: 1002  # 组ID
      UMASK: "022"  # 默认文件权限掩码
      SYSTEM_DEFAULTLOCALE: en-US  # 系统默认区域设置
      UI_APPNAME: Stirling-PDF  # UI应用名称
      UI_HOMEDESCRIPTION: Demo site for Stirling-PDF Latest-fat with Security  # UI主页描述
      UI_APPNAMENAVBAR: Stirling-PDF Latest-fat  # UI导航栏应用名称
      SYSTEM_MAXFILESIZE: "100"  # 系统最大文件大小
      METRICS_ENABLED: "true"  # 启用指标
      SYSTEM_GOOGLEVISIBILITY: "true"  # 启用谷歌可见性
    restart: on-failure:5  # 当容器因故障停止时重新启动容器,最多重启5次

Relevant Log Output

2024-08-10 08:23:44,205 INFO s.s.S.u.ProcessExecutor [Thread-67] LibreOffice listener successfully started. (pid=25410)
2024-08-10 08:23:44,205 INFO s.s.S.u.ProcessExecutor [Thread-67] Selected output format: Portable Document Format [.pdf]
2024-08-10 08:23:44,205 INFO s.s.S.u.ProcessExecutor [Thread-67] Selected office filter: writer_pdf_Export
2024-08-10 08:23:44,205 INFO s.s.S.u.ProcessExecutor [Thread-67] Used doctype: document
2024-08-10 08:23:44,205 INFO s.s.S.u.ProcessExecutor [Thread-67] Output file: file:///tmp/output_9609672624334639793.pdf
2024-08-10 08:56:02,414 INFO s.s.S.u.ProcessExecutor [qtp1560844138-117] Running command: unoconv -vvv -f pdf -o /tmp/output_17454435739530171711.pdf /tmp/input_16047414321590239643.docx
2024-08-10 08:56:02,718 INFO s.s.S.u.ProcessExecutor [Thread-80] Verbosity set to level 3
2024-08-10 08:56:02,719 INFO s.s.S.u.ProcessExecutor [Thread-80] DEBUG: Connection type: socket,host=127.0.0.1,port=2002,tcpNoDelay=1;urp;StarOffice.ComponentContext
2024-08-10 08:56:02,720 INFO s.s.S.u.ProcessExecutor [Thread-80] DEBUG: Existing listener not found.
2024-08-10 08:56:02,721 INFO s.s.S.u.ProcessExecutor [Thread-80] DEBUG: Launching our own listener using /usr/lib/libreoffice/program/soffice.bin.
2024-08-10 08:56:02,825 INFO s.s.S.u.ProcessExecutor [Thread-80] /usr/bin/unoconv:860: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
2024-08-10 08:56:02,825 INFO s.s.S.u.ProcessExecutor [Thread-80]   if product.ooName not in ('LibreOffice', 'LOdev') or LooseVersion(product.ooSetupVersion) <= LooseVersion('3.3'):
2024-08-10 08:56:04,347 INFO s.s.S.u.ProcessExecutor [Thread-80] Input file: /tmp/input_16047414321590239643.docx
2024-08-10 08:56:05,378 INFO s.s.S.u.ProcessExecutor [Thread-80] DEBUG: Terminating LibreOffice instance.
2024-08-10 08:56:05,379 INFO s.s.S.u.ProcessExecutor [Thread-80] DEBUG: Waiting for LibreOffice instance to exit.
2024-08-10 08:56:05,522 INFO s.s.S.u.ProcessExecutor [Thread-81] Using office base path: /usr/lib/libreoffice
2024-08-10 08:56:05,522 INFO s.s.S.u.ProcessExecutor [Thread-81] Using office binary path: /usr/lib/libreoffice/program
2024-08-10 08:56:05,522 INFO s.s.S.u.ProcessExecutor [Thread-81] LibreOffice listener arguments are ['/usr/lib/libreoffice/program/soffice.bin', '--headless', '--invisible', '--nocrashreport', '--nodefault', '--nofirststartwizard', '--nologo', '--norestore', '--accept=socket,host=127.0.0.1,port=2002,tcpNoDelay=1;urp;StarOffice.ComponentContext'].
2024-08-10 08:56:05,522 INFO s.s.S.u.ProcessExecutor [Thread-81] LibreOffice listener successfully started. (pid=28568)
2024-08-10 08:56:05,522 INFO s.s.S.u.ProcessExecutor [Thread-81] Selected output format: Portable Document Format [.pdf]
2024-08-10 08:56:05,523 INFO s.s.S.u.ProcessExecutor [Thread-81] Selected office filter: writer_pdf_Export
2024-08-10 08:56:05,523 INFO s.s.S.u.ProcessExecutor [Thread-81] Used doctype: document
2024-08-10 08:56:05,523 INFO s.s.S.u.ProcessExecutor [Thread-81] Output file: file:///tmp/output_17454435739530171711.pdf

Additional Information

No response

Browsers Affected

Chrome, Microsoft Edge

No Duplicate of the Issue

Frooodle commented 2 months ago

conversions are currently done with libreoffice and outside of our control