feat: add support for arabic letters in order labels PDF #163
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces updates to dependencies, configuration files, and functionality to improve Arabic text rendering in PDFs, enhance security settings, and modernize configurations. The most important changes include upgrading the
laravel-dompdfdependency, adding Arabic text handling viaar-php, modernizing thedompdfconfiguration, and implementing a utility function for Arabic text correction.Dependency Updates:
composer.json: Upgradedbarryvdh/laravel-dompdfto^3.1and addedkhaled.alshamaa/ar-phpfor Arabic text processing. [1] [2]Configuration Modernization:
server/config/dompdf.php: Modernized the configuration by updating syntax (e.g., single quotes), adding new options likeallowed_protocolsandartifactPathValidation, and changing defaults such aspdf_backendtoCPDF. Security-related settings likeenable_remotewere set tofalseby default. [1] [2] [3] [4] [5] [6] [7] [8]Arabic Text Rendering Enhancements:
server/src/Support/Utils.php: AddedfixArabicInHTMLmethod to correct Arabic glyphs in HTML content for accurate rendering.server/src/Models/Entity.php,server/src/Models/Order.php,server/src/Models/Waypoint.php: UpdatedpdfLabelmethods to useUtils::fixArabicInHTMLfor Arabic text correction in PDFs. [1] [2] [3]Styling Updates:
server/resources/views/labels/default.php,server/resources/views/labels/waypoint-label.php: Addedfont-family: DejaVu Sans, serifandfont-optical-sizing: autofor better font rendering in PDF labels. [1] [2]Before

After
