To embed PDF in WordPress as a flipbook, create the online book in Recastia, copy its responsive embed code, and paste it into a Gutenberg Custom HTML block. The publication then appears inside your post or page, where visitors can turn the pages without leaving the surrounding introduction.
This is useful for a brochure, catalog, or specification document that belongs beside your website copy. The steps below show how to embed PDF in WordPress, keep the viewer within the content column, and check that the saved page still works on a phone. Start with the finished PDF you want visitors to read.
Choose Between a File and a Flipbook
If you only want visitors to download the PDF, a file link may cover the task. Choose a flipbook when the designed pages are part of the reading experience: photographs beside product specifications, a brochure with sections to browse, or a report with full-page charts.
The embed displays a hosted publication inside your WordPress page. Its pages keep their original design. Your WordPress text can introduce the document and explain what to look for before the reader starts browsing.
For example, the official construction specification flipbook below shows a document that visitors can browse within an article. It illustrates the reading experience; use the embed code for your own publication when you build your page.
Embed the Flipbook With Recastia
Place the book in the main content area, below a short introduction. Give detailed pages more room than a sidebar allows.
- Create or Open the Flipbook
Open your existing publication, or upload the finished PDF through Flipbook Maker. Turn through it to check the cover, page order, and edition before copying its embed code.
- Copy the Responsive Embed Code
Open Share, choose Embed, and select Responsive. Copy the complete generated code, including the outer container and iframe. Keep your publication address in the code.
- Add a Custom HTML Block in WordPress
In the WordPress block editor, type /html in a new paragraph and select Custom HTML. Paste the complete code into its HTML editing area, rather than a paragraph or Code block.
- Preview the Book Inside the Page
Preview the page with the theme applied. Turn to a detailed page, try the navigation, and check the content-column width. Open a phone preview and check the text and lower controls.
- Save and Reopen the Draft
Save and reopen the draft. Check that the iframe remains in the block and works in the saved preview; WordPress can filter markup when saving. Add a direct reading link beside the embed. Check the public page after publishing.

Embed Code You Can Copy
This HTML example embeds the construction specification flipbook shown above. Copy it into a Custom HTML block in WordPress.
To display your own flipbook, replace the address in src with your publication URL and change the title to your document’s name. Keep the container and style settings so the book fits the page.
<div style="position:relative;padding-top:max(60%,324px);width:100%;height:0;">
<iframe src="https://recastia.net/zwua/rrkj/index.html" title="Construction Specification Flipbook" style="position:absolute;border:0;width:100%;height:100%;left:0;top:0;" allowfullscreen></iframe>
</div>
The generated container reserves a height equal to 60% of its width, with a minimum of 324 pixels. At a narrow width, that minimum keeps the reading area from becoming a very short strip. These dimensions control the viewer’s space on the page; they do not enlarge the text inside the original PDF or change its page layout.
Keep width at 100% of the content container. A viewport-wide setting can make the book extend beyond the article. If the source has wide landscape pages, give readers a way to open the book separately and use zoom for the details.
Fix the Problem You Can Actually See
The Viewer Extends Past the Article
Check whether you copied fixed-width code or placed the block inside a fixed-width group. Use the responsive code and preview it in the normal content area before changing anything else. If a parent column is wider than the screen, changing only the iframe will leave that parent problem unresolved.
The Book Fits, but There Is Too Little Reading Space
Check that the outer container was copied with the iframe. Without it, a percentage-height iframe may not have the space the generated code expects. If you adjust the container height, check the result on both desktop and phone. Keep the page controls visible without making visitors scroll through a large empty area.
The Code Disappears After Saving
Reopen the block and see whether the iframe is still present. WordPress can filter disallowed HTML for users who lack the relevant permission. Ask the site owner which embedding method the site permits. The WordPress documentation describes this filtering; changing the viewer’s width will not resolve it.

Frequently Asked Questions
This route uses the built-in Custom HTML block and Recastia’s embed code. It depends on your WordPress setup allowing the iframe. If your site removes it or restricts embedded content, ask the site owner about the supported approach before choosing a different method.
Give each book its own block and an introduction that explains what it contains. Check the page with both books loaded. For a long collection, separate resource pages can make it easier for readers to choose the document they need before opening a viewer.
The flipbook displays the PDF’s designed pages. A responsive container fits the available width, but it does not turn those pages into reflowing article text. Check the smallest important labels and provide a direct reading link so visitors can open the book separately.
The iframe opens the publication hosted through Recastia, so this method does not require a second PDF upload to the WordPress media library. Add a separate downloadable file only if that is another format you want to provide to visitors.
Conclusion
To embed PDF in WordPress as a flipbook, use the complete responsive code in a Custom HTML block, preview it in your theme, and check it again after saving.
When you embed PDF in WordPress, give the viewer enough room for its pages and controls. Check a detailed page on a phone, keep the publication within the article column, and place a reading link nearby.
Bring Your PDF to Life With Recastia
Create, customize, and share your content in a more engaging way.
