kestra icon indicating copy to clipboard operation
kestra copied to clipboard

Preview functionality for PDF files

Open yuri1969 opened this issue 7 months ago • 0 comments

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"

yuri1969 avatar Jun 27 '24 17:06 yuri1969