`pdfocr_tobytes` 将四字节的行填充显示为黑色像素给 Tesseract
作者: sumit-agarwl创建于 2026年8月1日更新于 2026年9月28日
/* Always round the width of ocrbitmap up to a multiple of 4. */ writer->ocrbitmap = fz_new_pixmap(ctx, NULL, (w+3)&~3, h, NULL, 0);
内容来源: pymupdf/PyMuPDF
/* Always round the width of ocrbitmap up to a multiple of 4. */ writer->ocrbitmap = fz_new_pixmap(ctx, NULL, (w+3)&~3, h, NULL, 0);
内容来源: pymupdf/PyMuPDF