pub fn as_bytes(&mut self) -> &'a [u8] {
        self.render();

        let buffer_length = self.bindings.FPDFBitmap_GetStride(self.handle)
            * self.bindings.FPDFBitmap_GetHeight(self.handle);

        let buffer_start = self.bindings.FPDFBitmap_GetBuffer(self.handle);

        unsafe { std::slice::from_raw_parts(buffer_start as *const u8, buffer_length as usize) }
    }
/// Returns an immutable reference to the bitmap buffer backing this PdfBitmap,
/// rendering the referenced page if necessary.
Returns an immutable reference to the bitmap buffer backing this PdfBitmap,
rendering the referenced page if necessary.
Returns an immutable reference to the bitmap buffer backing this PdfBitmap rendering the referenced page if necessary .
pub fn as_bytes(&mut self) -> &'a [u8] {
        self.render();
        let buffer_length = self.bindings.FPDFBitmap_GetStride(self.handle)
            * self.bindings.FPDFBitmap_GetHeight(self.handle);
        let buffer_start = self.bindings.FPDFBitmap_GetBuffer(self.handle);
        unsafe { std::slice::from_raw_parts(buffer_start as *const u8, buffer_length as usize) }
    }
pub fn as_bytes ( & mut self ) -> & ' a [ u8 ] { self . render ( ) ; let buffer_length = self . bindings . FPDFBitmap_GetStride ( self . handle ) * self . bindings . FPDFBitmap_GetHeight ( self . handle ) ; let buffer_start = self . bindings . FPDFBitmap_GetBuffer ( self . handle ) ; unsafe { std :: slice :: from_raw_parts ( buffer_start as * const u8 , buffer_length as usize ) } }
Returns an immutable reference to the bitmap buffer backing this PdfBitmap,
rendering the referenced page if necessary.
Returns an immutable reference to the bitmap buffer backing this PdfBitmap rendering the referenced page if necessary .
&mut self
&mut self