Returns the bytes that back the image object - either the
uncompressed pixel buffer (decoded = TRUE) or the raw embedded
stream as it sits in the PDF (decoded = FALSE). The raw form is
useful when you want to write the original JPEG / JBIG2 / JPEG2000
/ Flate-deflated bitmap to disk without re-encoding; pair it with
pdf_image_filters() to know which decoders the PDF specifies.
Value
A raw vector. Length is whatever PDFium reports - the
filter-applied size for decoded = TRUE, the stored byte
count for decoded = FALSE.