title: Hiding a PDF in html for download on link click
body: <p>I am facing a situation in my application where i need to add a pdf download link on to my page, but i cannot refer to any relative or absolute path for the file, I need to host my pdf inside the html only.</p>
  
  <p>Is there any way to do this, using basic HTML and JavaScript?</p>
  
  <p>Details summary of situation is as below :
  
  <li>there is an application which owned by someone else, i am customizing if for a particular client. </li></p>
  
  <p><li>we are given a provision to place some html(s) in a directory which are used in a few pages in the application. </li></p>
  
  <p><li>these htmls are not used with href or include in the product application, but are picked up by the product's java code and are added in the response, thus keeping a PDF in the same folder  as my HTML and providing relative URL wont work here.. and putting absolute URL is also not a solution as this needs to work across multiple environments.</li></p>