> ## Documentation Index
> Fetch the complete documentation index at: https://studio.assembly.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Docs embed

> Embed Google Docs in your client portal for viewing or collaborative editing.

Assembly enables you to share Google Docs with your clients directly within your portal. You can embed documents for viewing only or enable collaborative editing with clients.

## App setup

### Connecting view-only Google Docs

Navigate to the **App Library**, select **Google Docs** from the client-facing section, and install the app. You'll configure visibility settings and choose between automatic (same document for all clients) or manual setup (specific documents per client).

To connect a view-only document, you need to **Publish to Web** through Google Docs' **File** menu and share settings. The generated link is then pasted into Assembly's content box.

### Connecting editable Google Docs

For editable documents, the setup is similar but requires setting permissions to **Anyone with the link can edit** in Google Docs. Instead of simply pasting the link, you must wrap it in an iframe code snippet:

```html theme={null}
<iframe src="link" />
```

Replace `link` with your Google Doc URL while preserving the quotation marks.

### Optimizing for mobile

If documents appear narrow on mobile devices, adjust the page margins in Google Docs. Changing the margins to 0.1 works, though you can adjust until the rendering matches your needs. Access this through **File** > **Page Setup** in Google Docs.

To preview functionality, connect the app to a test client and access the portal to verify the implementation.
