ChromicPDF.capture_screenshot

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

capture_screenshot(input, opts \\ [])

View Source

Specs

capture_screenshot(url :: source(), opts :: [capture_screenshot_option()]) ::
  return()

Captures a screenshot.

This call blocks until the screenshot has been created.

Print and return Base64-encoded PNG

{:ok, blob} = ChromicPDF.capture_screenshot({:url, "file:///example.html"})

Options

Options to the Page.captureScrenshot call can be passed by passing a map to the :capture_screenshot option.

ChromicPDF.capture_screenshot(
  {:url, "file:///example.html"},
  capture_screenshot: %{
    format: "jpeg"
  }
)

For navigational options (source, cookies, evaluating scripts) see print_to_pdf/2.