Closed nkimadusanka closed 4 years ago
…arto/url-to-pdf-api/issues/125 request
Add feature screenshot selector to support requested improvement https://github.com/alvarcarto/url-to-pdf-api/issues/125
Developer Comment
Samples
curl --location --request POST 'http://localhost:9000/api/render' \ --header 'Content-Type: application/json' \ --header 'Content-Type: application/javascript' \ --data-raw '{ "output": "screenshot", "url": "https://expressjs.com/en/starter/hello-world.html", "screenshot": { "selector": "#license" } }'
http://localhost:9000/api/render?output=screenshot&screenshot.selector=%23license&url=https://expressjs.com/en/starter/hello-world.html
Note
@nkimadusanka thanks a lot for making this PR, very kind of you!
Thanks for your contribution! This was merged via #128.
…arto/url-to-pdf-api/issues/125 request
Add feature screenshot selector to support requested improvement https://github.com/alvarcarto/url-to-pdf-api/issues/125
Developer Comment
Samples
curl --location --request POST 'http://localhost:9000/api/render' \ --header 'Content-Type: application/json' \ --header 'Content-Type: application/javascript' \ --data-raw '{ "output": "screenshot", "url": "https://expressjs.com/en/starter/hello-world.html", "screenshot": { "selector": "#license" } }'
http://localhost:9000/api/render?output=screenshot&screenshot.selector=%23license&url=https://expressjs.com/en/starter/hello-world.html
Note