title: sapui5 how to read PDF file content in controller
body: <p>Im facing an issue in PDF File Uploading..</p>
  
  <p><a href="https://i.stack.imgur.com/eeTjz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eeTjz.png" alt="enter image description here"></a></p>
  
  <p>In the above Screenshot if you see, When im trying to upload a PDF file, Im not able to read the content in that pdf file.
  My requirement is like, I need to get the content as <strong>String</strong> from that file and that content i need to send to back-end server..</p>
  
  <p>Im getting below error if im trying to read the content</p>
  
  <p><strong>HTTP Status 405 - Bad Method</strong><a href="https://i.stack.imgur.com/sEBBA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sEBBA.png" alt="enter image description here"></a></p>
  
  <p>Below is my Code ..</p>
  
  <p>Im using <strong>xmlns:u="sap.ui.unified"</strong> library</p>
  
  <pre><code>&lt;u:FileUploader id="fileUploader" name="myFileUpload" tooltip="Upload Service Sheet"
                                                  uploadComplete="handleUploadComplete" change="handleValueChange" typeMissmatch="handleTypeMissmatch" style="Emphasized" fileType="pdf"
                                                  placeholder="Choose a file for Upload..." maximumFileSize="2000" mimeType="pdf" buttonText="Upload"&gt;
                                              &lt;/u:FileUploader&gt;
  
  handleUploadComplete: function(oEvent) {
              var fileName = oEvent.getSource().getProperty("value");
              var sResponse = oEvent.getParameter("response");
              if (sResponse) {
                  var sMsg = "";
                  var m = /^\[(\d\d\d)\]:(.*)$/.exec(sResponse);
                  if (m[0] == "200") {
                      sMsg = "Return Code: " + m[0] + "(Upload Success)";
                      oEvent.getSource().setValue("");
                  } else {
                      sMsg = "Return Code: " + m[0] + "(Upload Error)";
                  }
  
                  MessageToast.show(sMsg);
              }
  
          },
  </code></pre>
  
  <p>Can some one please help me how can i read the data in the PDF??</p>
  
  <p>Thank you in advance</p>