pdfium-syntax-rendering
Installation
SKILL.md
pdfium-syntax-rendering
What this skill covers
Rendering turns a PdfPage into a raster image. The pipeline is fixed:
PdfPage
-> render_with_config(&PdfRenderConfig) (or render(width, height, rotation))
-> PdfBitmap
-> as_image() -> image::DynamicImage
as_rgba_bytes() -> Vec<u8> (RGBA, normalized)
as_raw_bytes() -> Vec<u8> (native PDFium byte order)