Seems like an encoding issue. Unfortunately, you provided a very small amount of information. Are you implementing Smalot PdfParser in a plain PHP project, or are you using a framework? If you are using one, did you define UTF-8 for the whole project?
The malformation of your output may happen in many parts of the process.
- Check the encoding of the PDF document itself: UTF-8, ISO-8859-1?
- Smalot PdfParser does not seem to have a parameter to specify the encoding.
Try to know more about the parsing of the pdf. (OCR method or dump plaintext)
- Check your PHP print. (For exemple try to store in a var the text you want to print (BanegÄrd) and use var_dump(). Check if it's well formated.