So you can force a download by using Content-Disposition: attachment
Content-Disposition: attachment
Content-Disposition: inline is the default and should display in the brows
Content-Disposition: inline
You have to set your putObject params as follows to view pdf instead of download.
params = { Bucket: process.env.S3_BUCKET, Key: , Body: , ContentDisposition:"inline", ContentType:"application/pdf" };