Drupal 10.3 and 11
Use the contributed Gotenberg module. It wraps the Gotenberg PHP client and includes an Entity Print backend. It does not convert configuration or custom code from the older Athena PDF API module.
composer require 'drupal/gotenberg:^1.0'