This commit is contained in:
Anthony Stirling
2024-01-01 14:46:19 +00:00
parent b5423f3434
commit 03a8f45128
3 changed files with 50 additions and 55 deletions

View File

@@ -70,7 +70,7 @@ public class SplitPdfBySectionsController {
for (int i = 0; i < splitDocumentsBoas.size(); i++) {
ByteArrayOutputStream baos = splitDocumentsBoas.get(i);
int sectionNum = (i % (horiz * verti)) + 1;
String fileName = filename + "_" + pageNum + "_" + sectionNum + ".pdf";
String fileName = filename + "_" + pageNum + "_" + sectionNum + ".pdf";
byte[] pdf = baos.toByteArray();
ZipEntry pdfEntry = new ZipEntry(fileName);
zipOut.putNextEntry(pdfEntry);
@@ -137,7 +137,4 @@ public class SplitPdfBySectionsController {
return splitDocuments;
}
}