pub fn decode_text_with_encoding( bytes: &[u8], encoding: EncodingType, ) -> Result<String, PdfError>
Convenience function to decode bytes with specific encoding