Iona.write

You're seeing just the function write, go back to Iona module for more information.
Link to this function

write(input, path, opts \\ [])

View Source

Specs

write(input :: Iona.Input.t(), path :: Path.t(), opts :: processing_opts()) ::
  :ok | {:error, term()}

Generate a formatted document to a file path.

Without processing options:

:ok = Iona.source(path: "/path/to/document.tex")
|> Iona.write("/path/to/document.pdf")

With processing options:

:ok = Iona.source(path: "/path/to/document.tex")
|> Iona.write("/path/to/document.pdf",
processor: "xetex")