Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Pre-built version of the PDF.js

949 views
Skip to first unread message

Yury Delendik

unread,
Oct 1, 2014, 9:01:57 AM10/1/14
to mozilla-d...@lists.mozilla.org
Hello,

We started publishing pre-built versions of the PDF.js library at the
pdfjs-dist repository [1]. The new version is created automatically with
every merge of the pull requests into master. We also provide a version
tag for each commit in this repository, so people will point to the
specific version that works for them.

The repository also contains package.json and bower.json manifest files
(and additionally pushed to the npm registry). The `npm install
pdfjs-dist` and `bower install pdfjs-dist` commands shall work now.

The generic PDF.js viewer is not fully included. However we will try to
include components to build web pages that are display PDFs (currently
only PDFViewer is included, see example at [2]). The API for the UI
components are not finalized yet, so we will be glad to hear feedback or
proposals about needed functionality.

Thanks,
Yury


[1] https://github.com/mozilla/pdfjs-dist
[2]
https://github.com/mozilla/pdf.js/blob/master/examples/components/simpleviewer.js

Jan Sedlák

unread,
Oct 1, 2014, 9:48:32 AM10/1/14
to Yury Delendik, mozilla-d...@lists.mozilla.org
Glad to see that. I had to use pdfjs-bower before.

One question, if there is pdf.combined.js, assuming that means combined
pdf.js and pdf.worker.js, do I still have to use "PDFJS.disableWorker =
true;" and "PDFJS.workerSrc = '../../build/pdf.worker.js';"?

Jan
> _______________________________________________
> dev-pdf-js mailing list
> dev-p...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-pdf-js
>

Yury Delendik

unread,
Oct 1, 2014, 10:02:03 AM10/1/14
to Jan Sedlák
On 10/1/14, 8:47 AM, Jan Sedlák wrote:
> Glad to see that. I had to use pdfjs-bower before.

Unfortunately pdfjs-bower is not updated neither to match to our release
cycle nor to publish the current build.

> One question, if there is pdf.combined.js, assuming that means combined
> pdf.js and pdf.worker.js, do I still have to use "PDFJS.disableWorker =
> true;" and "PDFJS.workerSrc = '../../build/pdf.worker.js';"?

That's correct and it forces "PDFJS.disableWorker = true;" mode. But we
don't recommend disabling web worker for browsers since user experience
will suffer -- it's added mostly to support node.js solutions.

Thanks.
0 new messages