Skip to main content

Write PDF From LaTeX

Controlled node

Overview

The Write PDF From LaTeX node converts LaTeX content into a PDF file and saves it to the project library. The input can be a LaTeX string or an object containing a latex property and an optional assets array for library image references.

This node is useful for generating mathematically formatted documents, technical reports, invoices, or other PDF outputs that need LaTeX layout and typesetting.

Inputs

InputTypeDescriptionDefault
RunEventTriggers the LaTeX-to-PDF generation and upload.-
DataDataThe LaTeX content to convert. Can be a string or an object with a latex property and optional assets array.-
NameDataThe filename for the generated PDF. If the name does not end with .pdf, the extension is appended automatically.-
PathDataOptional folder path in the library where the PDF should be saved. Missing folders are created automatically. If omitted, the file is saved in the root library folder.root

Outputs

OutputTypeDescription
DoneEventFires when the node has finished running.
FileDataThe generated library file reference. If generation or upload fails, this output contains an error object.

Runtime Behavior and Defaults

  • Controlled Node: The node runs only when the Run event fires.
  • Project Requirement: A runtime project ID is required so the generated PDF can be uploaded to the project library.
  • Filename Handling: The node requires a non-empty Name input. .pdf is appended if the extension is missing.
  • Directory Creation: If Path is provided, the node creates or resolves that library folder path before uploading.
  • Asset Resolution: If Data contains an assets array with library file IDs, the node resolves each asset to a download URL before rendering.
  • Supported Asset Types: LaTeX assets must be PNG or JPEG images. Unsupported asset MIME types return an error.
  • Error Handling: If data, project ID, filename, asset resolution, LaTeX rendering, or upload fails, File contains an error object instead of a file reference.

Example Usage

Generate a PDF From LaTeX

Connect a Plain Text or Markdown Text node containing LaTeX source to Data, set a filename, and trigger Run.

\documentclass{article}
\begin{document}
\section{Report}
This report was generated from an Intellectible workflow.
\end{document}

Set Name to "latex-report" and the node will save latex-report.pdf to the library.

Using Library Image Assets

For workflows that include image references, pass an object with a latex string and an assets array. Assets with library IDs are resolved to temporary download URLs before the PDF is generated.

tip

Use PNG or JPEG images for LaTeX assets. Other asset MIME types are rejected by the runtime.