[Bug]: Fonts error converting PDF/A in TimesNewRoman
Installation Method
Docker fat
The Problem
When converting a PDF to PDF/A with the latest version (and 0.41.0 too) if the input PDF is in Times New Roman the output is using Noto font which doesn't have metric compatibility, resulting in a corrupted layout. Installing Liberation Fonts in libreoffice and not only in PDF.js solved the issue: COPY src/main/resources/static/pdfjs/standard_fonts/*.ttf /usr/share/fonts/opentype/liberation Anyway it should be great to install the Monospace versions too
Version of Stirling-PDF
0.42.0
Last Working Version of Stirling-PDF
No response
Page Where the Problem Occurred
/pdf-to-pdfa
Docker Configuration
stirling-pdf-latest:
hostname: "stirling-pdf-latest"
container_name: stack_stirling-appsrv-latest
networks:
- webservices
image: stirlingtools/stirling-pdf:latest-fat
volumes:
- /app/data_persistent/stirling-pdf-latest/trainingData:/usr/share/tessdata #Required for extra OCR languages
- /app/data_persistent/stirling-pdf-latest/extraConfigs:/configs
- /app/data_persistent/stirling-pdf-latest/customFiles:/customFiles/
- /app/data_persistent/stirling-pdf-latest/logs:/logs/
environment:
- DOCKER_ENABLE_SECURITY=true
- INSTALL_BOOK_AND_ADVANCED_HTML_OPS=false
- LANGS=en_US,it-IT,de-DE
- SYSTEM_ROOTURIPATH=/pdf-latest
Relevant Log Output
Additional Information
No response
Browsers Affected
No response
No Duplicate of the Issue
- [x] I have verified that there are no existing issues raised related to my problem.
Seems like a fine addition to our docker image if you wish to raise a PR
We try install fonts within the docker.fat image This is what users should use for font compatibility If the font is missing from there and fat doesn't work feel free to raise PR!
I created a pull request (3005)