- Convert html to pdf
- Convert pdf to png
cd src
dotnet run
cd src
docker build -f Dockerfile .
Then run the image as a container using
docker run -d -p 8000:80 puppeteer
Optional page (default = 0) dpi (default 180, range between 1 - 300)
curl -F 'file=@/Users/anarki/test.pdf' https://io-pdf.azurewebsites.net/api/v1/pdf/pdf2png?page=0&dpi=180 > test.png && open test.png
curl -d "{ html: '<h1>header </h1> <p>123</p>' }" -H "Content-Type: application/json" -X POST https://io-pdf.azurewebsites.net/api/v1/pdf/html2pdf > test.pdf && open test.pdf