Using the /v1/generate API Call to Generate a PDF
To use the /v1/generate API call (POST method) to generate a PDF, follow these steps:
-
Ensure you have your API Key generated from the Dashboard.
-
Prepare the HTML content that you want to convert to PDF.
-
Make a POST request to the `
api.pdfaqua.com/v1/generate
` endpoint. -
Include the following HTTP headers in your request:
- ‘X-GitHubID’: This should be your GitHub ID, which is available in the Dashboard.
- ‘Authorization’: This should be a Bearer token with your generated API Key.
- The format should be `
Authorization: Bearer YOUR_API_KEY
`.
The body of your POST request should contain the HTML content you wish to convert to PDF. Upon successful request, the API will return the generated PDF file.
If you encounter any issues, please contact support.
Jan Strathmann
Sat Jun 22