Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

214
Views
How to force a PDF to be rendered without downloading?

When I use <iframe src="some_pdf_file.pdf/> on a PDF that has the header Content-Disposition set to attachment the iframe decides to download the file instead of rendering it. This is reasonable behavior, however I want to force the PDF to be rendered in the iframe.

How can I do this? Is it possible to download the file and then change the Content-Disposition header to inline?

<object
  data='https://pdfjs-express.s3-us-west-2.amazonaws.com/docs/choosing-a-pdf-viewer.pdf'
  type="application/pdf"
  width="500"
  height="678"
>
  <iframe
    src='https://pdfjs-express.s3-us-west-2.amazonaws.com/docs/choosing-a-pdf-viewer.pdf'
    width="500"
    height="678"
  >
    <p>This browser does not support PDF!</p>
  </iframe>
</object>
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!