I am trying to read and process contents from a .pdf file.The target with this process is not to use any extraneous libraries that are not attached with the raw PHP bootstrap installation.I have tried to use file_get_contents to store the read content into a string variable.The problem is on echo-ing this content,it is all gibberish.
This,I can say,was expected since the character encoding is different from browser supported formats.I tried to use PHP's iconv function to convert the encoding from ASCII to utf-8,CP1252 to utf-8 and vice versa but none spawned readable output.
So the question is,what is the character encoding associated with .pdf files and how does one convert read content from such files to browser supported character encoding.Thanks.