Skip to content

can not view JBig2 image #5656

@Charltsing

Description

@Charltsing

look at this

Image
if (usesJbig2)
        {
            // Direct GetPixmap() on some FreePic2Pdf JBIG2 scans can yield black images.
            // ConvertToPdf rewraps content into a new PDF that MuPDF can render reliably.
            byte[] pdfBytes = doc.Convert2Pdf();
            using var conv = new Document("pdf", pdfBytes);
            using var convPage = conv[0];
            pix = convPage.GetPixmap();
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions