mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2024-11-23 15:21:25 +01:00
b13b925bf0
* fix: use gs to convert to pdfa and return output by reading file as bytes * feat: update translation files for pdfToPDFA.credit * Hardening suggestions for Stirling-PDF / fix_pdfa_conversion (#1908) Switch order of literals to prevent NullPointerException Co-authored-by: pixeebot[bot] <104101892+pixeebot[bot]@users.noreply.github.com> --------- Co-authored-by: pixeebot[bot] <104101892+pixeebot[bot]@users.noreply.github.com>
11 lines
246 B
Bash
11 lines
246 B
Bash
#!/bin/bash
|
|
|
|
translation_key="pdfToPDFA.credit"
|
|
old_value="OCRmyPDF"
|
|
new_value="ghostscript"
|
|
|
|
for file in ../src/main/resources/messages_*.properties; do
|
|
sed -i "/^$translation_key=/s/$old_value/$new_value/" "$file"
|
|
echo "Updated $file"
|
|
done
|