Convert a pdfium_bitmap to a 3D RGBA array of doubles in 0..1
Source:R/render.R
as.array.pdfium_bitmap.RdMatches 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_bitmapfrompdf_render_page().- ...
Ignored.