Skip to contents

Matches the format that png::writePNG() and pdftools::pdf_render_page() both produce: a numeric array with dimensions c(height, width, 4) and values in the closed interval 0 to 1.

Usage

# S3 method for class 'pdfium_bitmap'
as.array(x, ...)

Arguments

x

A pdfium_bitmap from pdf_render_page().

...

Ignored.

Value

A numeric array, dim c(height, width, 4), channels ordered red, green, blue, alpha.