# PDF Studio (official)

**This pack is NOT the full PDF editor.** `plugin.js` is the Settings / Apps companion only.
The viewer, annotations, compress, organize, etc. ship in the **desktop host** (cannot run pdf.js / Electron APIs inside the sandbox iframe).

Host modules:
- `PdfStudioHostApp.tsx`
- `PdfStudioModal.tsx` / `PdfAnnotateLayer.tsx` / `pdfOps.ts`
- `pdfStudioStore.ts`

## Enable

Settings → Plugins → install **PDF Studio** → Apps (9-dot) → PDF Studio  
Chat PDF chips: **Open with PDF Studio**.

## Host event

```js
window.dispatchEvent(new CustomEvent('ggbro:pdf-studio-open', {
  detail: { url: 'https://…/file.pdf', filename: 'file.pdf', source: 'chat' },
}));
```
