2023-10-31 18:58:40 +01:00
|
|
|
<!DOCTYPE html>
|
2024-05-22 21:48:23 +01:00
|
|
|
<html th:lang="${#locale.language}" th:dir="#{language.direction}" th:data-language="${#locale.toString()}" xmlns:th="https://www.thymeleaf.org">
|
2024-02-16 22:49:06 +01:00
|
|
|
<head>
|
|
|
|
<th:block th:insert="~{fragments/common :: head(title=#{PDFToCSV.title}, header=#{PDFToCSV.header})}"></th:block>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div id="page-container">
|
|
|
|
<div id="content-wrap">
|
|
|
|
<th:block th:insert="~{fragments/navbar.html :: navbar}"></th:block>
|
2024-03-21 21:58:01 +01:00
|
|
|
<br><br>
|
2023-11-02 11:50:50 +01:00
|
|
|
<div class="container">
|
2024-02-16 22:49:06 +01:00
|
|
|
<div class="row justify-content-center">
|
2024-05-19 12:44:54 +02:00
|
|
|
<div class="col-md-6 bg-card">
|
2024-05-05 15:19:53 +04:00
|
|
|
<div class="tool-header">
|
|
|
|
<span class="material-symbols-rounded tool-header-icon convert">csv</span>
|
|
|
|
<span class="tool-header-text" th:text="#{PDFToCSV.header}"></span>
|
|
|
|
</div>
|
2024-06-15 23:07:09 +02:00
|
|
|
<form id="PDFToCSVForm" th:action="@{'/api/v1/convert/pdf/csv'}" method="post" enctype="multipart/form-data">
|
2024-03-21 21:58:01 +01:00
|
|
|
<input id="pageId" type="hidden" name="pageId">
|
2024-08-23 10:17:50 +02:00
|
|
|
<div th:replace="~{fragments/common :: fileSelector(name='fileInput', multipleInputsForSingleRequest=false, accept='application/pdf')}"></div>
|
2024-11-24 11:31:50 +01:00
|
|
|
<button type="submit" class="btn btn-primary" th:text="#{PDFToCSV.submit}" id="submitBtn"></button>
|
2024-02-16 22:49:06 +01:00
|
|
|
</form>
|
|
|
|
<p id="instruction-text" style="margin: 0; display: none" th:text="#{PDFToCSV.prompt}"></p>
|
|
|
|
|
2024-11-16 13:02:20 +02:00
|
|
|
<div style="position: relative; width: auto;" id="canvasesContainer">
|
2024-02-16 22:49:06 +01:00
|
|
|
<div>
|
|
|
|
<div style="display:none ;margin: 3px;position: absolute;top: 0;width: 120px;justify-content:space-between;z-index: 10" id="pagination-button-container">
|
2024-03-21 21:58:01 +01:00
|
|
|
<button id='previous-page-btn' style='opacity: 80% ; width: 50px; height: 30px; display: flex;align-items: center;justify-content: center; background: grey; color: #ffffff; ;border: none;outline: none; border-radius: 4px;'> < </button>
|
|
|
|
<button id='next-page-btn' style='opacity: 80% ; width: 50px; height: 30px; display: flex;align-items: center;justify-content: center; background: grey; color: #ffffff; ;border: none;outline: none; border-radius: 4px;'> > </button>
|
2024-02-16 22:49:06 +01:00
|
|
|
</div>
|
2024-11-16 13:02:20 +02:00
|
|
|
<canvas id="cropPdfCanvas" style="width: 100%"></canvas>
|
2024-02-16 22:49:06 +01:00
|
|
|
</div>
|
2024-11-16 13:02:20 +02:00
|
|
|
<canvas id="overlayCanvas" style="position: absolute; top: 0; left: 0; z-index: 2; width: 100%"></canvas>
|
2024-02-16 22:49:06 +01:00
|
|
|
</div>
|
2024-09-15 00:24:04 -07:00
|
|
|
<script type="module" th:src="@{'/pdfjs-legacy/pdf.mjs'}"></script>
|
2024-12-10 22:21:00 +00:00
|
|
|
<script th:src="@{'/js/thirdParty/pdf-lib.min.js'}"></script>
|
|
|
|
<script type="module" th:src="@{'/js/pages/pdf-to-csv.js'}">
|
2024-02-16 22:49:06 +01:00
|
|
|
</script>
|
2023-10-31 18:58:40 +01:00
|
|
|
</div>
|
2024-02-16 22:49:06 +01:00
|
|
|
</div>
|
2023-10-31 18:58:40 +01:00
|
|
|
</div>
|
2024-02-16 22:49:06 +01:00
|
|
|
</div>
|
|
|
|
<th:block th:insert="~{fragments/footer.html :: footer}"></th:block>
|
2023-10-31 18:58:40 +01:00
|
|
|
</div>
|
2024-02-16 22:49:06 +01:00
|
|
|
</body>
|
2024-03-21 21:58:01 +01:00
|
|
|
</html>
|