Skip to content

Expand and improve examples (realistic HTML, auth scenarios, common options) #5

Description

@aplgr

Goal

Improve example quality and coverage so new users can copy/paste real-world requests.

Why

HTML→PDF services are often judged by “first 2 minutes experience”. Better examples = more adoption.

Scope

Add examples for:

  • More realistic HTML:
    • external CSS + inline CSS
    • web fonts (and fallback behavior)
    • images (local + remote)
    • long pages / page breaks
  • Auth scenarios:
    • public request (no key)
    • valid API key
    • invalid key (expected 401)
    • rate limit exceeded (expected 429)
  • Common PDF options (if supported by the API):
    • page size, margins, landscape, print background

Acceptance criteria

  • examples/ contains at least 3 “realistic” HTML inputs
  • README references the examples and shows at least 2 full curl commands
  • Examples are self-contained and reproducible locally

Notes / hints

If the API doesn’t support some PDF options yet, keep examples aligned with what exists today.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions