Skip to main content
Cookbook Content

Embed a PDF viewer in your pages with AI

Show a PDF inline with a scrollable viewer and a download button, no plugin needed.

Difficulty Beginner
Time ~10 min
Tools upload_media, rest_api

Prerequisites

A connected site and a PDF (a URL or one you upload to the media library). Best on pages and posts in the WordPress editor.

The prompt
Embed this PDF so visitors can read it right on the page: [paste the PDF URL, or tell me it is already in my media library].

Upload it to my media library if it is not there yet, then embed it on [a new page titled ..., or the page at this URL] using WordPress's built-in File block so it shows an inline viewer with a download button underneath. Do not use a third-party PDF plugin.

Save it as a draft and give me the preview link so I can check the viewer loads and scrolls on desktop and mobile before it goes live. Publish only after I confirm it looks right.

Already connected to WPVibe?

Skip the copy-paste. Just ask your AI for the “Embed a PDF viewer in your pages with AI” recipe, or describe the task, and WPVibe runs these steps on your own site.

You have a menu, a brochure, a report, or a price list as a PDF, and you want people to read it right there on the page instead of downloading a file and drifting away. WordPress will happily link to a PDF, but showing it inline usually means reaching for a plugin, and the popular PDF viewer plugins tend to be heavy, ad-supported, or awkward on mobile.

WPVibe uploads your PDF to the media library and embeds it with WordPress’s own built-in File block, which shows the document in a scrollable inline viewer with a download button underneath. There is no plugin involved, it uses the browser’s native PDF renderer, so the page stays light. You get a clean preview that keeps readers on the page instead of sending them off to a file.

Give it the PDF, either a link or a file already in your media library, and tell it which page to use. WPVibe puts the embed on a draft page and hands you a preview link so you can check that the viewer loads and scrolls before anything goes live. It works on pages and posts written in the WordPress editor.

Outcome

The PDF displays inline in a scrollable viewer with a download button, using the core File block and no plugin.