- Generating a signed URL in Google Cloud Storage.
- Sending the signed URL to PDF Echo to upload your file directly.
1. Generate a Signed URL in Google Cloud Storage
A signed URL gives PDF Echo temporary permission to upload a file to your bucket without sharing your credentials. You can generate a signed URL in different ways:- Using the
gsutilCLI. - Using the Google Cloud Console.
- Programmatically via the GCP client libraries.
Example using gsutil CLI.
⚠️ Note: The signed URL must be valid until PDF Echo finishes uploading the file
2. Generate a PDF and upload it directly to GCS
To upload the PDF to your GCS bucket, send a request to the endpoint/v1/pdf with the following field:
Example request
Example response
- No temporary storage — the PDF goes directly from PDF Echo to your bucket via the signed URL.
- Secure — access is limited to ths specific file and time period you define.
- Flexible — works with raw HTML or a public URL.