Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib pdf generation - replace deprecatd wkhtml with alternative solution #2322

Open
10 of 12 tasks
tpurschke opened this issue Jan 25, 2024 · 6 comments
Open
10 of 12 tasks
Assignees
Labels
dependencies Pull requests that update a dependency file external Depends on an external project

Comments

@tpurschke
Copy link
Contributor

tpurschke commented Jan 25, 2024

wkhtml project has been archived end of 2023: https://wkhtmltopdf.org/status.html

possible replacements:

Testing: dotnet add package Microsoft.Playwright.NUnit

Current favorite: https://github.com/hardkoded/puppeteer-sharp.git

  • Replace wkhtml in all pages
  • Remove wkhtml from projects
  • Make paper format dropdowns work with puppeteer
  • The binaries should be downloaded on install
  • ( Haukcode.WkHtmlToPdfDotNet ) - only remove if puppeteer works 100%
@tpurschke tpurschke added the external Depends on an external project label Jan 25, 2024
@tpurschke tpurschke added this to the next consolidation issues milestone Jan 25, 2024
@tpurschke tpurschke added the dependencies Pull requests that update a dependency file label Jan 26, 2024
@tpurschke tpurschke changed the title lib pdf generation - replace wkhtml with WeasyPrint lib pdf generation - replace wkhtml with e.g. WeasyPrint Feb 1, 2024
@tpurschke tpurschke changed the title lib pdf generation - replace wkhtml with e.g. WeasyPrint lib pdf generation - replace deprecatd wkhtml with alternative solution Apr 30, 2024
@SolidProgramming SolidProgramming self-assigned this Sep 3, 2024
@SolidProgramming
Copy link
Contributor

SolidProgramming commented Sep 9, 2024

Maybe this is worth testing...

Youtube.com | Nick Chapsas | The Free Way to Create Awesome PDFs

@SolidProgramming SolidProgramming added the in progress assignee is working on it label Sep 10, 2024
SolidProgramming added a commit to SolidProgramming/firewall-orchestrator that referenced this issue Sep 10, 2024
SolidProgramming added a commit to SolidProgramming/firewall-orchestrator that referenced this issue Sep 13, 2024
[~] Changed PDF Test to use puppeteer
CactuseSecurity#2322
@SolidProgramming SolidProgramming removed the in progress assignee is working on it label Sep 16, 2024
@SolidProgramming
Copy link
Contributor

SolidProgramming commented Sep 16, 2024

Reopened as the code in PR #2536 doesn't work for Ubuntu 24.04

Added new tasks...

@SolidProgramming
Copy link
Contributor

@SolidProgramming
Copy link
Contributor

SolidProgramming commented Dec 12, 2024

Debian/Ubuntu Packages für chrome: https://source.chromium.org/chromium/chromium/src/+/main:chrome/installer/linux/debian/dist_package_versions.json

sudo apt-get install \ libasound2=1.2.8-1+b1 \ libatk-bridge2.0-0=2.46.0-5 \ libatk1.0-0=2.46.0-5 \ libatspi2.0-0=2.46.0-5 \ libc6=2.36-9+deb12u7 \ libcairo2=1.16.0-7 \ libcups2=2.4.2-3+deb12u5 \ libdbus-1-3=1.14.10-1~deb12u1 \ libdrm2=2.4.114-1+b1 \ libexpat1=2.5.0-1 \ libgbm1=22.3.6-1+deb12u1 \ libglib2.0-0=2.74.6-2+deb12u2 \ libnspr4=2:4.35-1 \ libnss3=2:3.87.1-1 \ libpango-1.0-0=1.50.12+ds-1 \ libpangocairo-1.0-0=1.50.12+ds-1 \ libstdc++6=12.2.0-14 \ libudev1=252.26-1~deb12u2 \ libuuid1=2.38.1-5+deb12u1 \ libx11-6=2:1.8.4-2+deb12u2 \ libx11-xcb1=2:1.8.4-2+deb12u2 \ libxcb-dri3-0=1.15-1 \ libxcb1=1.15-1 \ libxcomposite1=1:0.4.5-1 \ libxcursor1=1:1.2.1-1 \ libxdamage1=1:1.1.6-1 \ libxext6=2:1.3.4-1+b1 \ libxfixes3=1:6.0.0-2 \ libxi6=2:1.8-1+b1 \ libxkbcommon0=1.5.0-1 \ libxrandr2=2:1.5.2-2+b1 \ libxrender1=1:0.9.10-1.1 \ libxshmfence1=1.3-1 \ libxss1=1:1.2.3-1 \ libxtst6=2:1.2.3-1.1

ca-certificates
fonts-liberation
libasound2
libatk-bridge2.0-0
libatk1.0-0
libc6
libcairo2
libcups2
libdbus-1-3
libexpat1
libfontconfig1
libgbm1
libgcc1
libglib2.0-0
libgtk-3-0
libnspr4
libnss3
libpango-1.0-0
libpangocairo-1.0-0
libstdc++6
libx11-6
libx11-xcb1
libxcb1
libxcomposite1
libxcursor1
libxdamage1
libxext6
libxfixes3
libxi6
libxrandr2
libxrender1
libxss1
libxtst6
lsb-release
wget
xdg-utils

@SolidProgramming
Copy link
Contributor

Chrome currently does not provide arm64 binaries for Linux. There are only arm64 binaries for Mac ARM. That means that Linux binaries downloaded by default will not work on Linux arm64.

@SolidProgramming
Copy link
Contributor

SolidProgramming commented Dec 12, 2024

@alf-cactus alf-cactus self-assigned this Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file external Depends on an external project
Projects
None yet
Development

No branches or pull requests

4 participants