title: Invalid PDF Structure with ng2-pdfjs-viewer
body: <p>I am trying to the load the PDF in ng2-pdfjs-viewer but I get &quot;Invalid PDF Structure, undefined error&quot;. The backend is returning the data to me in a Blob format but when I feed to the UI it gives the above error:</p>
  <p>HTML Code:</p>
  <pre><code>  &lt;div class=&quot;mlp-flex-container mlp-flex-container--relative mlp-flex-item&quot;&gt;
      &lt;div *ngIf=&quot;!showReport&quot; class=&quot;informationMessage&quot;&gt;Please Select a Trader&lt;/div&gt;
      &lt;ng2-pdfjs-viewer *ngIf=&quot;showReport&quot; #pdfViewer class=&quot;pdfViewer&quot;&gt;&lt;/ng2-pdfjs-viewer&gt;
    &lt;/div&gt;
  </code></pre>
  <p>JS Code:</p>
  <pre><code>  private async getDataAsync(message: ReportGroupMessage) {
      const rawData = await this.croDashboardPerformanceReportsDataService.getPerformanceReportsLocationDataAsync(message);
      this.pdfViewer.pdfSrc = rawData;
      this.pdfViewer.refresh();
    }
  
    public getPerformanceReportsLocationDataAsync(reportGroupMessage: ReportGroupMessage | any): Promise&lt;any&gt; {
      debugger
      const url = `Confidential URL`;
      return this.http.get(url, { responseType: 'blob' })
        .pipe(
          map((result: any) =&gt; {
            return result;
          })
        ).toPromise();
    }
  </code></pre>
  <p>Can someone please help?</p>