Web page doesn’t show embedded PDF but as link to pdf and download link. How can I do embedded PDF on web page.
Inside of Admin Panel > Pages works and it show this code:
<object class=”wp-block-file__preview” data=”http://www.xxx.com/saf/PRINT.pdf” type=”application/pdf” aria-label=”Embed of the selected PDF file.”></object>
Firstly, By default in WordPress, it can be inserted a file (pdf) into any post.
But it only shows the link to open that file or to download it.
If you want to embed a pdf file, I think you can try to use some plugins to support it, such as pdf embedder plugin.
With this kind of plugin, you can read your file pdf directly on your page.
Just a tiny opinion! (笑)
Another cause of the issue is that maybe some of your plugins such as cache or minification css, js plugin prevent to show the embedded pdf file (conflict with the plugin supports to embed it)