Skip to content

Instantly share code, notes, and snippets.

View Mosallamy's full-sized avatar

Khalid Almosallamy Mosallamy

View GitHub Profile
# Soruce:
# ----------------------------------- Server Setup -----------------------------------
# Update server
apt update && apt upgrade
# Set hostname
hostnamectl set-hostname <hostname>
Mosallamy /
Last active September 24, 2023 10:56
Wkhtmltopdf - Arabic PDF differs between Mac and Linux
#When I deployed my Flask HTML/CSS to PDF application on Ubuntu server, Wkhtmltopdf rendered the same PDF with different #styles.
#The Ubuntu version rendered:
# 1- long Arabic text in one line without wrapping the text
# 2- the CSS alignment was not accurate
# 3- black header was auto generated
#The solution was to uninstall the current version of Wkhtmltopdf and install Wkhtmltopdf With Patched QT Setup.
#---------------------------- Steps:
#---------------------------- A- Unistall Wkhtmltopdf: