PDF.js sandbox based on quickjs
Перейти к файлу
Calixte Denizet 3ca8f480cd Update quicks to 3f81070e573e3592728dbbbd04c84c498b20d6dc 2024-02-09 10:13:01 +01:00
src Update quickjs 2022-05-01 15:35:00 +02:00
.eslintrc.js Fix formatting of build.js 2020-11-22 14:49:22 +01:00
.gitignore Initial commit 2020-11-10 14:35:56 +01:00
0001-Extra-stuff-for-use-with-PDF.js.patch Update quicks to 3f81070e573e3592728dbbbd04c84c498b20d6dc 2024-02-09 10:13:01 +01:00
Dockerfile Update quicks to 3f81070e573e3592728dbbbd04c84c498b20d6dc 2024-02-09 10:13:01 +01:00
README.md Update README 2020-11-22 14:59:30 +01:00
build.js Fix formatting of build.js 2020-11-22 14:49:22 +01:00
compile.sh Update quicks to 3f81070e573e3592728dbbbd04c84c498b20d6dc 2024-02-09 10:13:01 +01:00
package-lock.json Update quickjs 2022-05-01 15:35:00 +02:00
package.json Fix formatting of build.js 2020-11-22 14:49:22 +01:00

README.md

pdf.js.quickjs

Provide a sandbox to PDF.js.

Build

Run:

node build.js --compile --output my_output_dir

it will create a Docker image with emsdk and then run it. The generated quickjs-eval.js will be in my_output_dir.

Update

In order to update quickjs to a specific revision, change the commit hash in Dockerfile and then run:

node build.js --create

to create a new docker image and then

node build.js --compile --output my_output_dir

to compile. The short version is:

node build.js -Cco my_output_dir

Licensing

The code is released under MIT license.