An open API service indexing awesome lists of open source software.

https://github.com/cutls/wasm-pdf-pwd-unlock


https://github.com/cutls/wasm-pdf-pwd-unlock

Last synced: 8 months ago
JSON representation

Awesome Lists containing this project

README

          

# パスワードロックを解除したPDFを生成するやつ

Goのpdf-cpuをWebAssembly(wasm)経由でブラウザから叩けます。pdfcpuはv0.1.24、Goは1.12を使わないと動かなかった。

フォーク元ではpdfcpuが0.1.23になっているのですが、0.1.24で新しい暗号化形式に対応したのでアップデートしました。

This is a fork: https://github.com/wcchoi/go-wasm-pdfcpu

## Running a command line tool written in Go on browser with WebAssembly

This repo contains code/assets from the [original article](https://github.com/wcchoi/go-wasm-pdfcpu/blob/master/article.md)

Files:
```
.
├── article.md --- Article explaining the code
├── index.html --- Demo UI page
├── worker.js --- JS code for Demo UI Page
├── oldindex.html --- Code from the article
├── pdfcpu --- Linux x86_64 native binary
├── pdfcpu.wasm --- Compiled wasm module of pdfcpu
├── pdfcpu.wasm.br --- Brotli compression output
├── pdfcpu.wasm.gz --- Gzip compression output
├── README.md --- This file
├── static_server.js --- A simple HTTP static file server in Node.js, with wasm MIME type support for development
├── wasm_exec.js.orig --- Original wasm_exec.js from Go v1.12.4 installation (misc/wasm), for diff'ing changes
└── wasm_exec.js --- Modified to add Filesystem emulation support in browser with BrowserFS
```