News for hackers. Stuff that matters.
Re:Show HN: Make your PDF look scanned in browser by cercatrova on Tuesday April 19, 2022 @11:30AM (#31084482)
Reminds me of patio11 talking about the phenomenon of having bureaucracy only accept wet signatures so services like this would help automate that.

https://twitter.com/patio11/status/1249630998788108288

Re:Show HN: Make your PDF look scanned in browser by Moto7451 on Tuesday April 19, 2022 @01:57PM (#31086504)
I just had to do this dumb dance with TD Ameritrade. I did a coin toss on print/scan v.s. learning to do this with ImageMagick. Since I had a bunch of other deadlines to hit I wasted paper so they would accept my electronic submission.

Personally, from a workflow standpoint I'd prefer a PDF Printer driver that would add the effect. I'm sure the website is better for Mobile.

Re:Show HN: Make your PDF look scanned in browser by Cub3 on Thursday April 21, 2022 @01:34AM (#31106295)
I reckon you could sell this, a PDF printer driver that fakes the "scanned" look
Re:Show HN: Make your PDF look scanned in browser by dannygarcia on Tuesday April 19, 2022 @02:13PM (#31086716)
My biggest concern with an online service is privacy (either bad actors or the web app getting hacked). I used an online mortgage service that was fully paperless with the exception of a single document. Just ran it through a few imagemagick commands to add rotation, noise, contrast, etc. My home printer wasn't working so it was either that or buy a whole new one.
Re:Show HN: Make your PDF look scanned in browser by paulgb on Tuesday April 19, 2022 @02:38PM (#31087113)
> My biggest concern with an online service is privacy

In this case it's all run client-side. You're still trusting that the code you're served wasn't maliciously replaced, but if you want to be careful you could run it in an incognito tab and temporarily disable your internet connection.

Re:Show HN: Make your PDF look scanned in browser by krossitalk on Tuesday April 19, 2022 @02:48PM (#31087243)
How would you download the payload without an internet connection?

Let's presume it is malicious, and the mere act of downloading the WASM starts an injection.

Re:Show HN: Make your PDF look scanned in browser by paulgb on Tuesday April 19, 2022 @03:12PM (#31087522)
Ah, I was ambiguous about that, but I mean these steps:

1. load the site in an incognito tab

2. disable internet

3. run the conversion and download the result

4. close the incognito tab

5. re-connect the internet

Re:Show HN: Make your PDF look scanned in browser by kevin_nisbet on Tuesday April 19, 2022 @03:49PM (#31088058)
While this may work for unsophisticated attacks, wouldn't it still be possible for a more sophisticated adversary to do something more like store the document in browser local storage, and then later with internet access to post the contents?

I haven't spent a huge amount of time in the browser security space, but I do think there is quite alot of surface area if you give the browser session sensitive data.

Re:Show HN: Make your PDF look scanned in browser by paulgb on Tuesday April 19, 2022 @03:53PM (#31088105)
If you are using an incognito tab, anything in local storage, cookies, even caches should go away. I am not 100% up on the details but I believe modern browsers are pretty strict about isolating incognito state.

You're right though in general, that's why the incognito tab is important.

Re:Show HN: Make your PDF look scanned in browser by jonny_eh on Tuesday April 19, 2022 @06:40PM (#31090322)
This is correct, but you need to close ALL incognito tabs for storage to get wiped, not just the tab you loaded the site in.
Re:Show HN: Make your PDF look scanned in browser by YPPH on Tuesday April 19, 2022 @10:02PM (#31091926)
I mean, I considered this implied within the suggestion of using incognito mode.

In any event, it's an unrealistic attack vector. No bad actor is going to target 0.1% of edge cases when you could get enough damaging information from people who do not go through this process and remain connected to the internet.

Re:Show HN: Make your PDF look scanned in browser by jonny_eh on Tuesday April 19, 2022 @10:35PM (#31092151)
Just making it clear for anyone that doesn't know. It's caught me off guard before.
Re:Show HN: Make your PDF look scanned in browser by lxgr on Tuesday April 19, 2022 @09:27PM (#31091683)
That depends on the browser, I believe.
Re:Show HN: Make your PDF look scanned in browser by illiac786 on Wednesday April 20, 2022 @04:01AM (#31094022)
Did you try this? Does not work with FF 99 in a private tab on macOS 12, at least for me. It stays stuck at "Rendering finished, waiting for processing".
Re:Show HN: Make your PDF look scanned in browser by achn on Tuesday April 19, 2022 @03:41PM (#31087964)
Are there browser extensions that simply disable all future requests from being sent from the immediate tab?
Re:Show HN: Make your PDF look scanned in browser by paulgb on Tuesday April 19, 2022 @03:56PM (#31088159)
It's possible for an extension to intercept and block requests, but as Kevin mentions in your sibling comment, it's not enough because they could write data to local storage and then read it later when you're back online if you ever visited that domain again. An extension would have to cover a lot of bases to ensure that data couldn't leak, and I wouldn't trust one to cover them all.
Re:Show HN: Make your PDF look scanned in browser by jannes on Tuesday April 19, 2022 @03:55PM (#31088126)
In Chrome dev tools you can set the network throttling to "Offline".

In Firefox this is not possible (per tab), but at least you can set the entire browser to offline mode by clicking "File -> Work Offline"

Re:Show HN: Make your PDF look scanned in browser by jonny_eh on Tuesday April 19, 2022 @06:41PM (#31090334)
In Chrome, open the Inspector, go to "Netork", then in the dropdown that says "No throttling" choose "offline".
Re:Show HN: Make your PDF look scanned in browser by ModernMech on Tuesday April 19, 2022 @10:08PM (#31091964)
That got weird fast (caution NSFW). It looks like an interesting project, but then it quickly devolved into a PDF filled with drawings of penises. Quite unexpected, glad I wasn't viewing it with my students in the room lol.
Re:Show HN: Make your PDF look scanned in browser by jimmydorry on Tuesday April 19, 2022 @07:22PM (#31090686)
I still have to deal with bureaucracy that requires wet signatures. I've tried a few tools like this one, but no bueno. They could tell it was "digitally signed".
Re:Show HN: Make your PDF look scanned in browser by forum_ghost on Tuesday April 19, 2022 @11:38PM (#31092552)
wet ink exists for a reason.

Some things are far too sensitive to ever touch a computer.