我尝试在Python中获取XPS的不同属性
我尝试使用PyMuPDF Libs,它声称它支持XPS并帮助获取XPS相关的对象,当我厌倦使用它时,我看到错误如下
doc = fitz.open(r"ab09.xps")
Traceback (most recent call last):
File "<pyshell#7>", line 1, in <module>
doc = fitz.open(r"ab09.xps")
File "C:\Users\AppData\Local\Programs\Python\Python36\lib\site-packages\fitz\fitz.py", line 1823, in __init__
this = _fitz.new_Document(filename, stream, filetype, rect, width, height, fontsize)
RuntimeError: cannot open ab09.xps: Invalid argument
我需要阅读XPS的不同属性,比如页面计数,XPS的一些元素
如果我用错了库,请告诉我。如果你对其他的LIB有什么想法的话
或者如果我在代码中做错了什么让我知道
目前没有回答
相关问题 更多 >
编程相关推荐