Browse Source

setting up wkhtmltopdf

Jhonny Mertz 2 years ago
parent
commit
804b644538
1 changed files with 9 additions and 1 deletions
  1. 9 1
      .github/workflows/build.yml

+ 9 - 1
.github/workflows/build.yml

@@ -9,7 +9,15 @@ jobs:
     steps:
     steps:
       - uses: actions/checkout@v3
       - uses: actions/checkout@v3
       - name: Install wkthtmltopdf
       - name: Install wkthtmltopdf
-        run: sudo apt-get install xvfb libfontconfig wkhtmltopdf
+        run: |
+          # Uncomment the next line if you have installed wkhtmltopdf
+          # sudo apt remove wkhtmltopdf
+          cd ~
+          # Select an appropriate link for your system (32 or 64 bit) from the page https://wkhtmltopdf.org/downloads.html and past to the next line
+          wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_amd64.deb
+          tar xvf wkhtmltox*.tar.xz
+          sudo mv wkhtmltox/bin/wkhtmlto* /usr/bin
+          sudo apt-get install -y openssl build-essential libssl-dev libxrender-dev git-core libx11-dev libxext-dev libfontconfig1-dev libfreetype6-dev fontconfig
       - name: Set up JDK 11
       - name: Set up JDK 11
         uses: actions/setup-java@v3
         uses: actions/setup-java@v3
         with:
         with: