Browsershot

screenshot of Browsershot

Convert HTML to an image, PDF or string

Overview:

The package allows users to convert webpages into images or PDF files using a headless version of Google Chrome controlled by Puppeteer. It offers various features to facilitate this conversion process.

Features:

  • Webpage to Image or PDF Conversion: Convert webpages into images or PDF files effortlessly.
  • Custom HTML Input Support: Easily use arbitrary HTML input for conversion.
  • Extract Body Content: Retrieve the body content of an HTML page post JavaScript execution.
  • Request Tracking: Obtain a list of all requests triggered by the page.
  • Headless Mode: Utilize Chrome's new headless mode for conversion.
  • Testing Suite: Comprehensive testing suite for quality assurance.
  • Documentation: Extensive documentation available for reference.
  • Contributing and Security Guidelines: Instructions provided for contributing to the project and reporting security bugs.

Summary:

The package enables users to convert webpages to images or PDF files using headless Chrome controlled by Puppeteer. With features like custom HTML input support, request tracking, and headless mode compatibility, it provides a versatile solution for webpage conversion needs. Additionally, the availability of documentation, testing suite, and guidelines for contributing and security add value to the package for developers.