export_pdf
Export a Figma node or the current page to a one-page PDF file. Pass a node ID for a vector PDF of that node; omit for the full page.
Instructions
Export a node (or the current page) to a single PDF file on disk: { nodeId, path, empty? }. Renders the target as one PDF page — Figma's plugin API exports one page per node and cannot paginate a page into one-frame-per-page or combine multiple nodes into a multi-page file. Pass a frame / section id for a vector PDF of that node; omit nodeId for the current page (large pages can be slow). path is null if the target is missing or not exportable; empty:true means it rendered nothing (blank PDF).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | No | Node to export to a one-page PDF (a frame / section / component); omit for the current page | |
| outPath | Yes | File path to write the .pdf to (parent dirs created if missing) |