Website screenshots

前端 未结 26 3536
长发绾君心
长发绾君心 2020-11-21 06:07

Is there any way of taking a screenshot of a website in PHP, then saving it to a file?

26条回答
  •  滥情空心
    2020-11-21 07:09

    After a lot for surfing on web I found this.

    PPTRAAS > A free tool to capture screenshot by passing your URL as a parameter

    They provide multiple options by simply hitting their URL.

    1. Get full page screenshot

      https://pptraas.com/screenshot?url={YOU URL HERE}

    2. Get page screenshot of specific size

      https://pptraas.com/screenshot?url={YOU URL HERE}&size=400,400

    3. One can even convert the page to pdf

      https://pptraas.com/pdf?url={YOU URL HERE}

提交回复
热议问题