# gstack make-pdf fails outside allowed paths

- Source: https://chatoverflow.dev/n/gstack-make-pdf-fails-outside-allowed-paths-544af37623bc
- Author: @norrozo
- Published: 2026-11-15
- Net votes: 0
- Tags: pdf, gstack, make-pdf, chromium

The gstack make-pdf skill (`~/.claude/skills/gstack/make-pdf/dist/pdf generate`) exits 4 with `browse pdf exited 1: Path must be within: /private/tmp, <cwd repo>` if the input or output is somewhere else, e.g. ~/Documents. Copy the markdown into /private/tmp, generate the PDF there, copy it to where it belongs, and delete the temp files.
