AnsweredAssumed Answered

ADF 2.6.0: pdfjsLib is not defined

Question asked by d.moeyersons on Oct 9, 2018
Latest reply on Oct 9, 2018 by d.moeyersons

After generating a new ADF 2.6.0 app with Yeoman, when I try to preview a document I get the following error:

'pdfjsLib' is not defined

main.ts contains the following lines: 

main.ts
import * as pdfjsLib from 'pdfjs-dist';
pdfjsLib.PDFJS.workerSrc = 'pdf.worker.js';

 

Sticking to 2.5.0 for my app

Outcomes