Transform convert markdown to pdf with transloadit
Skill Pyfagorass/bookofspells/skills/transloadit/transform-convert-markdown-to-pdf-with-transloadit
📖 The Book of Spells: a curated, enchanted index of real LLM tooling — and a pipeline that gathers SKILL.md skills from many houses into one searchable shelf.
npx -y skills add Pyfagorass/bookofspells --skill transform-convert-markdown-to-pdf-with-transloaditAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
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`.
SKILL.md
2.0 KB, 387 tokens by cl100k_base, as published. Nobody here has run it
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
.env, or~/.transloadit/credentials
Inputs
- Absolute path to a local
.mdfile - 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
.pdftarget. - Let the CLI resolve auth automatically in this order:
- Shell environment variables
- The current working directory
.envonly ~/.transloadit/credentialsIf your.envlives in a parent directory, export the variables into the shell first.
- 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
@transloadit/node; it is the official CLI route and exposesmarkdown pdf. - When no
--outputis provided, the CLI writes the PDF next to the Markdown file by default. - Prefer
~/.transloadit/credentialsas the default fallback when you want a reusable user-level setup. - A current-directory
.envstill takes precedence, so avoid it when deterministic account selection matters. - If credentials only exist in a repo-root
.env, run the command from that directory or export the variables first. - Keep the secret server-side or local-only; never move
TRANSLOADIT_SECRETinto browser code. - After conversion, confirm the PDF exists at the expected output path.