mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-06-23 16:05:09 +00:00

# Description of Changes Migrated Stirling PDF to a multi-module structure: * Introduced new `:stirling-pdf` module * Moved all the core logic and features of Stirling PDF into `:stirling-pdf` * Updated paths of jobs and scripts --- ## Checklist ### General - [ ] I have read the [Contribution Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md) - [ ] I have read the [Stirling-PDF Developer Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md) (if applicable) - [ ] I have read the [How to add new languages to Stirling-PDF](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md) (if applicable) - [ ] I have performed a self-review of my own code - [ ] My changes generate no new warnings ### Documentation - [ ] I have updated relevant docs on [Stirling-PDF's doc repo](https://github.com/Stirling-Tools/Stirling-Tools.github.io/blob/main/docs/) (if functionality has heavily changed) - [ ] I have read the section [Add New Translation Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md#add-new-translation-tags) (for new translation tags only) ### UI Changes (if applicable) - [ ] Screenshots or videos demonstrating the UI changes are attached (e.g., as comments or direct attachments in the PR) ### Testing (if applicable) - [ ] I have tested my changes locally. Refer to the [Testing Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md#6-testing) for more details.
88 lines
4.9 KiB
HTML
88 lines
4.9 KiB
HTML
<!DOCTYPE html>
|
|
<html th:lang="${#locale.language}" th:dir="#{language.direction}" th:data-language="${#locale.toString()}" xmlns:th="https://www.thymeleaf.org">
|
|
<head>
|
|
<th:block th:insert="~{fragments/common :: head(title=#{addPassword.title}, header=#{addPassword.header})}"></th:block>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="page-container">
|
|
<div id="content-wrap">
|
|
<th:block th:insert="~{fragments/navbar.html :: navbar}"></th:block>
|
|
<br><br>
|
|
<div class="container">
|
|
<div class="row justify-content-center">
|
|
<div class="col-md-6 bg-card">
|
|
<div class="tool-header">
|
|
<span class="material-symbols-rounded tool-header-icon security">lock</span>
|
|
<span class="tool-header-text" th:text="#{addPassword.header}"></span>
|
|
</div>
|
|
<form th:action="@{'api/v1/security/add-password'}" method="post" enctype="multipart/form-data">
|
|
<div class="mb-3">
|
|
<label th:text="#{addPassword.selectText.1}"></label>
|
|
<div th:replace="~{fragments/common :: fileSelector(name='fileInput', multipleInputsForSingleRequest=false, accept='application/pdf')}"></div>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label th:text="#{addPassword.selectText.14}"></label> <input type="password" class="form-control" id="ownerPassword" name="ownerPassword">
|
|
<small class="form-text text-muted" th:text="#{addPassword.selectText.15}"></small>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label th:text="#{addPassword.selectText.2}"></label> <input type="password" class="form-control" id="password" name="password">
|
|
<small class="form-text text-muted" th:text="#{addPassword.selectText.16}"></small>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label th:text="#{addPassword.selectText.3}"></label> <select class="form-control" id="keyLength" name="keyLength">
|
|
<option value="40">40</option>
|
|
<option value="128">128</option>
|
|
<option value="256">256</option>
|
|
</select>
|
|
<small class="form-text text-muted" th:text="#{addPassword.selectText.4}"></small>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label class="mb-2" th:text="#{addPassword.selectText.5}"></label>
|
|
<div class="form-check ms-3">
|
|
<input type="checkbox" id="preventAssembly" name="preventAssembly">
|
|
<label for="preventAssembly" th:text="#{addPassword.selectText.6}"></label>
|
|
</div>
|
|
<div class="form-check ms-3">
|
|
<input type="checkbox" id="preventExtractContent" name="preventExtractContent">
|
|
<label for="preventExtractContent" th:text="#{addPassword.selectText.7}"></label>
|
|
</div>
|
|
<div class="form-check ms-3">
|
|
<input type="checkbox" id="preventExtractForAccessibility" name="preventExtractForAccessibility">
|
|
<label for="preventExtractForAccessibility" th:text="#{addPassword.selectText.8}"></label>
|
|
</div>
|
|
<div class="form-check ms-3">
|
|
<input type="checkbox" id="preventFillInForm" name="preventFillInForm">
|
|
<label for="preventFillInForm" th:text="#{addPassword.selectText.9}"></label>
|
|
</div>
|
|
<div class="form-check ms-3">
|
|
<input type="checkbox" id="preventModify" name="preventModify">
|
|
<label for="preventModify" th:text="#{addPassword.selectText.10}"></label>
|
|
</div>
|
|
<div class="form-check ms-3">
|
|
<input type="checkbox" id="preventModifyAnnotations" name="preventModifyAnnotations">
|
|
<label for="preventModifyAnnotations" th:text="#{addPassword.selectText.11}"></label>
|
|
</div>
|
|
<div class="form-check ms-3">
|
|
<input type="checkbox" id="preventPrinting" name="preventPrinting">
|
|
<label for="preventPrinting" th:text="#{addPassword.selectText.12}"></label>
|
|
</div>
|
|
<div class="form-check ms-3">
|
|
<input type="checkbox" id="preventPrintingFaithful" name="preventPrintingFaithful">
|
|
<label for="preventPrintingFaithful" th:text="#{addPassword.selectText.13}"></label>
|
|
</div>
|
|
</div>
|
|
<br>
|
|
<div class="mb-3 text-left">
|
|
<button type="submit" id="submitBtn" class="btn btn-primary" th:text="#{addPassword.submit}"></button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<th:block th:insert="~{fragments/footer.html :: footer}"></th:block>
|
|
</div>
|
|
</body>
|
|
</html> |