orshot-hq/orshot-agent-skills/orshot-pdf-generator
Claude Code and agent skill by orshot-hq/orshot-agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Invoice and certificate PDF generator with the Orshot API: design an invoice, receipt, quote, certificate, report, proposal, ticket or offer letter once, then render one designed PDF per row or event from Google Sheets, Airtable, Notion, HubSpot, Stripe or a webhook, through n8n, Make, Zapier, REST or an Orshot Workflow, and pass the PDF URL to Gmail, Google Drive or the CRM. Selectable text, line items, page numbers on long documents and clickable pay links. Use when: \"generate invoice PDFs a…
Install
npx vskill@latest install orshot-hq/orshot-agent-skills/orshot-pdf-generatorSKILL.md
The same SKILL.md was published earlier as orshot-hq/orshot-agent-skills/orshot-pdf-generator.
Orshot PDF Generator: invoices, certificates and documents from a template and data
Give this skill a document type and a source of rows: a sheet, a CRM or a payment webhook. It returns one designed PDF per row, as a URL ready for email, Drive or the CRM.
Orshot is an API for automated image, PDF and video generation from templates. The invoice, certificate or report is designed once. The layout, fonts and logo live in the template. Each render sends only the values that change.
- No API key over the hosted MCP server. It signs in with OAuth. Only recurring jobs need a key, kept in the environment.
- The credit cost comes first. Say it before rendering more than 10 pages.
- Nothing is emailed without a yes. Orshot makes the PDF; the user's email step sends it, after they confirm the recipients.
The Orshot docs are the reference for every parameter, value and limit. Each docs page has a markdown version at https://orshot.com/docs/<path>.md. This skill gives the order of steps and worked examples, and links the page to read at each step.
This skill or a local PDF tool?
| The job | Use | |
|---|---|---|
| Edit, merge, split, fill or read a PDF file you already have | A local PDF or DOCX tool | |
| Pull data out of invoices or other PDFs (OCR) | An OCR or PDF parsing tool | |
| One-off document you will never make again | A local PDF or DOCX tool | |
| Same designed layout, new data each time, often from a sheet, CRM or app | This skill | |
| Must run without you: every new order, signup, deal or course completion | This skill |
Pick this skill when the document is designed, repeats, and is filled from data. The output is a PDF URL, so it drops straight into an email step, a CRM field or storage.
Example prompts
- "Make certificates for everyone in this sheet who finished Data Basics at Brightpath Academy. Name each file after the student."
- "When a Stripe invoice is paid, render our invoice PDF and put the link on the customer's Airtable record."
- "Every row in the Orders sheet with status READY should become a PDF invoice and a Gmail draft to the client. Mark the row SENT after."
- "Design a quote for Halden Joinery with line items, a total and a Pay now link, then show me one filled with test data."
- "Our certificate is designed in Canva. Bring it in and make 180 certificates from this CSV."
- "A monthly report PDF for each client in this Airtable view, with page numbers in the footer."
Setup
- Connect the Orshot MCP server: https://orshot.com/docs/integrations/mcp-server.md has the steps for each client.
- Confirm with
orshot_get_account. A billing or plan message is not an auth error. Send the user to https://orshot.com/pricing and stop retrying. - Recurring jobs (cron, n8n, Make, Zapier, your server) use REST with an API key: https://orshot.com/docs/quick-start/get-api-key.md. Keep the key in an environment variable.
Document recipes
Name each field after the column or property it comes from. If the sheet column is client_name, the parameterId is client_name. One field per value that changes. Borders, logo, signature image and fixed wording stay static.
| Document | Pages | Dynamic fields (parameterIds) | |
|---|---|---|---|
| Invoice or quote | 1 | invoice_number, invoice_date, client_name, items_product, items_qty, items_total, total, pay_link (with .href) | |
| Certificate | 1, landscape | recipient_name, course_name, completion_date, certificate_id | |
| Report | several designed pages, or one flowing body | page1@title, page2@chart_image, body | |
| Proposal | several | client_name, scope, price, cover_image | |
| Ticket or badge | 1 | event_name, attendee, seat, qr_code (image URL) | |
| Contract or offer letter | flows to as many pages as needed | inline fields such as nda:effective_date, nda:counterparty_name |
Contracts are render only. Orshot makes the PDF; signing happens in the user's e-signature tool.
Ready templates to copy (Copy This Template saves one to the workspace): invoice, certificate, offer letter, mutual NDA.
Step 1. Build the template once
Start from the design they already have. If the invoice or certificate is already designed in Canva or Figma, the user imports it in the Orshot dashboard (New Template dialog). Importers do not run over MCP or REST. Then make every value that changes a parameter. Guides: https://orshot.com/docs/importing-templates/index.md, and the orshot skill's `references/migration.md`.
- Look first:
orshot_list_studio_templateswith a search like "invoice" or "certificate". Reuse what exists. - Pick the canvas size. The PDF page is the canvas size at 96 px per inch: 794x1123 is A4 and 816x1056 is US Letter. Leave
pdfDpiunset for paper sizes, because it scales the page itself. The image size presets are not paper sizes. Details: "Page Size" in https://orshot.com/docs/pdf-generation/pdf-options.md - Create:
orshot_create_template_designwith the completepages_dataandincludeThumbnails: true. Plan first:orshot_plan_designwith the brief,job("invoice PDF", "course certificate"), the page size andon_brand: truereturns the palette, fonts, type scale and a slot layout with a ready skeleton (documents have no format catalogue, so the plan's layout is the layout). Readorshot_get_design_spectopictemplate-jsononce per session (the same content is at https://orshot.com/docs/definitions/template-json.md). For layout and type, load the orshot-design skill. Look at the returned preview anddesignWarnings, and fix real problems with oneorshot_update_template_designcall. Some checks are tuned for social posts (repeated labels such as "Invoice no.", the number of type sizes, text on a button pill): fix what the preview shows is wrong and tell the user which warnings you left and why.
- Fixed wording (labels, headings, footer) gets
parameterizable: false, so the modifications list holds only the values that change. - Over REST, template create is Enterprise-only: https://orshot.com/docs/api-reference/enterprise-template-create.md. On other plans, build the template over MCP or in the Studio editor.
- Blanks inside a paragraph: write
{{effective_date}}inside the text, make the layer a parameter (saynda), and sendnda:effective_date. The wording around it never travels in the request. Docs: https://orshot.com/docs/orshot-studio/inline-parameters.md - Get the exact keys before any automation:
orshot_get_studio_template_modifications, or over RESTGET https://api.orshot.com/v1/studio/<templateId>/modifications. Never guess them.
Multi-page documents
Designed pages (cover, summary, details) need a page prefix on every content key: page1@title, page2@title. On a template with two or more pages a bare content key reaches no page. Bare style keys (footer_text.color) and inline keys apply on every page that has the layer. Docs: https://orshot.com/docs/pdf-generation/multi-page-pdfs.md
Variable-length content
- Long text (contracts, reports, letters): Flow. In the Studio editor, select the body text and set Styles > Text Autofit > Flow. Text that does not fit moves onto new pages. Turn on Repeat on extra pages for the header and footer, and write
Page {{_page_number}} of {{_total_pages}}in the footer. Docs: https://orshot.com/docs/orshot-studio/flowing-content.md - In template JSON, Flow is
textMode: "flow"inside the text layer'sstyle. The flow settings (repeatOnOverflow,flowZones,flowBreakBehavior,flowMinLinesBeforeBreak,flowMinLinesAfterBreak) are fields on the element itself, not instyle. See https://orshot.com/docs/definitions/template-json.md - The MCP create and update tools accept only
fit,truncateandoverflowfortextMode. Set Flow in the editor. - Line items (invoices, quotes): columns plus Smart Stacking. There is no table element and no math. Use one text layer per column, one line per item joined with
\n, and compute totals in the step that calls the API. Flatten the items in that step first: Airtable linked records, Notion relations or Stripe invoice lines become one newline-joined value per column. Stack the total under the items layer so it moves down as rows are added: in template JSON, the total layer getsstacking: { enabled: true, targetElementId: "<items layer id>", position: "bottom", padding: 16 }. Render the most line items the template must hold and look before relying on it. Docs: https://orshot.com/docs/orshot-studio/smart-stacking.md - Charts and QR codes: there is no chart or QR element. Make an image field (
chart_image,qr_code) and build its URL in the step that calls the API, from the row's numbers or link, with a chart or QR image service the user is happy to use. The URL must be public. - Optional block: hide a layer for one render with
"<parameterId>.opacity": "0". Docs: https://orshot.com/docs/image-generation/dynamic-styling.md
Step 2. Render a PDF
Over MCP: orshot_render_template with format: "pdf". Over REST: POST https://api.orshot.com/v1/studio/render.
data.content is the URL of one PDF with every page. The text stays real, selectable text.
Name each file after its row with fileName: the invoice number or the recipient's name. orshot_render_template takes fileName over MCP too.
Read these before setting options:
- Response, page selection and use cases: https://orshot.com/docs/pdf-generation.md
pdfOptions(title, margins, dpi, CMYK, image compression, page range): https://orshot.com/docs/pdf-generation/pdf-options.md- Clickable links with
.href: https://orshot.com/docs/pdf-generation/interactive-links.md - Which render options the MCP tool takes: the Rendering section of https://orshot.com/docs/integrations/mcp-server.md. Anything in
pdfOptionsthat is not there (title, margins, CMYK, compression, ranges) needs REST.
Same template as a share image. Render it again with format: "png" for LinkedIn or a confirmation page. extraSizes adds resized copies, for image formats only and not on Flow templates. Docs: the Smart Resize section of https://orshot.com/docs/api-reference/render-from-studio-template.md
Step 3. From data: one PDF per row, every time
Check what the user already runs: orshot_list_workspace_logs shows a source per render (for example n8n-integration, zapier-integration, orshot-make, api). Add to that tool. Do not pitch a second one.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/orshot-pdf-generator/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/orshot-hq/orshot-agent-skills/orshot-pdf-generator)