Announcement

Collapse
No announcement yet.

pdf-js preview error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • pdf-js preview error

    Whenever I try to preview any document (using 7.8.3), pdf-js throws the following error:

    Code:
    pdfjs-dist/build/pdf.combined.js:formatted:8695
        Error: Invalid XRef stream header
    
    pdfjs-dist/build/pdf.combined.js:formatted:8696
        at f (pdfjs-dist/build/pdf.combined.js:7:11095)
        at a.readXRef (pdfjs-dist/build/pdf.combined.js:18:20226)
        at a.parse (pdfjs-dist/build/pdf.combined.js:18:15671)
        at a.setup (pdfjs-dist/build/pdf.combined.js:28:30792)
        at a.parse (pdfjs-dist/build/pdf.combined.js:28:29399)
        at eval (pdfjs-dist/build/pdf.combined.js:30:1421)
        at a.ensure (pdfjs-dist/build/pdf.combined.js:30:1353)
        at a.ensureDoc (pdfjs-dist/build/pdf.combined.js:30:383)
        at eval (pdfjs-dist/build/pdf.combined.js:30:5057)
    
    io.ox/core/viewer/views/types/documentview.js:formatted:278
        Core.Viewer.DocumentView.show(): failed loading PDF document. Cause:  filterError
        i	@	io.ox/core/viewer/views/types/documentview.js:formatted:278
        c	@	io.ox/core/viewer/views/types/documentview.js:formatted:247
        (anonymous)	@	boot.js:3257
        k	@	boot.js:3100
        fireWith	@	boot.js:3212
        e.(anonymous function)	@	boot.js:3302
        (anonymous)	@	io.ox/core/pdf/pdfdocument.js:2
        k	@	boot.js:3100
        fireWith	@	boot.js:3212
        c	@	boot.js:8267
        (anonymous)	@	boot.js:8606
    According to the pdf-js devs, this is a format error in the PDF file being fed into it, is there a way to fix this from my end or is it something internal?

  • #2
    I can see that this is apparently due to the documentconverter not being installed. Is there any way to confirm that this is the case?

    Comment

    Working...
    X