Iona.to-exclamation-mark

You're seeing just the function to-exclamation-mark, 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()
) :: binary()

The same as to/3, but raises Iona.ProcessingError if it fails. Returns the document content otherwise.

Iona.source(path: "/path/to/document.tex")
|> Iona.to!(:pdf)
|> MyModule.do_something_with_pdf_string

If writing to a file, see write/3 and write/4, as they are both shorter to type and have better performance characteristics.