Live data from Hacker News

Embedded PDF viewer in Firefox 81 supports filling forms

support.mozilla.org

181–190 of 384 posts

Re: Embedded PDF viewer in Firefox 81 supports filling forms

#181
post #157

Earlier quoted context omitted.

That would be nice if websites support that. But in my experienced all PDF forms I fill in have to be printed and then signed and posted...

I haven't printed a PDF to sign in years. Why don't you just affix a digital image of your signature to the file? Save it and email it back to whomever.

This, and in the rare circumstance where they only accept regular mail or faxes, I use HelloFax.

Re: Embedded PDF viewer in Firefox 81 supports filling forms

#182
post #166

Earlier quoted context omitted.

Does your operating system not support this natively from the print dialog?

On Windows at least, using the built-in PDF printer with Firefox results in text in the PDF file being converted to paths (not text). Huge file and you can't copy/paste. I've tried 3rd party PDF printers (PDFForge) and the result is the same, so I think it might a FF bug (or feature)? Chrome's save-as PDF produces actual text. It's the main reason I still have chrome installed.

That seems.... odd. I am on Firefox on Windows and I print to PDF all the time using the Windows built-in PDF printer ("Microsoft Print to PDF"), without issue. In fact sometimes that printer is the only one that can get things to format correctly!

Something on your system might be interfering with the printing process.

Re: Embedded PDF viewer in Firefox 81 supports filling forms

#183

Earlier quoted context omitted.

> We don't know if pi is a normal number. Sure we do. There are plenty of proofs out there that pi is an irrational number.

Irrational does not imply normal. For example, 1.01001000100001... is irrational but it's certainly not normal.

Technically, 1.01001000100001... can be normal depending on what ... stands for. :)

Re: Embedded PDF viewer in Firefox 81 supports filling forms

#184
post #99
post #75

Earlier quoted context omitted.

On the other hand, this allows for some incredible polyglot files, like some of the tricks with PoC||GtfO issues where the file is a readable PDF but also a game cartridge and also a zip file with the proof-of-concept code in the issue. And the front cover has the MD5 hash of the whole file printed on it... but that's another trick entirely!

Yeah, next time I need a CV it'll be a single-file Ruby web server and PDF that's also an archive of its own sources.

I'm currently looking for a job as a Rails Developer. I might just do that.

Probably won't send it to any recruiters, but it will be a funny anecdote for interviews.

Re: Embedded PDF viewer in Firefox 81 supports filling forms

#185
post #131
post #117

Earlier quoted context omitted.

"Find the earliest valid pdf in consecutive digits of pi"

I mean, the answer is trivially zero, there exists a PDF-like structure somewhere in Pi, and the offset of that doesn't have to be zero, it can start or end anywhere. So the range [0, N] is a valid PDF.

"Find the last byte of the first valid PDF in the binary digits of Pi"

Re: Embedded PDF viewer in Firefox 81 supports filling forms

#188
post #145
post #45

Earlier quoted context omitted.

My favourite PDF fact is that it doesn't have to start at the beginning or end at the end of a file. Any sea of bytes that contains a PDF file is an acceptable PDF file...

My favorite pdf fact is that the security flags for things like copy protection and passwords are on the viewer to implement so you can just turn them off and all the security is gone

This is not entirely true, you can encrypt PDFs [1] since v1.3 of the spec but the cypher is often so weak (RC4 until v1.6) they can be bruteforced in reasonable amounts of time.

[1] https://www.pdflib.com/pdf-knowledge-base/pdf-password-secur...

Re: Embedded PDF viewer in Firefox 81 supports filling forms

#189
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 thought I found a nifty trick by using OpenOffice to create a form with a pre-filled value. I decoded the PDF using pdktk or one of the free tools, and then modified the value. Nope, that caused some kind of cascading/checksum error.

Ended up just making the app generate HTML before calling wkhtmltopdf.

The PDF spec is insane! But like all things what you get out of Word/OpenOffice is 100x more complex than if you wrote it yourself, which is indeed doable.

Re: Embedded PDF viewer in Firefox 81 supports filling forms

#190

PDF support in Firefox is one of the most important additions in recent years. My gripe with Mozilla was they're pursing all these side projects when they really should be targeting feature parity with Chrome. That's the only way people will ever switch.

> My gripe with Mozilla was they're pursing all these side projects when they really should be targeting feature parity with Chrome. That's the only way people will ever switch.

A bit off topic from the post at hand, but my gripe was the opposite. The relentless pursuit of parity made them indistinguishable giving users no reason to switch (and taking dev time away from distinguishing features). Granted the pursuit of users instead of principles is its own folly that's hard to overcome when money is needed.

Post reply on HN