Skip to main content

layout_rules_broken

An example template.

Browse this template in the repository →

The PDFs below are rendered live by PDF Server from the shipped examples.

floods

Your browser can’t display this PDF inline — use the download link below.

Download PDF — layout_rules_broken / floods

floods_more

Your browser can’t display this PDF inline — use the download link below.

Download PDF — layout_rules_broken / floods_more

malformed

Your browser can’t display this PDF inline — use the download link below.

Download PDF — layout_rules_broken / malformed

throws

Your browser can’t display this PDF inline — use the download link below.

Download PDF — layout_rules_broken / throws

Inputs

Render data

floods

examples/floods.json

{
"case": "floods"
}

floods_more

examples/floods_more.json

{
"case": "floods_more"
}

malformed

examples/malformed.json

{
"case": "malformed"
}

throws

examples/throws.json

{
"case": "throws"
}

Data schema

schema.json

{
"title": "Broken layout rules example",
"type": "object",
"required": ["case"],
"additionalProperties": false,
"properties": {
"case": { "type": "string" }
}
}

Template

template.mustache

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Broken layout rules {{case}}</title>
<style>
body {
font-family: sans-serif;
font-size: 12px;
}
.note {
border: 1px solid #333;
padding: 8px;
}
</style>
</head>
<body>
<p class="note">{{case}}</p>
</body>
</html>