Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

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

Asked by Ben Butler Jul 22, 2021 2.3K 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 Salesforce discussions

Learn & Explore

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

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.