Skip to content

page.insert_htmlbox() lose HTML label #4072

@xiaolibuzai-ovo

Description

@xiaolibuzai-ovo

Description of the bug

bbox=[205.40769958496094,
            192.42880249023438,
            250.40769958496094,
            201.42880249023438]
res = page.get_textbox(bbox) 
print(res)   // <template>
WHITE = pymupdf.pdfcolor["white"]
page.draw_rect(bbox, color=None, fill=WHITE)
page.insert_htmlbox(
    bbox, res, css=""
)

Called a insert_htmlbox but didn't write anything back

raw:
image

result:
image

I am not sure if this is a bug, I hope to get your answer, thanks!

How to reproduce the bug

Vide supra

PyMuPDF version

1.24.14

Operating system

MacOS

Python version

3.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions