Live data from Hacker News

Embedded PDF viewer in Firefox 81 supports filling forms

support.mozilla.org

321–330 of 384 posts

Re: Embedded PDF viewer in Firefox 81 supports filling forms

#321

Earlier quoted context omitted.

The digits of pi contain every pdf that ever could and ever will exist.

Is this correct, mathematically? I understand the point that PI contains every possible piece of information, theoretically. However, the chance of finding a given string in PI depends on the string’s length. The longer the string, the more the probability tends to 0. The paradox therefore is that PI contains every PDF, but you will never find them, so in what sense does it really contain them at all?

No, all strings theoretically exist in 𝛑 given enough digits, so longer strings don't reduce probability of existence, they just mean that it will take more digits to find them.

Re: Embedded PDF viewer in Firefox 81 supports filling forms

#322
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.

The last time i wanted to do that, i noped the fuck out, generated latex, and pdflatex-ed the thing, to get the pdf (we're talking generic reports, text, table, graph, email to customer on a schedule).

Re: Embedded PDF viewer in Firefox 81 supports filling forms

#323
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 didn’t get it. Are you implying that coding PDF is an onerous task?

Re: Embedded PDF viewer in Firefox 81 supports filling forms

#325
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 didn’t get it. Are you implying that coding PDF is an onerous task?

Check out the specs file for PDF and you will understand.

I will be extremely surprised if anyone (besides Adobe) has implemented 100% of it.

Re: Embedded PDF viewer in Firefox 81 supports filling forms

#326

Earlier quoted context omitted.

Is this correct, mathematically? I understand the point that PI contains every possible piece of information, theoretically. However, the chance of finding a given string in PI depends on the string’s length. The longer the string, the more the probability tends to 0. The paradox therefore is that PI contains every PDF, but you will never find them, so in what sense does it really contain them at all?

No, all strings theoretically exist in 𝛑 given enough digits, so longer strings don't reduce probability of existence, they just mean that it will take more digits to find them.

See Borell-Cantelli lemma.

Re: Embedded PDF viewer in Firefox 81 supports filling forms

#327

Earlier quoted context omitted.

> 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.

Because not everyone uses Vim?

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.

Re: Embedded PDF viewer in Firefox 81 supports filling forms

#328
post #282

A note for Linux and macOS users, from someone who switched to windows one year ago: it’s maybe surprising but it is a VERY REAL pain in the Windows world to find a pdf reader that also allows you to edit forms, that doesn’t also come with malware or adware, and has even just a modest UX! So for sure you already have access to Evince and Preview.app, they already do everything you want, but Windows users don’t really…

The least problematic options have been Microsoft Edge (already on the system) and Adobe (more problematic).

Edge can edit PDFs? I’m learning something today!

Re: Embedded PDF viewer in Firefox 81 supports filling forms

#329
post #312
post #292

Earlier quoted context omitted.

In theory. In practice you still can meet the XFA forms, especially for some governmental organizations.

Yup! Keep running into having no way to fill in Canadian Government forms. It's all XFA.

Example? There are ways of converting XFA forms to Acroforms...

Re: Embedded PDF viewer in Firefox 81 supports filling forms

#330
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.

Reading PDF files is certainly a nightmare. But you can easily produce a valid and simple pdf file just by printf-ing whatever needs to be printf-ed. There's an ugly header and the rest is essentially your text.
Post reply on HN