Tất cả các bản tải xuống hiện được lưu trữ thông qua các bản phát hành GitHub, vì vậy bạn có thể duyệt để tải xuống cụ thể hoặc sử dụng các liên kết bên dưới.
Không sử dụng wkhtmltopdf với bất kỳ HTML không đáng tin cậy nào-hãy chắc chắn vệ sinh bất kỳ HTML/JS do người dùng cung cấp, nếu không nó có thể dẫn đến việc tiếp quản hoàn toàn máy chủ mà nó đang chạy! Vui lòng đọc trạng thái dự án cho các chi tiết Gory. – be sure to sanitize any user-supplied HTML/JS, otherwise it can lead to complete takeover of the server it is running on! Please read the project status for the gory details.
Ổn định
Sê -ri ổn định hiện tại là 0,12,6, được phát hành vào ngày 11 tháng 6 năm 2020 - xem các thay đổi kể từ 0,12,5.0.12.6, which was released on June 11, 2020 – see changes since 0.12.5.
các cửa sổ | Trình cài đặt [Vista trở lên] | 64 bit | 32 bit | & nbsp; | ||
Lưu trữ 7Z [XP/2003 trở lên] | 64 bit | 32 bit | & nbsp; | |||
Lưu trữ 7Z [XP/2003 trở lên] | hệ điều hành Mac | 64 bit | & nbsp; | |||
Lưu trữ 7Z [XP/2003 trở lên] | hệ điều hành Mac | Trình cài đặt [10,7 trở lên] | Debian | 11 [bullseye ] | AMD64 | i386 |
ARM64 | Trình cài đặt [10,7 trở lên] | Debian | 11 [bullseye ] | AMD64 | i386 | |
ARM64 | Trình cài đặt [10,7 trở lên] | Debian | 11 [bullseye ] | & nbsp; | i386 | |
ARM64 | PPC64EL | Trình cài đặt [10,7 trở lên] | & nbsp; | 11 [bullseye ] | AMD64 | & nbsp; |
Lưu trữ 7Z [XP/2003 trở lên] | Trình cài đặt [10,7 trở lên] | & nbsp; | 11 [bullseye ] | AMD64 | & nbsp; | |
Lưu trữ 7Z [XP/2003 trở lên] | Trình cài đặt [10,7 trở lên] | Debian | 11 [bullseye ] | AMD64 | & nbsp; | |
Lưu trữ 7Z [XP/2003 trở lên] | Trình cài đặt [10,7 trở lên] | Debian | 11 [bullseye ] | & nbsp; | ||
Lưu trữ 7Z [XP/2003 trở lên] | 9 | hệ điều hành Mac | & nbsp; | Lưu trữ 7Z [XP/2003 trở lên] | & nbsp; | |
8 | hệ điều hành Mac | & nbsp; | Lưu trữ 7Z [XP/2003 trở lên] | hệ điều hành Mac | & nbsp; | |
Lưu trữ 7Z [XP/2003 trở lên] | 7 | hệ điều hành Mac | Trình cài đặt [10,7 trở lên] | Lưu trữ 7Z [XP/2003 trở lên] | hệ điều hành Mac | & nbsp; |
6 | hệ điều hành Mac | Trình cài đặt [10,7 trở lên] | & nbsp; | |||
Lưu trữ 7Z [XP/2003 trở lên] | hệ điều hành Mac | hệ điều hành Mac | & nbsp; | Lưu trữ 7Z [XP/2003 trở lên] | & nbsp; | |
Lưu trữ 7Z [XP/2003 trở lên] | hệ điều hành Mac | & nbsp; | ||||
Lưu trữ 7Z [XP/2003 trở lên] | 15 | hệ điều hành Mac | & nbsp; | Lưu trữ 7Z [XP/2003 trở lên] | hệ điều hành Mac | & nbsp; |
Lưu trữ 7Z [XP/2003 trở lên] | 20200705 | hệ điều hành Mac | & nbsp; |
Lưu trữ 7Z [XP/2003 trở lên]
hệ điều hành Mac
Trình cài đặt [10,7 trở lên]will not be accepted against the following, which are considered obsolete. It is recommended to use the latest stable release instead, and report an issue if there is a regression from a previous release.
AMD64 | 0.12.5 |
i386 | ARM64 |
PPC64EL | 0.12.4 |
Raspberrypi | 10 [buster ] |
9 [stretch ] | Ubuntu |
22.04 [jammy ] | 0.12.3 |
20.04 [focal ] | 18.04 [bionic ] |
16.04 [xenial ] | Almalinux |
x86_64 | Aarch64 |
ppc64le | 0.12.2.1 |
Centos | 0.12.2 |
i686 | 0.12.1 |
Amazon Linux | 0.12.0 |
2 [gói]
2 [Lambda Zip]
OpenSuse Leap
Arch Linux
Tất cả các gói trên được sản xuất tự động và được xây dựng trên bản phát hành bản vá hệ điều hành/phân phối mới nhất tại thời điểm phát hành.
Lưu trữ
Xin lưu ý rằng các báo cáo lỗi sẽ không được chấp nhận đối với những điều sau đây, được coi là lỗi thời. Thay vào đó, bạn nên sử dụng bản phát hành ổn định mới nhất và báo cáo một vấn đề nếu có hồi quy từ bản phát hành trước đó.
- Ngày: not every
distribution provides the same versions. This was especially the case for
0 andlayers: wkhtmltoxLayer: name: wkhtmltox description: wkhtmltox binaries for pdf/image generation package: artifact: wkhtmltox-x.xx.xxx.amazonlinux2_lambda.zip functions: PdfGenerator: handler: generatePdf.handler layers: - { Ref: WkhtmltoxLayerLambdaLayer } environment: FONTCONFIG_PATH: /opt/fonts
1, with a lot of distributions choosing between the 1.2, 1.5 and 1.6 series for the former and multiple versions oflayers: wkhtmltoxLayer: name: wkhtmltox description: wkhtmltox binaries for pdf/image generation package: artifact: wkhtmltox-x.xx.xxx.amazonlinux2_lambda.zip functions: PdfGenerator: handler: generatePdf.handler layers: - { Ref: WkhtmltoxLayerLambdaLayer } environment: FONTCONFIG_PATH: /opt/fonts
1 and/or its forklayers: wkhtmltoxLayer: name: wkhtmltox description: wkhtmltox binaries for pdf/image generation package: artifact: wkhtmltox-x.xx.xxx.amazonlinux2_lambda.zip functions: PdfGenerator: handler: generatePdf.handler layers: - { Ref: WkhtmltoxLayerLambdaLayer } environment: FONTCONFIG_PATH: /opt/fonts
3. While this could be addressed easily by linking them statically [and was actually done so for previous releases] – it broke down when it came to the next point.layers: wkhtmltoxLayer: name: wkhtmltox description: wkhtmltox binaries for pdf/image generation package: artifact: wkhtmltox-x.xx.xxx.amazonlinux2_lambda.zip functions: PdfGenerator: handler: generatePdf.handler layers: - { Ref: WkhtmltoxLayerLambdaLayer } environment: FONTCONFIG_PATH: /opt/fonts
- Phóng thích: due to OpenSSL having a bad track record then [it’s better now], distributions started aggressively upgrading their OpenSSL version and disabling unused parts of the library. This led to a situation where there was effectively zero backward compatibility and things started breaking randomly – see #3001 for a very long read of the problems faced. This was the direct motivation to create a separate packaging repository.
- 2018-06-11: not every distribution has the same glibc version. If you compile with a later version, it won’t work on a distribution which uses an older version. This was worked around earlier by using CentOS 6 [which had an old enough glibc version]. But due to the rise of Docker, the
4 image became very popular. This doesn’t use glibc at all, but the musl libc. So the generic binaries never really worked on Alpine.layers: wkhtmltoxLayer: name: wkhtmltox description: wkhtmltox binaries for pdf/image generation package: artifact: wkhtmltox-x.xx.xxx.amazonlinux2_lambda.zip functions: PdfGenerator: handler: generatePdf.handler layers: - { Ref: WkhtmltoxLayerLambdaLayer } environment: FONTCONFIG_PATH: /opt/fonts
2019-04-30
Tôi không thấy một bản tải xuống thích hợp cho nền tảng của tôi!
Nếu phân phối bạn đang sử dụng được liệt kê:
- Nhưng không phải là bản phát hành bản vá cụ thể - hãy thử nó, vì nó rất có thể hoạt động bất kể.
- Bản phát hành chính được liệt kê - chúng tôi chỉ hỗ trợ các phiên bản LTS, vì vậy hãy thử phiên bản LTS cũ hơn bản phát hành của bạn.
- Không thể cài đặt gói - bạn luôn có thể trích xuất nó [Google cho
8], nhưng bạn sẽ cần phải cài đặt các phụ thuộc.layers: wkhtmltoxLayer: name: wkhtmltox description: wkhtmltox binaries for pdf/image generation package: artifact: wkhtmltox-x.xx.xxx.amazonlinux2_lambda.zip functions: PdfGenerator: handler: generatePdf.handler layers: - { Ref: WkhtmltoxLayerLambdaLayer } environment: FONTCONFIG_PATH: /opt/fonts
Truy cập kho lưu trữ bao bì và bắt đầu một cuộc thảo luận nếu nền tảng của bạn không được liệt kê.
Làm cách nào để sử dụng nó với các thiết lập FAAS?
Bạn cần phải trích xuất gói dành riêng cho phân phối, gói nó với các thư viện, cấu hình và/hoặc phông chữ cần thiết và sau đó tải nó lên. Xem câu hỏi StackoverFlow này cho các chức năng của Google Cloud. PR được chào đón để mở rộng phần này, nếu bạn có thêm thông tin về điều này - đây không phải là một thiết lập mà người bảo trì sử dụng 😄
Làm cách nào để sử dụng nó trong AWS Lambda?
Tất cả các tệp cần thiết cho lớp Lambda được đóng gói trong một kho lưu trữ zip [Amazon Linux 2 / Lambda Zip]. Bạn có thể kiểm tra nó cục bộ bằng cách giải nén kho lưu trữ vào thư mục
layers:
wkhtmltoxLayer:
name: wkhtmltox
description: wkhtmltox binaries for pdf/image generation
package:
artifact: wkhtmltox-x.xx.xxx.amazonlinux2_lambda.zip
functions:
PdfGenerator:
handler: generatePdf.handler
layers:
- { Ref: WkhtmltoxLayerLambdaLayer }
environment:
FONTCONFIG_PATH: /opt/fonts
9 và chạy các lệnh tiếp theo:$ docker run --rm -it -v$PWD/layer:/opt amazonlinux:2
bash-4.2# LD_LIBRARY_PATH=/opt/lib FONTCONFIG_PATH=/opt/fonts /opt/bin/wkhtmltopdf //google.com/ /opt/google.pdf
Sau đó, bạn có thể tìm thấy một tệp PDF được tạo từ trang chủ Google trong thư mục
layers:
wkhtmltoxLayer:
name: wkhtmltox
description: wkhtmltox binaries for pdf/image generation
package:
artifact: wkhtmltox-x.xx.xxx.amazonlinux2_lambda.zip
functions:
PdfGenerator:
handler: generatePdf.handler
layers:
- { Ref: WkhtmltoxLayerLambdaLayer }
environment:
FONTCONFIG_PATH: /opt/fonts
9 của bạn.Để sử dụng bullseye
1 trong chức năng Lambda của bạn, bạn có thể đặt nội dung của kho lưu trữ cùng với hàm Lambda của bạn hoặc tạo một lớp. Don Tiết quên cung cấp một biến môi trường cho
layers:
wkhtmltoxLayer:
name: wkhtmltox
description: wkhtmltox binaries for pdf/image generation
package:
artifact: wkhtmltox-x.xx.xxx.amazonlinux2_lambda.zip
functions:
PdfGenerator:
handler: generatePdf.handler
layers:
- { Ref: WkhtmltoxLayerLambdaLayer }
environment:
FONTCONFIG_PATH: /opt/fonts
6 [bullseye
3].Trong trường hợp bạn sử dụng Framework Serverless, bạn có thể thêm các dòng tiếp theo vào tệp bullseye
4 của mình:
layers:
wkhtmltoxLayer:
name: wkhtmltox
description: wkhtmltox binaries for pdf/image generation
package:
artifact: wkhtmltox-x.xx.xxx.amazonlinux2_lambda.zip
functions:
PdfGenerator:
handler: generatePdf.handler
layers:
- { Ref: WkhtmltoxLayerLambdaLayer }
environment:
FONTCONFIG_PATH: /opt/fonts
Symantec báo cáo virus bullseye
5 cho các bản dựng Windows
Đây là một báo cáo dương tính giả vì Symantec chưa thấy tệp này trước đây - xem sự làm rõ này để biết chi tiết.