It looks like every uploaded file comes in image (jpg or png) file format; but is there any way to upload a file and make it come in the original file format?
For example if the file format uploaded is a PDF file, then it should preview PDF file on the page
              <div class="form-horizontal">
                  <h1 style="font-size:12pt; margin-top: 0%; color: red;">Document Upload</h1>
                  <hr />
                  <div class="row" id="centered2" style="margin: 0 auto; margin-top: 1%; text-align: center;">
                       <asp:FileUpload ID="FileUpload1" runat="server" Height="43px" Width="282px" onchange="ImagePreview(this);"/>
                  <div>
                       <asp:Button ID="Button2" runat="server" CssClass="btn btn-primary" Font-Size="X-Small" BackColor="SteelBlue" Text="Authenticate" OnClick="Button2_Click"/> 
                      <asp:TextBox ID="Textmail" placeholder="email address" Width="200px" Font-Size="10pt" runat="server"></asp:TextBox> 
                       <asp:Button ID="Button1" runat="server" CssClass="btn btn-primary" Font-Size="X-Small" BackColor="SteelBlue" Text="Send to Mail" OnClientClick="return PrintPanel();"/> 
                      <asp:Button ID="btnPrint" runat="server" CssClass="btn btn-primary navbar-btn" BackColor="SteelBlue" Font-Size="X-Small" Text="Print" OnClick="btnPrint_Click" />
                  </div>
                         <asp:Label ID="lblMessage" Text="" runat="server"></asp:Label>
                  </div>
                  <asp:Panel ID="pnlContents" runat="server">
                      <div class="page" id="parent">
                          <div class="subpage">
                              <asp:Image ID="Image3" ImageUrl="~/img/background.png" runat="server" BorderStyle="none" Width="160mm" Height="200mm" />
                              <asp:Image ID="Image4" ImageUrl="~/img/blue.png" runat="server" BorderStyle="None" Width="86px" Height="90px" />
                          </div>
                      </div>
                  </asp:Panel>
              </div>
 
   <script type="text/javascript">
       function ImagePreview(input) {
           if (input.files && input.files[0]) {
               var reader = new FileReader();
               reader.onload = function (e) {
                   $('#<%=Image3.ClientID%>').prop('src', e.target.result)
                       .width(590)
                       .height(750);
               };
               reader.readAsDataURL(input.files[0]);
           }
       }
   </script>