Add page number input field to split-by-sections tool (UI only)

This commit is contained in:
Ping Lin 2025-08-02 21:46:26 +01:00
parent a5d219ed05
commit d9db298bc2
2 changed files with 9 additions and 2 deletions

View File

@ -806,7 +806,7 @@ home.overlay-pdfs.desc=Overlays PDFs on-top of another PDF
overlay-pdfs.tags=Overlay
home.split-by-sections.title=Split PDF by Sections
home.split-by-sections.desc=Divide each page of a PDF into smaller horizontal and vertical sections
home.split-by-sections.desc=Split the content of specified PDF pages into smaller horizontal and vertical sections.
split-by-sections.tags=Section Split, Divide, Customize, Customise
home.AddStampRequest.title=Add Stamp to PDF
@ -1586,6 +1586,8 @@ split-by-sections.horizontal.placeholder=Enter number of horizontal divisions
split-by-sections.vertical.placeholder=Enter number of vertical divisions
split-by-sections.submit=Split PDF
split-by-sections.merge=Merge Into One PDF
split-by-sections.pageToSplit=Pages to split (Enter a comma-separated list of page numbers) :
split-by-sections.pageToSplit.placeholder=(e.g. 1,2,6 or 1-10,15-30)
#printFile

View File

@ -20,6 +20,11 @@
</div>
<form method="post" enctype="multipart/form-data" th:action="@{'/api/v1/general/split-pdf-by-sections'}">
<div th:replace="~{fragments/common :: fileSelector(name='fileInput', multipleInputsForSingleRequest=false, accept='application/pdf')}"></div>
<div class="mb-3">
<label for="pageToSplit" th:text="#{split-by-sections.pageToSplit}"></label>
<input type="text" class="form-control" id="pageToSplit" name="pageNumbers"
th:placeholder="#{split-by-sections.pageToSplit.placeholder}" required>
</div>
<label for="horizontalDivisions" th:text="#{split-by-sections.horizontal.label}">Horizontal Divisions</label>
<input type="number" id="horizontalDivisions" name="horizontalDivisions" class="form-control" min="0" max="300" value="0" required th:placeholder="#{split-by-sections.horizontal.placeholder}">
<br>