# Create Templated PDF From Text

> Perform Create Templated PDF From Text through GenHealth.

Source: [https://genhealth.ai/docs/workflows/integrations/gen-health/genhealth_create_templated_pdf_from_text](https://genhealth.ai/docs/workflows/integrations/gen-health/genhealth_create_templated_pdf_from_text)

Integration: [GenHealth](https://genhealth.ai/docs/workflows/integrations/gen-health.md)

- Handler: `genhealth_create_templated_pdf_from_text`

## Inputs

- `template` — Template (textarea, required)
  Required text value.
- `arguments` — Arguments (json, required)
  Required JSON value.
- `title` — Title (expression)
  Optional literal value or workflow expression.
  Default: `"Templated PDF.pdf"`
- `document_type` — Document Type (expression)
  Optional literal value or workflow expression.
  Default: `"Other"`
- `page_size` — Page Size (select)
  Optional selected identifier or value.
  Default: `"Letter"`
  Options: Letter ("Letter"), A4 ("A4"), Legal ("Legal")
- `orientation` — Orientation (select)
  Optional selected identifier or value.
  Default: `"portrait"`
  Options: Portrait ("portrait"), Landscape ("landscape")
- `margin_inches` — Margin Inches (number)
  Optional numeric value.
  Default: `0.5`
- `font_size_points` — Font Size Points (number)
  Optional numeric value.
  Default: `11`
- `show_in_inbox` — Show In Inbox (boolean)
  Optional true-or-false value.
  Default: `true`
- `inbox_status` — Inbox Status (select)
  Optional selected identifier or value.
  Default: `"complete"`
  Options: Needs Action ("review"), Completed ("complete")
- `dedupe_key` — Dedupe Key (expression)
  Optional literal value or workflow expression.

## Outputs

- `success` — Success
- `status` — Status
- `document_id` — Document Id
- `title` — Title
- `document_type` — Document Type
- `content_type` — Content Type
- `size` — Size
- `sha256` — Sha256
- `was_existing` — Was Existing
- `display_path` — Display Path
- `error` — Error
- `error_message` — Error Message

Output schema completeness: `best_effort_declared`

## Safety

- External effect: `write`
- Confirmation recommended: no
- Retry safe: no
- Dry run supported: no

## Schemas

These schemas are first-pass authoring guidance. Runtime validation remains authoritative.

### Input schema

```json
{
  "type": "object",
  "required": [
    "template",
    "arguments"
  ],
  "properties": {
    "title": {
      "default": "Templated PDF.pdf",
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "template": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "textarea"
    },
    "arguments": {
      "description": "Required JSON value.",
      "x-workflow-field-type": "json"
    },
    "page_size": {
      "enum": [
        "Letter",
        "A4",
        "Legal"
      ],
      "type": "string",
      "default": "Letter",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "dedupe_key": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "orientation": {
      "enum": [
        "portrait",
        "landscape"
      ],
      "type": "string",
      "default": "portrait",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "inbox_status": {
      "enum": [
        "review",
        "complete"
      ],
      "type": "string",
      "default": "complete",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "document_type": {
      "default": "Other",
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "margin_inches": {
      "type": "number",
      "default": 0.5,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "show_in_inbox": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "font_size_points": {
      "type": "number",
      "default": 11,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "size": {},
    "error": {},
    "title": {},
    "sha256": {},
    "status": {},
    "success": {},
    "document_id": {},
    "content_type": {},
    "display_path": {},
    "was_existing": {},
    "document_type": {},
    "error_message": {}
  },
  "additionalProperties": true
}
```
