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.