can we get pdf of html using javascript code example Example: html js display pdf file <embed src="file_name.pdf" width="800px" height="2100px" />