Docspring.Model.HtmltoPdfRequest (docspring v4.8.0)

A page of HTML to convert to PDF, as html or as a file in input (one of them), with the page's settings. The Standard engine converts it unless you ask for Chromium: it doesn't run JavaScript, so a page with a script element fails with a message that says to send engine chromium. Images, stylesheets and fonts the page links to are downloaded, and on the Standard engine a link that can't be downloaded fails the job with a message naming it.

Summary

Types

t()

@type t() :: %Docspring.Model.HtmltoPdfRequest{
  engine: Docspring.Model.JobHtmlEngine.t() | nil,
  expires_in: integer() | nil,
  footer_html: String.t() | nil,
  header_html: String.t() | nil,
  height: String.t() | nil,
  html: String.t() | nil,
  input: Docspring.Model.JobSourceInput.t() | nil,
  landscape: boolean() | nil,
  margin: Docspring.Model.JobPageMargin.t() | nil,
  metadata: %{optional(String.t()) => any()} | nil,
  page_size: Docspring.Model.JobPageSize.t() | nil,
  print_background: boolean() | nil,
  scale: number() | nil,
  width: String.t() | nil
}

Functions

decode(value)