Give option to use Doppio for PDF generation

Created on 23 May 2024, about 1 month ago
Updated 3 June 2024, 29 days ago

Problem/Motivation

browserless.io is stopping their pay as you go, switching to minimum price of $200 USD per month. For comparison Doppio's free plan provides up to 400 docs / month and doesn't require credit card details. see plans

Proposed resolution

Give the option to developers to use Doppio. The developers can choose to use the service they prefer.

This will be controlled through the settings.php variable added.

  • if the developer adds $settings['doppio_api_key'], doppio is used to generate the PDF
  • if the developer adds $settings['browserless_api_key'], browserless.io is used to generate the PDF

User interface changes

None

Status

Please find the suggested implementation on the issue's MR - it basically defines the doppio request needed and a method to save the pdf file returned; the structure and process of the module remain the same for the rest. I've tested the implementation on a couple of sites using the module.

Test the update

  • Create a free account on Doppio
  • Get your API key and add it to your settings.php file $settings['doppio_api_key']=ENTER_YOUR_API_KEY_HERE

✨ Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom andreastkdf

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024