Skip to content

Content rendered via HTML doesn't print on some printers #3240

@ZachSARAO

Description

@ZachSARAO

Description of the bug

When printing a PDF rendered via PyMuPDF, I have found that physical printouts omit text in some cases:

insert_htmlbox(
    some_rectangle,
    f'<div style="font-family: Helvetica; font-weight: bold; text-align: center; font-size: 8px; line-height: {height}px; color: #587BBD;"><b>{title}</b></div>',
)

I can see that content on PDF on screen, and printing out on my printer that text is visible. However, a different printer omitted this content.

Please let me know if I'm misusing the library in any way / or in general what could cause this?

How to reproduce the bug

A PDF produced via PyMuPDF prints correctly on some printers, but not on others.

PyMuPDF version

1.23.9

Operating system

Linux

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