This project is not covered by Drupal’s security advisory policy.
Provides an API for interacting with an AthenaPDF microservice. Handles external urls, internal paths (securely) and arbitrary HTML.
Setup
Provide the URL and the auth string of you AthenaPDF microservice in the settings form at /admin/config/athenapdf_api/settings.
UI
Go to /athenapdf_api/generate, provide a URL and hit submit to get the output file.
API
/* @var \Drupal\athenapdf_api\AthenaPdfConverterInterface $converter */
$converter = \Drupal::service('athenapdf_api.converter');
// Convert an internal route as seen by the admin user,
$account = User::load(1);
$outputFilePath = $converter->internalPathToPdf('/node/1', $account);
// external URLs,
$outputFilePath = $converter->urlToPdf('https://drupal.org');
// or arbitrary HTML.
$markup = '<html lang="en"><body>Testing</body></html>';
$outputFilePath = $converter->markupToPdf($markup);
Supporting organizations:
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.- Project categories: Developer tools, Integrations, Media
- Created by blazey on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.


