Skip to content

Error occurs #340

@jiananlan

Description

@jiananlan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions