Cloud destination
Configure where your asynchronously rendered PDFs are stored in the cloud
The destination
parameter specifies where your PDF will be stored when using asynchronous rendering.
Overview
When rendering PDFs asynchronously, the generated file needs to be stored somewhere. The destination
parameter allows you to configure cloud storage details for the rendered PDF.
Parameter details
Configuration for where your PDF will be stored when using asynchronous rendering
Authorization requirements
Before using cloud destinations, you must grant Vortex PDF permission to upload files to your cloud storage:
Google Cloud Storage
For Google Cloud Storage, grant access to the service account by:
- Navigate to your Google Cloud Console’s IAM & Admin section
- Add the following service account:
astronaut@vortex-pdf.iam.gserviceaccount.com
- Assign the role “Storage Object User” to this service account
AWS S3
For AWS S3, add the following bucket policy to grant access:
Replace YOUR-BUCKET-NAME
with your actual S3 bucket name.
Usage
Behavior
When you submit an asynchronous rendering request with a destination, the API will:
- Accept your request and return immediately with a success status
- Process the rendering in the background
- Upload the completed PDF to the specified cloud destination
- Notify you via webhook (if configured) when the process is complete
Use cases
This parameter is particularly useful for:
- Large document generation: When rendering complex or large documents that may take time to process
- Background processing: When you want to initiate rendering without waiting for completion
- Direct cloud storage: When you want PDFs delivered directly to your cloud storage without intermediary steps
Related parameters
The destination
parameter is often used together with the webhook
parameter, which allows you to receive a notification when the rendering is complete:
The webhook will receive a POST request with information about the completed rendering, including the status and location of the generated PDF.