pdf2docx icon indicating copy to clipboard operation
pdf2docx copied to clipboard

Error occurs

Open jiananlan opened this issue 8 months ago • 9 comments

Description of the bug

[INFO] Start to convert C:\Users......pdf [INFO] [1/4] Opening document... [INFO] [2/4] Analyzing document... [ERROR] code=4: pixmap must be grayscale or rgb to write as png It's a issue of Pymupdf?

How to reproduce the bug

Code

from pdf2docx import parse

def run(pdf_file,docx_file):
    parse(pdf_file, docx_file, start=0, end=None)

pdf2docx version

latest

Operating system

windows 11

Python version

3.12

jiananlan avatar Apr 01 '25 15:04 jiananlan