# PDFium

From a PDF page to a bitmap in sable.

[[sable]] uses PDFium to open a document, get page sizes and labels, and rasterize pages. When a page comes into view, the viewer checks its bitmap caches before asking PDFium to render it. The engine work runs separately from the window’s UI thread.

The bitmap comes back in its original colours. That’s the bitmap [[direct2d|Direct2D]] uses when drawing the page on screen.
