[Feedback on issues] 【打印管理器】打印的发票显示不正常
Tofloor
poster avatar
我是昵称
deepin
2025-12-12 11:12
Author

系统环境

----------------------------
OS: Deepin 25 x86_64
Host: OptiPlex Tower Plus 7020
Kernel: Linux 6.12.43-amd64-desktop-rolling
Uptime: 3 days, 17 hours, 1 min
Packages: 3045 (dpkg), 22 (flatpak)
Shell: bash 5.2.21
Display (27B1): 1920x1080 @ 60 Hz in 27" [External]
DE: Deepin
WM: KWin (X11)
WM Theme: dark/deepin
Theme: deepin-dark [GTK2]
Icons: bloom [GTK2]
Cursor: bloom
Terminal: deepin-terminal 6.5.18
Terminal Font: JetBrainsMono Nerd Font (14pt)
CPU: Intel(R) Core(TM) i7-14700 (28) @ 5.40 GHz
GPU: Intel UHD Graphics 770 @ 1.10 GHz [Integrated]
Memory: 17.30 GiB / 31.03 GiB (56%)
Swap: 10.29 GiB / 16.00 GiB (64%)
Disk (/): 8.83 GiB / 23.27 GiB (38%) - ext4
Disk (/home): 492.26 GiB / 915.78 GiB (54%) - ext4
Disk (/persistent): 112.26 GiB / 190.19 GiB (59%) - ext4
Locale: zh_CN.UTF-8

[Version] 
SystemName=Deepin
SystemName[zh_CN]=深度操作系统
ProductType=Desktop
ProductType[zh_CN]=桌面
EditionName=Community
EditionName[en_US]=Community
EditionName[zh_CN]=社区版
MajorVersion=25
MinorVersion=25.0.9
OsBuild=21138.105

dde-printer:
  已安装:1.0.51-1
  候选: 1.0.51-1
  版本列表:
 *** 1.0.51-1 500
        500 https://com-store-packages.uniontech.com/appstore-V25 crimson/appstore amd64 Packages
        100 /usr/lib/dpkg/var/status
     1.0.49-1 500
        500 https://community-packages.deepin.com/beige crimson/commercial amd64 Packages

打印机:

名称 : HP-LaserJet-Pro-M329
型号 : LaserJet Pro MFP M329dn
制造商 : HP
制造商和型号 : HP LaserJet Pro M329 Postscript (recommended)
接口类型 : socket
状态 : 3
URI : socket://ip:port
临时打印机 : false
任务优先级 : 50
保留打印任务直至 : no-hold
复印数量 : 1
当前可打印 : true
打印机已共享 : false
打印机状态修改时间 : 1765507822
打印机类型 : 10522836
支持的URI : ipp://localhost/printers/HP-LaserJet-Pro-M329
标记修改次数 : 0
此时取消打印任务 : 10800
编号 : 1
颜色模式 : monochrome

问题描述

打印的PDF不正常,PDF有两页,第一页正常,第二页是发票,发票的名称都乱了,不知道显示的是啥东西。如下图(圈红的):

截图_wxwork.exe_20251212110731.png

日志

