Iona.to

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

to(input, format, opts \\ [])

View Source

Specs

to(
  input :: Iona.Input.t(),
  format :: supported_format_t(),
  opts :: processing_opts()
) :: {:ok, binary()} | {:error, binary()}

Generate a formatted document as a string.

Without processing options:

{:ok, pdf_string} = Iona.source(path: "/path/to/document.tex")
|> Iona.to(:pdf)

With processing options:

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