title: Force S3 PDF to be viewed in browser instead of download
body: <p>So you can force a download by using <code>Content-Disposition: attachment</code></p>
  
  <p><code>Content-Disposition: inline</code> is the default and should display in the browser, and it does in fact work with most files like PNG, JPG, etc.</p>
  
  <p>But for some reason somehow when generating a presigned URL from S3, PDF files will always force download even if I don't use the content-disposition: attachment header.</p>
  
  <p>I want to be able to make the PDF open in the browser when the browser allows it</p>
  
  <p>I am using the presigned URL generate call from S3 client <a href="http://docs.aws.amazon.com/AmazonS3/latest/dev/ShareObjectPreSignedURLJavaSDK.html" rel="noreferrer">http://docs.aws.amazon.com/AmazonS3/latest/dev/ShareObjectPreSignedURLJavaSDK.html</a></p>