rg '2025-12-12' ~/.cache/deepin/dde-printer/dde-printer.log
47:2025-12-12, 10:49:03.852 [Warning] [  ] QWidget::setLayout: Cannot set layout to 0
48:2025-12-12, 10:49:03.891 [Warning] [common.cpp           shellCmd                            329] shellCmd exit with err:  "err 1, string: not exist resouce:[org.deepin.lastore] for the appid:[org.deepin.lastore]\n"
49:2025-12-12, 10:49:05.312 [Info   ] [zdrivermanager.cpp   RefreshLocalPPDS::doWork            692] format ppd info
50:2025-12-12, 10:49:06.938 [Warning] [  ] QObject::moveToThread: Cannot move objects with a parent
51:2025-12-12, 10:49:07.595 [Info   ] [zdrivermanager.cpp   RefreshLocalPPDS::doWork            745] "Got ppds count: 16223"
52:2025-12-12, 10:49:07.711 [Info   ] [ztaskinterface.cpp   TaskInterface::run                  78] Task  Init ppds  finished  0
53:2025-12-12, 10:49:16.645 [Info   ] [ztaskinterface.cpp   TaskInterface::stop                 46] Stop task  Init ppds
54:2025-12-12, 10:49:16.646 [Info   ] [zdrivermanager.cpp   DriverManager::stop                 1345] Clear local driver dirct
55:2025-12-12, 11:01:43.950 [Warning] [  ] QWidget::setLayout: Cannot set layout to 0
56:2025-12-12, 11:01:43.986 [Warning] [common.cpp           shellCmd                            329] shellCmd exit with err:  "err 1, string: not exist resouce:[org.deepin.lastore] for the appid:[org.deepin.lastore]\n"
57:2025-12-12, 11:01:45.421 [Info   ] [zdrivermanager.cpp   RefreshLocalPPDS::doWork            692] format ppd info
58:2025-12-12, 11:01:46.143 [Info   ] [ztaskinterface.cpp   TaskInterface::stop                 46] Stop task  Init ppds
59:2025-12-12, 11:01:46.148 [Info   ] [zdrivermanager.cpp   DriverManager::stop                 1345] Clear local driver dirct
60:2025-12-12, 11:03:02.340 [Warning] [  ] QWidget::setLayout: Cannot set layout to 0
61:2025-12-12, 11:03:02.349 [Warning] [common.cpp           shellCmd                            329] shellCmd exit with err:  "err 1, string: not exist resouce:[org.deepin.lastore] for the appid:[org.deepin.lastore]\n"
62:2025-12-12, 11:03:03.735 [Info   ] [zdrivermanager.cpp   RefreshLocalPPDS::doWork            692] format ppd info
63:2025-12-12, 11:03:05.980 [Info   ] [zdrivermanager.cpp   RefreshLocalPPDS::doWork            745] "Got ppds count: 16223"
64:2025-12-12, 11:03:05.985 [Info   ] [ztaskinterface.cpp   TaskInterface::run                  78] Task  Init ppds  finished  0
65:2025-12-12, 11:03:08.363 [Warning] [  ] QObject::moveToThread: Cannot move objects with a parent
66:2025-12-12, 11:03:17.143 [Info   ] [ztaskinterface.cpp   TaskInterface::stop                 46] Stop task  Init ppds
67:2025-12-12, 11:03:17.143 [Info   ] [zdrivermanager.cpp   DriverManager::stop                 1345] Clear local driver dirct

rg '2025-12-12' ~/.cache/deepin/dde-printer-monitor/dde-printer-monitor.log 
13:2025-12-12, 10:45:54.246 [Warning] [zcupsmonitor.cpp     CupsMonitor::createSubscription     348] Got execpt:  "ipp error(1030, client-error-not-found)"
14:2025-12-12, 10:55:23.044 [Info   ] [zcupsmonitor.cpp     CupsMonitor::run                    185] Task cupsmonitor finished  0
15:2025-12-12, 11:06:45.319 [Info   ] [zcupsmonitor.cpp     CupsMonitor::run                    185] Task cupsmonitor finished  0
Reply Favorite View the author
All Replies
LiuYongzhang
deepin
2025-12-12 13:00
#1

缺少中文字体

安装星火应用商店, 然后搜索字体

或者直接在终端运行下面的命令

sudo apt update && sudo apt install spark-store && sudo aptss update && sudo aptss dist-upgrade -y && sudo aptss install symbol-fonts winfonts wps-office-fonts ms-core-fonts uos-recommend-fonts-part1 uos-recommend-fonts-part2 adobe-fonts-zh fonts-honor-sans-cn -y

Reply View the author
deepin-流云
Super Moderator
Community OP
2025-12-12 13:22
#2

研发说是pdf没有内嵌字体,然后系统又不支持这个字体,按一楼大佬的方法补齐字体应该就好了

Reply View the author
字甲达宾
deepin
2025-12-12 16:49
#3

政务系统生成的 PDF 电子发票,PDF 格式可能是早期的 1.1 或者 1.2 版本,没有嵌入字体。必须电脑里安装好对应的字体。

推测你的 PDF 电子发票,缺少 方正的相关字体,且字体很可能是 GB2312 字符编码,不是 GBK 编码。


解决思路:
先用 atril 或者 evince 这类 PDF 查看程序,打开 PDF, 查看字体属性,看是不是 方正的字体。
(说明 :linux 版本的 wpspdf, 可能没有查看 PDF 字体属性的功能!)

