This commit is contained in:
Johannes Zillmann 2021-01-04 23:05:27 +01:00
parent 989e14e295
commit 84569ac482
2 changed files with 9 additions and 2 deletions

View File

@ -6,6 +6,13 @@
console.log(parseResult.metadata); console.log(parseResult.metadata);
</script> </script>
<div>
Parsed
{parseResult.pages.length}
pages with
{parseResult.pages.reduce((count, page) => count + page.items.length, 0)}
items
</div>
<div>Title: {parseResult.metadata.title()}</div> <div>Title: {parseResult.metadata.title()}</div>
<div>Author: {parseResult.metadata.author()}</div> <div>Author: {parseResult.metadata.author()}</div>

View File

@ -23,7 +23,7 @@
} }
</script> </script>
<div class="border-2 border-dashed border-gray-400 hover:border-blue-800" class:dragover> <div class="pb-5 border-2 border-dashed border-gray-400 hover:border-blue-800" class:dragover>
<Dropzone <Dropzone
on:drop={handleFilesSelect} on:drop={handleFilesSelect}
on:dragenter={() => (dragover = true)} on:dragenter={() => (dragover = true)}
@ -35,7 +35,7 @@
<span class:dragoverItem={dragover}> <span class:dragoverItem={dragover}>
<Download size="21x" /> <Download size="21x" />
</span> </span>
<div class="mt-4"> <div class="px-5">
<div class="text-5xl font-bold my-4">Drop your PDF file here...</div> <div class="text-5xl font-bold my-4">Drop your PDF file here...</div>
<div class="text-2xl font-bold">Or click the box to select one...</div> <div class="text-2xl font-bold">Or click the box to select one...</div>
<div class="mt-14"><strong>Note:</strong> Your data stays locally in your browser.</div> <div class="mt-14"><strong>Note:</strong> Your data stays locally in your browser.</div>