This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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: |