Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Data Science
  3. Question
Data Science

why can't i use contentType as application/pdf in visualforce page?

Asked by Anna Ball Apr 16, 2021 67 views 1 answer
Share

About this question

While i m doing like the following ,i m getting msg like :

failed to load pdf

        


How to create a PDF content type?


The MIME type for a PDF file is "application/pdf". To open a PDF file in a servlet, you set the content type in the response header to "application/pdf" : // MIME type for pdf doc res. setContentType( "application/pdf" )

Your answer

1 Answer

More Data Science discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Data Science Blogs

Guides, tips and career advice on Data Science from JanBask experts.