Skip to main content
Participant
October 23, 2023
Question

Using external storage for pdf services api

  • October 23, 2023
  • 1 reply
  • 622 views

im using a curl api to convert pdf into xlsx using adobe pdf services api
and i want to use external storage and my prefered storage is amazon s3
to do this i require an input uri and an output uri and both need to be presign urls
i can make a presign for input uri as i have an object key but i do not know how to make an output uri 

This topic has been closed for replies.

1 reply

Raymond Camden
Community Manager
Community Manager
October 23, 2023

So, I've only done this in ColdFusion, Node, and Python. It involves creating a PUT request URL for the bucket and filename for output. Here's my Node code, but it just wraps their SDK so it's probably not too helpful. That being said, if Amazon has a PHP SDK, it may help you find it:

 

async function getSignedUploadUrl(path) {
	let command = new PutObjectCommand({ Bucket: bucket, Key:path });
	return await getSignedUrl(s3Client, command, { expiresIn: 3600 });
}