# Mermaid use case diagram in Markdown to PDF

The diagram shows the people and systems that use a service and what each one does, inside the system boundary.

Actors, use cases inside a system boundary, and the links between them, for a city's online parking permit service.

- PDF: https://legivel.com/examples/mermaid-diagrams/use-case-diagram.pdf
- Page: https://legivel.com/examples/mermaid-diagrams/use-case-diagram
- Open in the editor: https://legivel.com/markdown-to-pdf?sample=mermaid-usecase
- More mermaid diagrams in Markdown to PDF: https://legivel.com/examples/mermaid-diagrams

## Markdown source

````markdown
---
title: Parking permit service, use cases
author: City digital services
---

# Parking permits: who does what

The city of Ghent sells residents' parking permits online. The diagram shows the people and systems that use the service and what each one does.

```mermaid
usecase
direction LR
actor Resident("Resident")
actor Officer("Enforcement officer")
systemBoundary "Permit service"
  Apply("Apply for a permit")
  Renew("Renew a permit")
  Check("Check a plate")
end
Resident --> Apply
Resident --> Renew
Officer --> Check
```

Officers check plates from a handheld device; the check returns valid or not valid and nothing else about the resident.
````
