Add selection for PDF/A output format (#1095)

* Create PdfToPdfARequest.java

* Change class, add output format

* Add input field for output format

* Change output format selection order
This commit is contained in:
phfuh
2024-04-21 09:44:05 +02:00
committed by GitHub
parent 214e23fd93
commit b702f5772d
3 changed files with 29 additions and 4 deletions

View File

@@ -17,6 +17,13 @@
<p th:text="#{pdfToPDFA.tip}"></p>
<form method="post" enctype="multipart/form-data" th:action="@{api/v1/convert/pdf/pdfa}">
<div th:replace="~{fragments/common :: fileSelector(name='fileInput', multiple=false, accept='application/pdf')}"></div>
<div class="mb-3">
<label th:text="#{pdfToPDFA.outputFormat}"></label>
<select class="form-control" name="outputFormat">
<option value="pdfa-1">PDF/A-1b</option>
<option value="pdfa">PDF/A-2b</option>
</select>
</div>
<br>
<button type="submit" id="submitBtn" class="btn btn-primary" th:text="#{pdfToPDFA.submit}"></button>
</form>
@@ -28,4 +35,4 @@
<th:block th:insert="~{fragments/footer.html :: footer}"></th:block>
</div>
</body>
</html>
</html>