Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDFSnap2SVG

A purely front-end tool to generate SVG snapshots from PDFs in the browser.

Try the demo here!

Build & Depoly With Docker

These commands detail how to use Docker to build and deploy the PDFSnap2SVG service, offering an efficient, containerized approach suitable for rapid deployment across different environments.

git submodule update --init --recursive
docker build -t penxla/pdfsnap2svg:v1 .
docker run --name pdfsnap2svg -p 9630:9630 -d penxla/pdfsnap2svg:v1

Build Manually

For those preferring or requiring a manual setup, the following commands guide you through the process. This approach is beneficial for environments where Docker is not available or desired.

apt-get update
apt-get install python3 build-essential git curl
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash # install nodejs
source $HOME/.nvm/nvm.sh
nvm install 20
git clone -b 3.1.55 --single-branch --depth 1 https://github.com/emscripten-core/emsdk.git /opt/emsdk
/opt/emsdk/emsdk install 3.1.55
make

The generated files will be in the dist/ directory. You can directly run an HTTP servaer in this directory.

About

A purely front-end tool to generate SVG snapshots from PDFs in the browser.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages