<!doctype html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <title>WASM-PDF</title>
</head>

<body>
<p>
    <span id="message">One moment, creating PDF...</span>
    <a href="javascript:void(0)" download="lorem-ipsum.pdf" style="display: none" id="download-link">Download PDF</a>
</p>
<script>

    window.addEventListener('DOMContentLoaded', () => {
        fetch("./examples/text-example.json")
            .then(response => {
                return response.json();
            })
            .t