Embedwell drops a PDF straight into your content so readers can scroll through it without leaving the page. Pick a file from your Media Library (or paste a URL), choose a height, and you are done.
It uses the browser’s own PDF viewer, so there is no heavy library to load and nothing is sent to an outside service. Your files stay on your own site.
What you get
[ew-pdf-embed] shortcode for the classic editor, widgets, or anywhere shortcodes run.Embed a PDF with the block
Tip: to run the viewer edge to edge, select the block and choose Wide width or Full width from the block toolbar.
Embed a PDF with the shortcode
Use the shortcode when you are in the classic editor, a widget, or a template file.
Embed a file from your Media Library by its attachment ID:
[ew-pdf-embed id="123"]
Embed any PDF by its URL, taller and with the toolbar hidden:
[ew-pdf-embed url="https://example.com/files/report.pdf" height="800" toolbar="0"]
Call it from a template with do_shortcode():
<?php echo do_shortcode( '[ew-pdf-embed id="123"]' ); ?>
Finding a PDF’s attachment ID
Open Media Library, click the PDF, and read the item= number in the URL, or copy the file URL and use it with the url attribute instead.
Shortcode attributes
id — Media Library attachment ID of the PDF.url — Direct URL to a PDF (used if no id is given).height — Viewer height in pixels. Default 600.toolbar — 1 to show the viewer toolbar, 0 to hide it. Default 1.title — Accessible title for the viewer (read by screen readers).The [embedwell], [pp-pdf-embed], [paperpane], [docuforge], [pdf-embed-forge] and [pdf-forge] shortcodes also work as aliases, so anything you built before keeps running.