mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-06-22 15:35:03 +00:00
formatting
This commit is contained in:
parent
f0810f3952
commit
748392cd29
@ -202,8 +202,7 @@ public class EndpointConfiguration {
|
|||||||
// qpdf
|
// qpdf
|
||||||
addEndpointToGroup("qpdf", "compress-pdf");
|
addEndpointToGroup("qpdf", "compress-pdf");
|
||||||
addEndpointToGroup("qpdf", "pdf-to-pdfa");
|
addEndpointToGroup("qpdf", "pdf-to-pdfa");
|
||||||
|
|
||||||
|
|
||||||
addEndpointToGroup("tesseract", "ocr-pdf");
|
addEndpointToGroup("tesseract", "ocr-pdf");
|
||||||
|
|
||||||
// Java
|
// Java
|
||||||
|
@ -326,7 +326,7 @@ public class ApplicationProperties {
|
|||||||
private int calibreSessionLimit;
|
private int calibreSessionLimit;
|
||||||
private int qpdfSessionLimit;
|
private int qpdfSessionLimit;
|
||||||
private int tesseractSessionLimit;
|
private int tesseractSessionLimit;
|
||||||
|
|
||||||
public int getQpdfSessionLimit() {
|
public int getQpdfSessionLimit() {
|
||||||
return qpdfSessionLimit > 0 ? qpdfSessionLimit : 2;
|
return qpdfSessionLimit > 0 ? qpdfSessionLimit : 2;
|
||||||
}
|
}
|
||||||
@ -334,7 +334,7 @@ public class ApplicationProperties {
|
|||||||
public int getTesseractSessionLimit() {
|
public int getTesseractSessionLimit() {
|
||||||
return tesseractSessionLimit > 0 ? tesseractSessionLimit : 1;
|
return tesseractSessionLimit > 0 ? tesseractSessionLimit : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getLibreOfficeSessionLimit() {
|
public int getLibreOfficeSessionLimit() {
|
||||||
return libreOfficeSessionLimit > 0 ? libreOfficeSessionLimit : 1;
|
return libreOfficeSessionLimit > 0 ? libreOfficeSessionLimit : 1;
|
||||||
}
|
}
|
||||||
@ -378,7 +378,7 @@ public class ApplicationProperties {
|
|||||||
public long getQpdfTimeoutMinutes() {
|
public long getQpdfTimeoutMinutes() {
|
||||||
return qpdfTimeoutMinutes > 0 ? qpdfTimeoutMinutes : 30;
|
return qpdfTimeoutMinutes > 0 ? qpdfTimeoutMinutes : 30;
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getLibreOfficeTimeoutMinutes() {
|
public long getLibreOfficeTimeoutMinutes() {
|
||||||
return libreOfficeTimeoutMinutes > 0 ? libreOfficeTimeoutMinutes : 30;
|
return libreOfficeTimeoutMinutes > 0 ? libreOfficeTimeoutMinutes : 30;
|
||||||
}
|
}
|
||||||
|
@ -75,15 +75,15 @@ public class ProcessExecutor {
|
|||||||
.getSessionLimit()
|
.getSessionLimit()
|
||||||
.getInstallAppSessionLimit();
|
.getInstallAppSessionLimit();
|
||||||
case TESSERACT ->
|
case TESSERACT ->
|
||||||
applicationProperties
|
applicationProperties
|
||||||
.getProcessExecutor()
|
.getProcessExecutor()
|
||||||
.getSessionLimit()
|
.getSessionLimit()
|
||||||
.getTesseractSessionLimit();
|
.getTesseractSessionLimit();
|
||||||
case QPDF ->
|
case QPDF ->
|
||||||
applicationProperties
|
applicationProperties
|
||||||
.getProcessExecutor()
|
.getProcessExecutor()
|
||||||
.getSessionLimit()
|
.getSessionLimit()
|
||||||
.getQpdfSessionLimit();
|
.getQpdfSessionLimit();
|
||||||
case CALIBRE ->
|
case CALIBRE ->
|
||||||
applicationProperties
|
applicationProperties
|
||||||
.getProcessExecutor()
|
.getProcessExecutor()
|
||||||
@ -119,16 +119,16 @@ public class ProcessExecutor {
|
|||||||
.getTimeoutMinutes()
|
.getTimeoutMinutes()
|
||||||
.getInstallAppTimeoutMinutes();
|
.getInstallAppTimeoutMinutes();
|
||||||
case TESSERACT ->
|
case TESSERACT ->
|
||||||
applicationProperties
|
applicationProperties
|
||||||
.getProcessExecutor()
|
.getProcessExecutor()
|
||||||
.getTimeoutMinutes()
|
.getTimeoutMinutes()
|
||||||
.getTesseractTimeoutMinutes();
|
.getTesseractTimeoutMinutes();
|
||||||
case QPDF ->
|
case QPDF ->
|
||||||
applicationProperties
|
applicationProperties
|
||||||
.getProcessExecutor()
|
.getProcessExecutor()
|
||||||
.getTimeoutMinutes()
|
.getTimeoutMinutes()
|
||||||
.getQpdfTimeoutMinutes();
|
.getQpdfTimeoutMinutes();
|
||||||
case CALIBRE ->
|
case CALIBRE ->
|
||||||
applicationProperties
|
applicationProperties
|
||||||
.getProcessExecutor()
|
.getProcessExecutor()
|
||||||
.getTimeoutMinutes()
|
.getTimeoutMinutes()
|
||||||
|
@ -1266,4 +1266,4 @@ splitByChapters.submit=Split PDF
|
|||||||
releases.title=Release Notes
|
releases.title=Release Notes
|
||||||
releases.header=Release Notes
|
releases.header=Release Notes
|
||||||
releases.current.version=Current Release
|
releases.current.version=Current Release
|
||||||
releases.note=All release notes are only available in english
|
releases.note=Release notes are only available in English
|
||||||
|
Loading…
x
Reference in New Issue
Block a user