Iona.to
You're seeing just the function
to
, go back to Iona module for more information.
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")