Live data from Hacker News

Embedded PDF viewer in Firefox 81 supports filling forms

support.mozilla.org

31–40 of 384 posts

Re: Embedded PDF viewer in Firefox 81 supports filling forms

#31

Earlier quoted context omitted.

There are lots of use cases for PDF where a web page is totally unsuitable.

As someone working on formats, I disagree with your generalization. But let's get into specifics. List the things about PDF that you believe can't be done with web pages?

Distributing a document with functioning kerning and embedded fonts that works offline

Re: Embedded PDF viewer in Firefox 81 supports filling forms

#32

I find the built-in PDF reader in Firefox to be bloat. It's OK, it works 95% of the time, but really I want to use a native PDF viewer. Is there a version of Firefox that removes this bloat? Given that Mozilla is very resource constrained, why are they working on features that aren't necessary?

I like that single-page PDFs stay in the browser. I don’t want to keep them; I just want to see them. Like any other web-page. I want to be able to hit back, or close the tab, and continue on with my day.

And I also like that I can preview long-form PDFs in the browser, before choosing whether to save them and read them “for real.”

Imagine if every time you opened a direct-linked JPEG image in your browser, it treated it as an attachment, downloading it and opening it in your external image-previewer app, rather than rendering it as a synthesized HTML DOM wrapper around the image. Wouldn’t you be annoyed by how cluttered your Downloads directory would get with random files you never actually wanted to save?

Re: Embedded PDF viewer in Firefox 81 supports filling forms

#33
post #28

“After entering data into these fields you can download the file to have the filled out version saved to your computer.” What’s the use case? Printing out filled-in forms? But otherwise, who would want the PDF in electronic format? It doesn’t seem like a practical way for users to submit data.

Printing is one use case. Also plenty places that want filled out forms uploaded, e-mailed, ... + it allows you to keep a copy with what you entered.

Re: Embedded PDF viewer in Firefox 81 supports filling forms

#35
post #34

That built in PDF viewer is another feature that could have been an addon. It's bloat which increases the browser's attack surface. It's completely unneeded given that just about every OS ships with some kind of PDF reader out of the box.

> It's bloat which increases the browser's attack surface.

AFAICT PDF.js is just another JavaScript application and thus as sandboxed as any other website.

Re: Embedded PDF viewer in Firefox 81 supports filling forms

#36

I find the built-in PDF reader in Firefox to be bloat. It's OK, it works 95% of the time, but really I want to use a native PDF viewer. Is there a version of Firefox that removes this bloat? Given that Mozilla is very resource constrained, why are they working on features that aren't necessary?

Given the amount of PDF exploits over the years and the habit of browsers to automatically invoke your PDF viewer of choice either as a plug-in or call out, they're an easy target.

Having a sandboxed PDF viewer that works 95% of the time is great. For those 5% circumstances where I am actively trying to view a PDF and it won't work in browser, I'll gladly go through the minimal effort to open it in an external viewer.

Re: Embedded PDF viewer in Firefox 81 supports filling forms

#37
post #34

That built in PDF viewer is another feature that could have been an addon. It's bloat which increases the browser's attack surface. It's completely unneeded given that just about every OS ships with some kind of PDF reader out of the box.

The built-in PDF reader on Windows is literally to open the PDF in Edge.. so not very good UX for Firefox and also a good argument that browsers are expected to have PDF readers.

Re: Embedded PDF viewer in Firefox 81 supports filling forms

#39
post #15

I looked into coding PDFs once. Then I closed my MacBook (Pro) and went for a long walk into the ocean. I think I almost got to America, but then I turned and swam back again. Turnd out I had just fallen asleep and had a nightmare. I was actually just working with regular text files, and everything was fine.

I had to handle action buttons for a PDF once. I swam out from America a long long ways before turning back. Might have spotted you middle of the ocean.

Re: Embedded PDF viewer in Firefox 81 supports filling forms

#40
post #28

“After entering data into these fields you can download the file to have the filled out version saved to your computer.” What’s the use case? Printing out filled-in forms? But otherwise, who would want the PDF in electronic format? It doesn’t seem like a practical way for users to submit data.

Well, if the form needs to be faxed (still a thing!) then having the filled PDF makes it easy to use an e-fax service. But I assume sending the file to another computer for printing is the main use case.
Post reply on HN