1
0
mirror of https://github.com/Stirling-Tools/Stirling-PDF.git synced 2024-11-04 15:00:14 +01:00

compress fix

This commit is contained in:
Anthony Stirling 2023-03-22 19:24:43 +00:00
parent 82da3c0027
commit b5a59ddb6a
6 changed files with 36 additions and 6 deletions

View File

@ -5,7 +5,7 @@ plugins {
} }
group = 'stirling.software' group = 'stirling.software'
version = '0.4.0' version = '0.4.1'
sourceCompatibility = '17' sourceCompatibility = '17'
repositories { repositories {

View File

@ -80,6 +80,8 @@ public class CompressController {
// Prepare the OCRmyPDF command // Prepare the OCRmyPDF command
List<String> command = new ArrayList<>(); List<String> command = new ArrayList<>();
command.add("ocrmypdf"); command.add("ocrmypdf");
command.add("--skip-text");
command.add("--tesseract-timeout=0");
command.add("--optimize"); command.add("--optimize");
command.add(String.valueOf(optimizeLevel)); command.add(String.valueOf(optimizeLevel));

View File

@ -127,8 +127,15 @@ addImage.submit=إضافة صورة
#compress #compress
compress.title=ضغط compress.title=ضغط
compress.header=ضغط ملف PDF compress.header=\u0636\u063A\u0637 PDF
compress.compressLevel=القيمة بين 1 و 100 (يتم تقليل 1 إلى أقصى حد) compress.credit=\u062A\u0633\u062A\u062E\u062F\u0645 \u0647\u0630\u0647 \u0627\u0644\u062E\u062F\u0645\u0629 OCRmyPDF \u0644\u0636\u063A\u0637 / \u062A\u062D\u0633\u064A\u0646 PDF.
compress.selectText.1 = \u0645\u0633\u062A\u0648\u0649 \u0627\u0644\u062A\u062D\u0633\u064A\u0646:
compress.selectText.2=0 (\u0628\u062F\u0648\u0646 \u062A\u062D\u0633\u064A\u0646)
compress.selectText.3=1 (\u0627\u0641\u062A\u0631\u0627\u0636\u064A\u060C \u062A\u062D\u0633\u064A\u0646 \u0628\u062F\u0648\u0646 \u0641\u0642\u062F\u0627\u0646)
compress.selectText.4=2 (\u062A\u062D\u0633\u064A\u0646 \u0636\u064A\u0627\u0639)
compress.selectText.5=3 (\u062A\u062D\u0633\u064A\u0646 \u0636\u064A\u0627\u0639 \u060C \u0623\u0643\u062B\u0631 \u0639\u062F\u0648\u0627\u0646\u064A\u0629)
compress.selectText.6=\u062A\u0645\u0643\u064A\u0646 \u0639\u0631\u0636 \u0627\u0644\u0648\u064A\u0628 \u0627\u0644\u0633\u0631\u064A\u0639 (\u062E\u0637\u064A PDF)
compress.selectText.7=\u062A\u0645\u0643\u064A\u0646 \u062A\u0631\u0645\u064A\u0632 JBIG2 \u0627\u0644\u0645\u0641\u0642\u0648\u062F
compress.submit=ضغط compress.submit=ضغط

View File

@ -127,7 +127,14 @@ addImage.submit=Bild hinzufügen
#compress #compress
compress.title=Komprimieren compress.title=Komprimieren
compress.header=PDF komprimieren compress.header=PDF komprimieren
compress.compressLevel=Wert zwischen 1 und 100 (1 ist am meisten komprimiert) compress.credit=Dieser Dienst verwendet OCRmyPDF für die PDF-Komprimierung/-Optimierung.
compress.selectText.1=Optimierungsstufe:
compress.selectText.2=0 (Keine Optimierung)
compress.selectText.3=1 (Standard, verlustfreie Optimierung)
compress.selectText.4=2 (Verlustbehaftete Optimierung)
compress.selectText.5=3 (Verlustbehaftete Optimierung, aggressiver)
compress.selectText.6=Schnelle Webansicht aktivieren (PDF linearisieren)
compress.selectText.7=Verlustbehaftete JBIG2-Kodierung aktivieren
compress.submit=Komprimieren compress.submit=Komprimieren

View File

@ -124,7 +124,14 @@ addImage.submit=Add image
#compress #compress
compress.title=Compress compress.title=Compress
compress.header=Compress PDF compress.header=Compress PDF
compress.compressLevel=Value between 1 and 100 (1 being most reduced) compress.credit=This service uses OCRmyPDF for PDF Compress/Optimisation.
compress.selectText.1=Optimization level:
compress.selectText.2=0 (No optimization)
compress.selectText.3=1 (Default, lossless optimization)
compress.selectText.4=2 (Lossy optimization)
compress.selectText.5=3 (Lossy optimization, more aggressive)
compress.selectText.6=Enable fast web view (linearize PDF)
compress.selectText.7=Enable lossy JBIG2 encoding
compress.submit=Compress compress.submit=Compress

View File

@ -133,7 +133,14 @@ addImage.submit=Ajouter une image
#compress #compress
compress.title=Compresser compress.title=Compresser
compress.header=Compresser le PDF compress.header=Compresser le PDF
compress.compressLevel=Valeur entre 1 et 100 (1 étant le plus réduit) compress.credit=Ce service utilise OCRmyPDF pour la compression/optimisation PDF.
compress.selectText.1=Niveau d\u2019optimisation :
compress.selectText.2=0 (pas d\u2019optimisation)
compress.selectText.3=1 (par défaut, optimisation sans perte)
compress.selectText.4=2 (optimisation avec perte)
compress.selectText.5=3 (optimisation avec perte, plus agressive)
compress.selectText.6=Activer l\u2019affichage Web rapide (linéariser PDF)
compress.selectText.7=Activer l\u2019encodage JBIG2 avec perte
compress.submit=Compresser compress.submit=Compresser