Embedding a .pdf file in WP

WP has a native way of adding media to a blog post. Use the ‘add media’ tool in the relevant post inside your ‘posts’ section in your wp-admin panel:


However, if you want to display a pdf, you need some code, and it’s not clear that WP will allow it. I have the code (it’s an <object> tag). Anyone know how to get it onto the page?