pub fn utf16be_to_string(data: &[u8]) -> pdf::error::Result<String> {
    utf16be_to_char(data)
        .map(|r| r.map_err(|_| PdfError::Utf16Decode))
        .collect()
}
/// converts UTF16-BE to a string errors out in illegal/unknonw characters
converts UTF16-BE to a string errors out in illegal/unknonw characters
converts UTF16 - BE to a string errors out in illegal / unknonw characters
pub fn utf16be_to_string(data: &[u8]) -> pdf::error::Result<String> {
    utf16be_to_char(data)
        .map(|r| r.map_err(|_| PdfError::Utf16Decode))
        .collect()
}
pub fn utf16be_to_string ( data : & [ u8 ] ) -> pdf :: error :: Result < String > { utf16be_to_char ( data ) . map ( | r | r . map_err ( | _ | PdfError :: Utf16Decode ) ) . collect ( ) }
converts UTF16-BE to a string errors out in illegal/unknonw characters
converts UTF16 - BE to a string errors out in illegal / unknonw characters
data
&[u8]
data
&[u8]