开发者 |
levertechadmin
lionsher nathansingh chrisakelley dimensionmedia slaFFik jaredatch smub |
---|---|
更新时间 | 2024年11月1日 22:34 |
PHP版本: | 7.0 及以上 |
WordPress版本: | 6.6 |
版权: | GPL-2.0-or-later |
[pdf-embedder url="https://example.com/wp-content/uploads/2024/01/Plan-Summary.pdf"]
/wp-content/plugins/
directory, or upload the ZIP file directly in the Plugins section of your WordPress adminWe have instructions and a Knowledge Base on our website explaining common setup queries and issues. We try to review daily and respond to support queries posted on the 'Support' forum here on the wordpress.org plugin page.
See Settings -> PDF Embedder in your WordPress admin to change site-wide defaults. You can also override individual embeds by modifying the shortcode attributes or using block options (applicable if you are using the Block Editor). Resizing works as follows:
width='max'
the width will take as much space as possible within its parent container (e.g. column within your page).width="500"
) then it will display at that number of pixels wide.max
. Everything else will have no effect.
In all cases, if the parent container is narrower than the width calculated above, then the document width will be reduced to the size of the container.
The height will be calculated so that the document fits naturally, given the width already calculated.
The Next/Prev toolbar can appear at the top or bottom of the document (or both or none), and it can either appear only when the user hovers over the document or it can be fixed at all times.
See the Plugin Instructions for more details about sizing and toolbar options.
Features available in the premium versions of the plugin:
Yes, our PDF Embedder Premium plugin has an intelligent 'full screen' mode. When the document is smaller than a certain width, the document displays only as a 'thumbnail' with a large 'View in Full Screen' button for the user to click when they want to study your document. This opens up the document so it has the full focus of the mobile browser, and the user can move about the document without hitting other parts of the web page by mistake. Exiting the document is possible by clicking the "Full screen" icon in the toolbar again. See our website wp-pdf.com for more details and purchase options.
Not with the free or Basic/Plus pdf embedder premium versions - it is relatively easy to find the link to download the file directly. A Pro version is available that encrypts the PDF during transmission, so it is difficult for a casual user to save or print the file for use outside your site. See our website wp-pdf.com for more details and purchase options.
This is possible only in the PDF Embedder Premium version. As a workaround in the free version, you could add a direct link to the PDF beneath the embedded version. To do this, copy the URL from the pdf-embedder shortcode and insert it into a link using HTML such as this: <a href="(url of PDF)">Download Here</a>
The Premium versions allow functioning hyperlinks - both internal links within the document, and links to external websites.
width
and height
shortcode/option values have an incorrect value, the plugin does not generate a fatal error.