Skip to content

Instantly share code, notes, and snippets.

View Mosallamy's full-sized avatar
🤿

Khalid Almosallamy Mosallamy

🤿
View GitHub Profile
# Soruce: https://www.youtube.com/watch?v=goToXTC96Co&list=PL-osiE80TeTs4UjLw5MM6OjgkjFeUxCYH&index=13
# ----------------------------------- Server Setup -----------------------------------
# Update server
apt update && apt upgrade
# Set hostname
hostnamectl set-hostname <hostname>
@Mosallamy
Mosallamy / Arabic-Wkhtmltopdf.sh
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: