Description Displays a document file supported by Google Drive.
Required Script <script async custom-element="amp-google-document-embed" src="https://cdn.ampproject.org/v0/amp-google-document-embed-0.1.js"></script>
Supported Layouts fill, fixed, fixed-height, flex-item, nodisplay, responsive
Examples See AMP By Example's amp-google-document-embed example.

Behavior

The amp-google-document-embed component displays document files like Word documents, Excel spreadsheets, and PDFs.

Example:

<amp-google-document-embed
    src="https://www.example.com/document.pdf"
    width="800"
    height="600"
    layout="responsive">
</amp-google-document-embed>

Attributes

src

The URL of the document.

common attributes

This element includes common attributes extended to AMP components.

Validation

See amp-google-document-embed rules in the AMP validator specification.