0

While displaying pdf file in Angular 6 using ngx-extended-pdf-viewer, I am getting an error in console as shown below- enter image description here

html -

<ngx-extended-pdf-viewer src="assets/dataset/doc_2.pdf" id="idocument" type="application/pdf" width="100%"></ngx-extended-pdf-viewer>

Tried adding delayFirstView="1000" in the properties in html but not working.

I have same confiuration as suggested on this page.

Stephan Rauh
  • 3,069
  • 2
  • 18
  • 37
Vikash Yadav
  • 713
  • 1
  • 9
  • 29

1 Answers1

1

Adding useBrowserLocale="true" in HTML properties solved the issue.

double-beep
  • 5,031
  • 17
  • 33
  • 41
Vikash Yadav
  • 713
  • 1
  • 9
  • 29