Title: Radeet pdf Embed
Author: A. H. M. Anawar Parvez
Published: <strong>1 de setembre de 2016</strong>
Last modified: 22 de febrer de 2017

---

Cerca extensions

![](https://ps.w.org/radeet-pdf-embed/assets/banner-772x250.png?rev=1488291)

Aquesta extensió **no s’ha provat en les darreres 3 versions majors del WordPress**.
Segurament no està mantinguda o suportada, i pot tenir problemes de compatibilitat
quan s’usa en versions recents del WordPress.

![](https://ps.w.org/radeet-pdf-embed/assets/icon-128x128.png?rev=1488291)

# Radeet pdf Embed

 Per [A. H. M. Anawar Parvez](https://profiles.wordpress.org/parvezbrta/)

[Baixa](https://downloads.wordpress.org/plugin/radeet-pdf-embed.2.3.0.zip)

 * [Detalls](https://ca.wordpress.org/plugins/radeet-pdf-embed/#description)
 * [Ressenyes](https://ca.wordpress.org/plugins/radeet-pdf-embed/#reviews)
 *  [Instal·lació](https://ca.wordpress.org/plugins/radeet-pdf-embed/#installation)
 * [Desenvolupament](https://ca.wordpress.org/plugins/radeet-pdf-embed/#developers)

 [Suport](https://wordpress.org/support/plugin/radeet-pdf-embed/)

## Descripció

### Basic use

To embed a PDF you’ve uploaded to your WordPress site’s media
 library, simply put
the URL for the attachment page in your post on its own line. The PDF will be embedded
with the default settings at that location, as if it were using oEmbed.

#### Examples:

    ```
    Feu clic per accedir a report1.pdf
    ```

This doesn’t work for PDFs hosted on other websites, or if you
 need to change the
parameters.

### Using the `[pdf]` shorttag

If the PDF isn’t in your WordPress site’s media library, or if
 you want to customize
any parameters for the embed, then use the `[pdf]...[/pdf]` shorttag. Between the
tags, you’ll provide the URL for the PDF to embed. If the PDF is in your WordPress
site’s media library, you can either give the attachment page URL, or the URL to
the PDF file directly.

The `[pdf]` shorttag accepts several optional parameters:

 * `width` – sets the width of the frame the PDF is embedded in.
    By default, this
   is set to 100%.
 * `height` – sets the height of the frame the PDF is embedded
    in. By default, 
   this is unset.
 * `title` – sets the title of the PDF, for use in the fallback
    link text.

#### Examples:

    ```
    Post short URL: [pdf width="200px"]http://localhost/?p=9[/pdf]
    Attachment default URL: [pdf height="500em"]http://localhost/?attachment_id=9[/pdf]
    Attachment pretty URL: [pdf title="Report 1"]http://localhost/test/report1/[/pdf]
    Media direct URL: [pdf]http://localhost/wp-content/uploads/2013/11/report1.pdf[/pdf]
    ```

### Compatibility

The PDF should be embedded in the page, with the document scaled so it fills the

embed frame horizontally. Unfortunately, embedding PDFs is not well-supported.

#### Auto-loading embedded PDFs

Unlike with images, web browsers may not automatically download and display
 embedded
PDFs when the page is loaded. For security reasons, some users prefer not to allow
the PDF plugin to run unless they trust the website the PDF comes from. This generally
leaves a grey rectangle that the user may click on to allow the PDF to be downloaded
and displayed.

#### PDF open parameters

There is currently no way to customize the [PDF open parameters](http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf).

#### Chrome

The PDF should be scaled/zoomed within the embed frame so that the full
 horizontal
width of the paper fills the frame. This is [not supported in Chrome’s default PDF
viewer, so the document will probably be scaled to 100%, which may either mean the
document doesn’t fill the frame, or, more likely, the document is too wide for the
frame, and the right-hand side of the document is hidden.

#### Internet Explorer

Internet Explorer requires a PDF plugin to render embedded PDFs. Generally,
 that’s
Adobe Reader. Without such a plugin, the fallback download link will be used.

#### Mobile browsers

In particular, mobile browsers may show a grey box instead of the embedded PDF,

and will download the file when it is clicked. Other mobile browsers might embed
the PDF, but won’t allow it to scroll.

### Alternatives

Your best alternative is to **not** embed PDFs. PDFs are bad for many reasons:
 
not easily indexed by search engines, not easily accessible by readers who use assistive
technologies, poorly supported by web browsers (as seen above) and so on. They’re
just **bad** and you should avoid embedding PDFs if you can.

If you _really_ can’t, then you might consider using another solution like
 [http://pdfobject.com/](http://pdfobject.com/)
or [PDF.js](https://mozillalabs.com/en-US/pdfjs/).

## Instal·lació

 1. Upload `radeet-pdf-embed.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the «Plugins» menu in the WordPress admin panel

## PMF

Will you support the plugin?
 Yes, I will support the plugin.

## Ressenyes

![](https://secure.gravatar.com/avatar/24febec8373c8aa415536902be37caa6a323d01afd81b3d9059a6eebd9915495?
s=60&d=retro&r=g)

### 󠀁[Easy to Use](https://wordpress.org/support/topic/easy-to-use-1291/)󠁿

 [A. H. M. Anawar Parvez](https://profiles.wordpress.org/parvezbrta/) 22 de febrer
de 2017

Easy to Use

 [ Llegiu tota la 1 ressenya ](https://wordpress.org/support/plugin/radeet-pdf-embed/reviews/)

## Col·laboradors i desenvolupadors

«Radeet pdf Embed» és programari de codi obert. La següent gent ha col·laborat en
aquesta extensió.

Col·laboradors

 *   [ A. H. M. Anawar Parvez ](https://profiles.wordpress.org/parvezbrta/)

[Traduïu «Radeet pdf Embed» a la vostra llengua.](https://translate.wordpress.org/projects/wp-plugins/radeet-pdf-embed)

### Interessats en el desenvolupament?

[Navegueu pel codi](https://plugins.trac.wordpress.org/browser/radeet-pdf-embed/),
baixeu-vos el [repositori SVN](https://plugins.svn.wordpress.org/radeet-pdf-embed/),
o subscriviu-vos al [registre de desenvolupament](https://plugins.trac.wordpress.org/log/radeet-pdf-embed/)
per [fisl de subscripció RSS](https://plugins.trac.wordpress.org/log/radeet-pdf-embed/?limit=100&mode=stop_on_copy&format=rss).

## Registre de canvis

#### 0.0.7

 * Fix a couple corner cases – thanks AngelinaBelle!

#### 0.0.6

 * Set a default height of 500em

#### 0.0.5

 * Fix a simple programming error; thanks to firedog341 for the report

#### 0.0.4

 * By default, use a 100% width embed frame
 * Expanded readme

#### 0.0.3

 * Embed PDFs on attachment pages
 * Fix a spacing issue for PDFs with no title
 * Don’t use PDF open parameters for the fallback link

#### 0.0.2

 * Don’t embed non-PDFs from the media library

#### 0.0.1

 * Initial release

## Meta

 *  Versió **2.3.0**
 *  Darrera actualització **fa 10 anys**
 *  Instal·lacions actives **100+**
 *  Versió del WordPress ** 3.0.1 o posterior **
 *  Provada fins a **4.7.37**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/radeet-pdf-embed/)
 * Etiquetes
 * [embed](https://ca.wordpress.org/plugins/tags/embed/)[pdf](https://ca.wordpress.org/plugins/tags/pdf/)
 *  [Vista avançada](https://ca.wordpress.org/plugins/radeet-pdf-embed/advanced/)

## Valoracions

 5 sobre 5 estrelles.

 *  [  1 valoració de 5 estrelles     ](https://wordpress.org/support/plugin/radeet-pdf-embed/reviews/?filter=5)
 *  [  0 valoracions de 4 estrelles     ](https://wordpress.org/support/plugin/radeet-pdf-embed/reviews/?filter=4)
 *  [  0 valoracions de 3 estrelles     ](https://wordpress.org/support/plugin/radeet-pdf-embed/reviews/?filter=3)
 *  [  0 valoracions de 2 estrelles     ](https://wordpress.org/support/plugin/radeet-pdf-embed/reviews/?filter=2)
 *  [  0 valoracions de 1 estrelles     ](https://wordpress.org/support/plugin/radeet-pdf-embed/reviews/?filter=1)

[La vostra ressenya](https://wordpress.org/support/plugin/radeet-pdf-embed/reviews/#new-post)

[Visualitza totes les ressenyes](https://wordpress.org/support/plugin/radeet-pdf-embed/reviews/)

## Col·laboradors

 *   [ A. H. M. Anawar Parvez ](https://profiles.wordpress.org/parvezbrta/)

## Suport

Teniu quelcom a dir? Necessiteu ajuda?

 [Visualitza els fòrums de suport](https://wordpress.org/support/plugin/radeet-pdf-embed/)

## Feu una donació

Voleu ajudar a què l'extensió millori?

 [ Feu una donació a aquesta extensió ](http://www.radeet.com)