Skills transform-convert-markdown-to-pdf-with-transloadit
Convert a local Markdown file to a sibling PDF via the official `@transloadit/node` CLI. Use when the user wants a `.md` file rendered as a `.pdf`, especially from an agent session or local repo. The CLI resolves auth from the shell environment, the current working directory `.env`, then `~/.transloadit/credentials`.
install
source · Clone the upstream repo
git clone https://github.com/transloadit/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/transloadit/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/transform-convert-markdown-to-pdf-with-transloadit" ~/.claude/skills/transloadit-skills-transform-convert-markdown-to-pdf-with-transloadit && rm -rf "$T"
manifest:
skills/transform-convert-markdown-to-pdf-with-transloadit/SKILL.mdsource content
Markdown to PDF with Transloadit
Use this for
- One local Markdown file to one local PDF file
- Keeping the PDF next to the source Markdown file
- Agent workflows where credentials may already be in the shell, a local
, or.env~/.transloadit/credentials
Inputs
- Absolute path to a local
file.md - Optional output path; default is the same path with
.pdf
Workflow
- Confirm the Markdown input file exists and resolve it to an absolute path.
- Derive the output path beside it unless the user gave a different
target..pdf - Let the CLI resolve auth automatically in this order:
- Shell environment variables
- The current working directory
only.env
If your~/.transloadit/credentials
lives in a parent directory, export the variables into the shell first..env
- Run the conversion with the official CLI:
npx -y @transloadit/node markdown pdf --input /ABS/PATH/file.md --output /ABS/PATH/file.pdf
Notes
- Prefer
; it is the official CLI route and exposes@transloadit/node
.markdown pdf - When no
is provided, the CLI writes the PDF next to the Markdown file by default.--output - Prefer
as the default fallback when you want a reusable user-level setup.~/.transloadit/credentials - A current-directory
still takes precedence, so avoid it when deterministic account selection matters..env - If credentials only exist in a repo-root
, run the command from that directory or export the variables first..env - Keep the secret server-side or local-only; never move
into browser code.TRANSLOADIT_SECRET - After conversion, confirm the PDF exists at the expected output path.