如果真的是缺少 方正字体,可以下载、安装一个 “方正书版” 的试用版软件,里面自带大量 方正字体。

founder-doceditor_1.0.1.194_amd64.deb

https://url48.ctfile.com/f/30646948-8523071093-35aea6?p=6859

(访问密码: 6859)

另外,如果方便,可以把 pdf 文件当附件传上来,或者 网盘也行,方便进一步确认原因。

Reply View the author
我是昵称
deepin
2025-12-12 19:12
#4
LiuYongzhang

缺少中文字体

安装星火应用商店, 然后搜索字体

或者直接在终端运行下面的命令

sudo apt update && sudo apt install spark-store && sudo aptss update && sudo aptss dist-upgrade -y && sudo aptss install symbol-fonts winfonts wps-office-fonts ms-core-fonts uos-recommend-fonts-part1 uos-recommend-fonts-part2 adobe-fonts-zh fonts-honor-sans-cn -y

安装后打印还是一样显示异常。

symbol-fonts:
  已安装:1.4+1
  候选: 1.4+1
  版本列表:
 *** 1.4+1 100
        100 /usr/lib/dpkg/var/status
winfonts:
  已安装:1.4
  候选: 1.4
  版本列表:
 *** 1.4 100
        100 /usr/lib/dpkg/var/status
wps-office-fonts:
  已安装:1.1
  候选: 1.1
  版本列表:
 *** 1.1 100
        100 /usr/lib/dpkg/var/status
ms-core-fonts:
  已安装:1.0-2
  候选: 1.0-2
  版本列表:
 *** 1.0-2 100
        100 /usr/lib/dpkg/var/status
uos-recommend-fonts-part1:
  已安装:1.0
  候选: 1.0
  版本列表:
 *** 1.0 100
        100 /usr/lib/dpkg/var/status
uos-recommend-fonts-part2:
  已安装:1.0
  候选: 1.0
  版本列表:
 *** 1.0 100
        100 /usr/lib/dpkg/var/status
adobe-fonts-zh:
  已安装:2.002
  候选: 2.002
  版本列表:
 *** 2.002 100
        100 /usr/lib/dpkg/var/status
fonts-honor-sans-cn:
  已安装:1.02-3
  候选: 1.02-3
  版本列表:
 *** 1.02-3 100
        100 /usr/lib/dpkg/var/status
Reply View the author
LiuYongzhang
deepin
2025-12-12 21:42
#5
我是昵称

安装后打印还是一样显示异常。

symbol-fonts:
  已安装:1.4+1
  候选: 1.4+1
  版本列表:
 *** 1.4+1 100
        100 /usr/lib/dpkg/var/status
winfonts:
  已安装:1.4
  候选: 1.4
  版本列表:
 *** 1.4 100
        100 /usr/lib/dpkg/var/status
wps-office-fonts:
  已安装:1.1
  候选: 1.1
  版本列表:
 *** 1.1 100
        100 /usr/lib/dpkg/var/status
ms-core-fonts:
  已安装:1.0-2
  候选: 1.0-2
  版本列表:
 *** 1.0-2 100
        100 /usr/lib/dpkg/var/status
uos-recommend-fonts-part1:
  已安装:1.0
  候选: 1.0
  版本列表:
 *** 1.0 100
        100 /usr/lib/dpkg/var/status
uos-recommend-fonts-part2:
  已安装:1.0
  候选: 1.0
  版本列表:
 *** 1.0 100
        100 /usr/lib/dpkg/var/status
adobe-fonts-zh:
  已安装:2.002
  候选: 2.002
  版本列表:
 *** 2.002 100
        100 /usr/lib/dpkg/var/status
fonts-honor-sans-cn:
  已安装:1.02-3
  候选: 1.02-3
  版本列表:
 *** 1.02-3 100
        100 /usr/lib/dpkg/var/status

安装后可以把字体复制出来再把软件卸载。

字体位置/opt/DocEditor/DocEditorFont

然后重新添加复制的字体

https://archive2.kylinos.cn/DEB/KYLIN_DEB/pool/all/founder-doceditor_1.0.1.194_amd64.deb

Reply View the author