{"version":"2.1.326","anchor":"office-attachment-upload-can-send-a-kept-pdf-preview","canonical_anchor":"office-attachment-upload-can-send-a-kept-pdf-preview","heading":"Office file uploads can include a kept PDF preview in sandboxed deployments","tier":"use","area":"Uploads","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/office-attachment-upload-can-send-a-kept-pdf-preview","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### Office file uploads can include a kept PDF preview in sandboxed deployments\n\nNew SANDBOX_OFFICE_PDF_DIR and SANDBOX_OFFICE_PDF_SEND variables let .docx and .pptx uploads attach a kept PDF preview, and join the host-owned env var list\n\n**What**\n\nEnvironment variables are named settings that a program reads when it starts. Claude Code adds three new ones, and adds all three to the set of host-owned variables. That set already held `CLAUDE_CODE_ENTRYPOINT` and the program use-case variables, and it appears to list variables that belong to the host program that starts Claude Code:\n\n- `CLAUDE_CODE_HOST_OWNED_SPAWN_ENV`, a new host-owned variable.\n\n- `SANDBOX_OFFICE_PDF_DIR`, a folder of kept PDF copies. When it is set, on any system except Windows, uploading a `.docx` or `.pptx` file makes Claude Code look in that folder for a PDF named after the sha256 fingerprint of the file. A sha256 fingerprint is a code worked out from the file's contents.\n\n- `SANDBOX_OFFICE_PDF_SEND`, a list of file types. The PDF that was found is attached to the upload as an `office_preview` part only if this variable lists that file's type.\n\n**Why**\n\nThe change applies to sandboxed bridge deployments and to SDK and host programs that start Claude Code, not to ordinary use. A sandbox is a walled-off environment that Claude Code runs in. In those setups, a Word or PowerPoint upload can carry a ready-made PDF preview alongside the original file.\n\n- Area: Uploads\n- Names: `SANDBOX_OFFICE_PDF_DIR`, `SANDBOX_OFFICE_PDF_SEND`\n- Tier: Use it now\n- Useful: 5\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}