Solved issue with pdfjs