kestra
kestra copied to clipboard
Preview functionality for PDF files
What changes are being made and why?
Dealing with PDF files is quite common so here is a PR attempt.
This PR added a very basic PDF viewer implemented using Mozilla's PDF.js lib.
It requires Promise.withResolvers support. However, it should be possible to use the "legacy" build of PDF.js to cover more browsers. It depends on the Kestra policy.
closes #4116 closes #4125
How the changes have been QAed?
id: pdfjs-test
namespace: company.myteam
inputs:
- id: pdfFile
type: FILE
extension: .pdf
tasks:
- id: test
type: io.kestra.plugin.core.log.Log
message: "This is an input test"