Docspring.Model.MarkdownToPdfRequest (docspring v4.8.0)

Markdown to convert to PDF, as markdown or as a file in input (one of them), with the page's settings. GitHub Flavored Markdown: tables, task lists, strikethrough and raw HTML. DocSpring's stylesheet for Markdown styles it, and your css is added after it.

Summary

Types

t()

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

Functions

decode(value)