Skip to content
HALOWERK

Formatwerk

eml to pdf

Own MIME parser: unfolded headers with RFC 2047 encoded-words, nested multiparts, base64 and quoted-printable, charsets via the WHATWG/ICU decoders, RFC 2231 parameter continuations and encodings for file names, format=flowed (RFC 3676). The body is text/plain, or text/html converted to plain text with cheerio (scripts, styles and remote content are never loaded). Attachments and inline parts are listed with decoded size and SHA-256. The A4/Letter PDF is drawn with pdf-lib in embedded.

POST https://format.halowerk.com/v1/eml-to-pdf

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
emlstringNoRaw message text (RFC 5322).
eml_base64stringNoRaw message as base64 (use for 8-bit or binary content).
page_sizestringNo
include_pdfbooleanNoReturn the PDF (false: only the parsed structure).
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "eml": {
      "type": "string",
      "minLength": 10,
      "maxLength": 10000000,
      "description": "Raw message text (RFC 5322)."
    },
    "eml_base64": {
      "type": "string",
      "minLength": 16,
      "maxLength": 14000000,
      "description": "Raw message as base64 (use for 8-bit or binary content)."
    },
    "page_size": {
      "type": "string",
      "enum": [
        "A4",
        "Letter"
      ],
      "default": "A4"
    },
    "include_pdf": {
      "type": "boolean",
      "default": true,
      "description": "Return the PDF (false: only the parsed structure)."
    }
  }
}

Open original schema

Published input example

{
  "eml": "From: Buchhaltung <api@halowerk.com>\r\nTo: Dokumentation <codex@netzhandwerker.de>\r\nSubject: Hello\r\nDate: Mon, 02 Nov 2026 09:00:00 +0100\r\n\r\nHi Dokumentation,\r\nsee you tomorrow.\r\n"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’