Markus Ast

Results 221 comments of Markus Ast

Hi, thanks for taking the effort of creating an example repo demonstrating the issue. Though, I'll need some days to find time to look into it in more detail. The...

Yes, this might be the cause. The browser support currently has the assumption that during transpiling/bundling of pdfjs, shims for the Node's stream interface are automatically inserted. Maybe, instead of...

The issue might be solves with current `master` (not published to NPM, yet). Do you mind giving it a try?

Yeah, those are all parts that traditionally worked fine, since shims are automatically added during transpilation. I still have no issues running pdfjs in the browser, but I respect the...

Hi, since most users use a build tool to build their frontend code anyway, the module does currently not contain a single-build file. But this is maybe something I should...

Hi @DmitriySlabodchikov, are you by any chance using webpack 5? I haven't used `pdfjs` with webpack5 yet, but the error sounds like it could be because of [webpack 5 removed...

Hi, this might be an issue with how the PDF was saved, see https://github.com/rkusa/pdfjs/issues/240#issuecomment-985311677

See https://github.com/rkusa/pdfjs/blob/master/docs/header.md e.g. ``` const header = doc.header() header.pageNumber((curr, total) => `${curr} / ${total}`) ``` Is this what you are looking for?

> thanks very much , I'm look for this : > const ext = new pdf.ExternalDocument(src); > let pageCount=ext.pageCount; For external documents, what you are doing should work, does not...