News for hackers. Stuff that matters.
Re:Embedded PDF viewer in Firefox 81 supports filling forms by brendandahl on Tuesday September 22, 2020 @01:06PM (#24557052)
PDF.js dev here. I'm a bit confused on which part of internal API you would like to use? The way I think of it, there are really three API's in pdf.js: 1) Main thread API (api.js) which we base the version off 2) The code that runs in the worker 3) The viewer components (web/*)

Quite awhile ago when we decided what parts of the API to version, we thought more people would want to use #1. Now that the project is mature we could probably expose some more base the version off of that.

As for the "so that it doesn't look like PDF.js", we don't limit the API because of this. That suggestion (which I don't totally agree with) came from what we saw people doing, where they'd copy the entire viewer, when it'd probably be better to just let the user's browser choose how to show the PDF.

Re:Embedded PDF viewer in Firefox 81 supports filling forms by torresjrjr on Tuesday September 22, 2020 @04:18PM (#24559348)
> PDF.js dev here

I'm so sorry about being forward but why the hell don't the vim keys (hjkl) smooth scroll? Its so frustrating. Is there an option to set it as so? Using the arrow keys is so cumbersome.

Re:Embedded PDF viewer in Firefox 81 supports filling forms by tarikozket on Tuesday September 22, 2020 @04:49PM (#24559716)
here, I'll make it easier for you to contribute to the project by providing you with the lines you'd need to update:

https://github.com/mozilla/pdf.js/blob/83e1bbea6e23db8744420...

https://github.com/mozilla/pdf.js/blob/83e1bbea6e23db8744420...

Re:Embedded PDF viewer in Firefox 81 supports filling forms by mavsman on Tuesday September 22, 2020 @05:28PM (#24560155)
Brilliant
Re:Embedded PDF viewer in Firefox 81 supports filling forms by colejohnson66 on Tuesday September 22, 2020 @06:19PM (#24560647)
Because not everyone uses Vim?
Re:Embedded PDF viewer in Firefox 81 supports filling forms by cpeterso on Wednesday September 23, 2020 @01:55AM (#24563446)
PDF.js already supports h/j (and p/n) keys to page up and down. (I added them years ago. :) I think GP is asking for the keys to scroll the page by smaller steps instead of page up and down.