Stirling-PDF/scripts
Anthony Stirling d2677e64dd
OCR fix and Mobile QR changes (#5433)
# Description of Changes
## OCR / Tesseract path handling

Makes tessDataPath resolution deterministic with priority: config >
TESSDATA_PREFIX env > default.
Updates language discovery to use runtimePathConfig.getTessDataPath()
instead of raw config value.
Ensure default OCR dir is debian based not alpine

## Mobile scanner: feature gating + new conversion settings
Adds system.mobileScannerSettings (convert-to-PDF + resolution + page
format + stretch) exposed via backend config and configurable in the
proprietary admin UI.
Enforces enableMobileScanner on the MobileScannerController endpoints
(403 when disabled).
Frontend mobile upload flow can now optionally convert received images
to PDF (pdf-lib + canvas).

## Desktop/Tauri connectivity work
Expands tauri-plugin-http permissions and enables dangerous-settings.
Adds a very comprehensive multi-stage server connection diagnostic
routine (with lots of logging).


<img width="688" height="475" alt="image"
src="https://github.com/user-attachments/assets/6f9c1aec-58c7-449b-96b0-52f25430d741"
/>


---

## Checklist

### General

- [ ] I have read the [Contribution
Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md)
- [ ] I have read the [Stirling-PDF Developer
Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/DeveloperGuide.md)
(if applicable)
- [ ] I have read the [How to add new languages to
Stirling-PDF](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/HowToAddNewLanguage.md)
(if applicable)
- [ ] I have performed a self-review of my own code
- [ ] My changes generate no new warnings

### Documentation

- [ ] I have updated relevant docs on [Stirling-PDF's doc
repo](https://github.com/Stirling-Tools/Stirling-Tools.github.io/blob/main/docs/)
(if functionality has heavily changed)
- [ ] I have read the section [Add New Translation
Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/HowToAddNewLanguage.md#add-new-translation-tags)
(for new translation tags only)

### Translations (if applicable)

- [ ] I ran
[`scripts/counter_translation.py`](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/docs/counter_translation.md)

### UI Changes (if applicable)

- [ ] Screenshots or videos demonstrating the UI changes are attached
(e.g., as comments or direct attachments in the PR)

### Testing (if applicable)

- [ ] I have tested my changes locally. Refer to the [Testing
Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/DeveloperGuide.md#6-testing)
for more details.
2026-01-12 11:18:37 +00:00
..
translations feat(translations): add command to remove unused translation keys (#5292) 2025-12-25 23:24:30 +00:00
analyze_pdf_json.py 🤖 format everything with pre-commit by stirlingbot (#5144) 2025-12-22 15:44:38 +00:00
build-tauri-jlink.bat Desktop Self-hosted guidance improvements (#5060) 2025-11-28 15:55:37 +00:00
build-tauri-jlink.sh Desktop Self-hosted guidance improvements (#5060) 2025-11-28 15:55:37 +00:00
convert_cff_to_ttf.py 🤖 format everything with pre-commit by stirlingbot (#5144) 2025-12-22 15:44:38 +00:00
counter_translation_v3.py V1 merge (#5193) 2025-12-21 10:40:32 +00:00
download_pdf_samples.py 🤖 format everything with pre-commit by stirlingbot (#5144) 2025-12-22 15:44:38 +00:00
download-security-jar.sh Fix for security not downloading and running correctly in V1.0.0 (#3902) 2025-07-07 23:54:58 +01:00
generate_requirements.bat V1 merge (#5193) 2025-12-21 10:40:32 +00:00
harvest_type3_fonts.py 🤖 format everything with pre-commit by stirlingbot (#5144) 2025-12-22 15:44:38 +00:00
ignore_translation.toml V1 merge (#5193) 2025-12-21 10:40:32 +00:00
index_type3_catalogue.py 🤖 format everything with pre-commit by stirlingbot (#5144) 2025-12-22 15:44:38 +00:00
init-without-ocr.sh OOM logs (#5405) 2026-01-07 17:35:45 +00:00
init.sh OCR fix and Mobile QR changes (#5433) 2026-01-12 11:18:37 +00:00
installFonts.sh print (WIP), fake scan (WIP) and text conversion for ultra-lite (#1098) 2024-04-21 23:06:44 +01:00
PropSync.java refactor: move modules under app/ directory and update file paths (#3938) 2025-07-14 20:53:11 +01:00
remove_translation_keys.sh refactor: move modules under app/ directory and update file paths (#3938) 2025-07-14 20:53:11 +01:00
replace_translation_line.sh refactor: move modules under app/ directory and update file paths (#3938) 2025-07-14 20:53:11 +01:00
RestartHelper.java settingsPage Init selfhost (#4734) 2025-10-28 14:47:41 +00:00
summarize_type3_signatures.py 🤖 format everything with pre-commit by stirlingbot (#5144) 2025-12-22 15:44:38 +00:00
type3_to_cff.py 🤖 format everything with pre-commit by stirlingbot (#5144) 2025-12-22 15:44:38 +00:00
update_type3_library.py 🤖 format everything with pre-commit by stirlingbot (#5144) 2025-12-22 15:44:38 +00:00