export_pdf
Export a Figma frame, section, component, or the current page to a single-page vector PDF file. Omit nodeId to export the current page. Returns the file path and indicates if empty.
Instructions
Export a node (or the current page) to a single-page vector PDF file on disk. Figma's plugin API renders one PDF page per node and cannot paginate a page into one-frame-per-page or merge multiple nodes into a multi-page file. Pass a frame / section / component id for a vector PDF of that node; omit nodeId for the current page (large pages can be slow). For raster output (PNG/JPG) use save_screenshots instead. Returns { nodeId, path, empty? }; path is null if the target is missing or not exportable, and empty:true means it rendered a 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) |