Sign inSign up

ranjanashish011/htmltopdf_api

By ranjanashish011

•Updated almost 5 years ago

This is a complete package of creating html to pdf , png, or jpg

Image
0

339

ranjanashish011/htmltopdf_api repository overview

Rest client

url : localhost:80/ method: GET

return : "{"status": true, "response": "connected"}"

url : http://localhost:80/htmlToPdfUnitTest⁠ method : POST

return : "{"status": true, "response": "base64 data"}"

url : http://localhost:80/htmlToPdf⁠ method : POST header : Content-Type : aapplication/json post data : {'data':'base64 html','pageMargin':'0,0,0,0'}

return : "{"status": true, "response": "base64 data","contentType":"application/pdf"}"

url : http://localhost:80/htmlToPng⁠ method : POST header : Content-Type : aapplication/json post data : {'data':'base64 html'} Note : imgType will be jpg/png return : "{"status": true, "response": "base64 data","contentType":"image/jpg"}"

url : http://localhost:80/htmlToJpg⁠ method : POST header : Content-Type : aapplication/json post data : {'data':'base64 html'} Note : imgType will be jpg/png return : "{"status": true, "response": "base64 data","contentType":"image/jpg"}"

url : http://localhost:80/htmlToImageUnitTest⁠ method : GET

return : "{"status": true, "response": "base64 data","content_type":"image/jpg"}"

Tag summary

Content type

Image

Digest

Size

755.1 MB

Last updated

almost 5 years ago

docker pull ranjanashish011/htmltopdf_api