With PDFShift, you can save the converted PDF direclty into your S3 bucket at Amazon, allowing to post process it or deliver it to your clients using your own system.
In order to be able to save on your Bucket, you’ll need to update the policy of your bucket destination.
We recommend you to use the following policy, but if you’re an expert at AWS S3, feel free to customize it:
{
"Version": "2012-10-17",
"Statement": [{
"Sid": "Only allow writes to this bucket with bucket owner full control",
"Effect": "Allow",
"Principal": {
"AWS": ["arn:aws:iam::804461045055:user/pdfshift"]
},
"Action": ["s3:PutObject"],
"Resource": "arn:aws:s3:::DOC-EXAMPLE-BUCKET/*",
"Condition": {
"StringEquals": {
"s3:x-amz-acl": "bucket-owner-full-control"
}
}
}]
}
(The file is also available at Pastebin)
Don’t forget to change the name DOC-EXAMPLE-BUCKET to your appropriate bucket’s name!
Once this policy in place, you’ll be able to use the s3_destination parameter and use a value like s3://DOC-EXAMPLE-BUCKET/pdfshift/upload/86aa3ede7d05.pdf