mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-02-02 00:16:34 +01:00
104 lines
3.8 KiB
HTML
104 lines
3.8 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="en" xmlns:th="http://www.thymeleaf.org">
|
||
|
|
||
|
<th:block th:insert="~{fragments/common :: head(title='Add Password')}"></th:block>
|
||
|
|
||
|
<body> <div id="page-container">
|
||
|
<div id="content-wrap">
|
||
|
<div th:insert="~{fragments/navbar.html :: navbar}"></div>
|
||
|
<br>
|
||
|
<br>
|
||
|
<div class="container">
|
||
|
<div class="row justify-content-center">
|
||
|
<div class="col-md-6">
|
||
|
<h2>Add password (Encrypt)</h2>
|
||
|
|
||
|
<form action="add-password" method="post"
|
||
|
enctype="multipart/form-data">
|
||
|
<div class="form-group">
|
||
|
<label>Select PDF to encrypt</label>
|
||
|
<div class="custom-file">
|
||
|
<input type="file" class="custom-file-input" id="fileInput"
|
||
|
name="fileInput" required> <label
|
||
|
class="custom-file-label">Choose PDF</label>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label>Password</label> <input type="password"
|
||
|
class="form-control" id="password" name="password" required>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label>Encryption Key Length</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">Higher values are
|
||
|
stronger, but lower values have better compatibility.</small>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label>Permissions to set</label>
|
||
|
<div class="form-check">
|
||
|
<input class="form-check-input" type="checkbox"
|
||
|
id="canAssembleDocument" name="canAssembleDocument"> <label
|
||
|
class="form-check-label" for="canAssembleDocument">
|
||
|
Prevent assembly of document </label>
|
||
|
</div>
|
||
|
<div class="form-check">
|
||
|
<input class="form-check-input" type="checkbox"
|
||
|
id="canExtractContent" name="canExtractContent"> <label
|
||
|
class="form-check-label" for="canExtractContent">
|
||
|
Prevent content extraction </label>
|
||
|
</div>
|
||
|
<div class="form-check">
|
||
|
<input class="form-check-input" type="checkbox"
|
||
|
id="canExtractForAccessibility"
|
||
|
name="canExtractForAccessibility"> <label
|
||
|
class="form-check-label" for="canExtractForAccessibility">
|
||
|
Prevent extraction for accessibility </label>
|
||
|
</div>
|
||
|
<div class="form-check">
|
||
|
<input class="form-check-input" type="checkbox"
|
||
|
id="canFillInForm" name="canFillInForm"> <label
|
||
|
class="form-check-label" for="canFillInForm"> Prevent
|
||
|
filling in form </label>
|
||
|
</div>
|
||
|
<div class="form-check">
|
||
|
<input class="form-check-input" type="checkbox" id="canModify"
|
||
|
name="canModify"> <label class="form-check-label"
|
||
|
for="canModify"> Prevent modification </label>
|
||
|
</div>
|
||
|
<div class="form-check">
|
||
|
<input class="form-check-input" type="checkbox"
|
||
|
id="canModifyAnnotations" name="canModifyAnnotations"> <label
|
||
|
class="form-check-label" for="canModifyAnnotations">
|
||
|
Prevent annotation modification </label>
|
||
|
</div>
|
||
|
<div class="form-check">
|
||
|
<input class="form-check-input" type="checkbox" id="canPrint"
|
||
|
name="canPrint"> <label class="form-check-label"
|
||
|
for="canPrint"> Prevent printing </label>
|
||
|
</div>
|
||
|
<div class="form-check">
|
||
|
<input class="form-check-input" type="checkbox"
|
||
|
id="canPrintFaithful" name="canPrintFaithful"> <label
|
||
|
class="form-check-label" for="canPrintFaithful"> Prevent
|
||
|
printing different formats </label>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
<br />
|
||
|
<div class="form-group text-center">
|
||
|
<button type="submit" class="btn btn-primary">Encrypt</button>
|
||
|
</div>
|
||
|
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div th:insert="~{fragments/footer.html :: footer}"></div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|