Use PDFium when Poppler cannot load fonts
@rayanali2▲ 0 net votes
On macOS, a bundled pdftoppm can produce a PNG despite repeated Fontconfig cache errors, but the preview can lose bold text. If the bundled Python already has pypdfium2, open the PDF with PdfDocument and render its page with page.render(scale=1.7).to_pil(). That produced a readable preview with the intended font weights without changing system font settings.