kevin2li / PDF-Guru

A Multi-purpose PDF file processing tool with a nice UI that supports merge, split, rotate, reorder, delete, scale, crop, watermark, encrypt/decrypt, bookmark, extract, compress, etc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

图片转换为pdf报错

AndreaElijha opened this issue · comments

使用从飞书下载的二进制版本报错“连接服务器超时”
4b87f1f23421aa61002a58dbbce9ef7c

自己编译的版本python报错
屏幕截图 2024-01-12 211421

内容如下:
: Traceback (most recent call last): File "convert.py", line 158, in convert_svg2pdf new_path_list = sorted(new_path_list, key=lambda x: int(re.search(r"\d+$", Path(x).stem).group())) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "convert.py", line 158, in new_path_list = sorted(new_path_list, key=lambda x: int(re.search(r"\d+$", Path(x).stem).group())) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'group'

编译环境:
Python 3.12.0 in conda
Windows11
go version go1.21.6 windows/amd64
npm version 10.2.4

软件免查杀做了吗?软件重装一下,把安装目录添加到杀毒软件信任区

软件免查杀做了吗?软件重装一下,把安装目录添加到杀毒软件信任区

免杀做了,mac和Windows上报同样的错。

其他功能报错吗

其他功能报错吗

更新了软件版本到1.1.13,之前使用的版本是1.1.10

1.1.13版本其他功能正常使用,但图片转换为pdf功能依然报错,报错内容与自己编译版本相同
\AppData\Local\Temp_MEI55162\guru_server\pdf_toolbox\convert.py", line 114, in AttributeError: 'NoneType' object has no attribute 'group'

1.1.10版本其他功能在win和mac平台均报错,找不到服务器

我是最先在linux上找一个pdf编辑工具,当时的版本是1.1.10,自己编译了在Linux上使用,图片转换pdf和其他功能均正常

你转换参数截图看看

如果你排序方式是编号的话 文件名要用数字结尾,类似xx001.png