mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-05-14 10:15:55 +00:00

Features ------------- Custom application name via APP_NAME docker env (These next 3 are done with OCRMyPDF) Extra features to OCR for scanned page cleanup (tilt/noise fixing) Adding OCR ability to read and output to text file Added Dedicated PDF/A conversion page Bug fixes -------------- Fix concurrent calls on Libre and OCRMyPDF jbig fix for compressions Fix for compression metadata issues due to forced conversions to PDF/A Other -------- Removal of UK US language and just using "English" due to extra development time Still issue with concurrent files for PDF to image... will fix later sorry
22 lines
661 B
Java
22 lines
661 B
Java
package stirling.software.SPDF.config;
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
|
|
@Configuration
|
|
public class AppConfig {
|
|
@Bean(name = "appVersion")
|
|
public String appVersion() {
|
|
String version = getClass().getPackage().getImplementationVersion();
|
|
return (version != null) ? version : "0.3.3";
|
|
}
|
|
|
|
@Bean(name = "appName")
|
|
public String appName() {
|
|
String appName = System.getProperty("AppName");
|
|
if(appName == null)
|
|
appName = System.getenv("APP_NAME");
|
|
return (appName != null) ? appName : "Stirling PDF";
|
|
}
|
|
} |