javascript function to get pdf file content code example Example: html js display pdf file <embed src="file_name.pdf" width="800px" height="2100px" />