Lurker News
Implement scanyourpdf.com in JavaScript. No backend servers needed.

Comments (177) 49 threads

ShakataGaNai3 replies#
Interesting concept. However there are a few issues that surface quickly (this is all assuming a feed through scanner and not a flatbed).

#1 - It rotates AND scales to fit. It's not obvious until you rotate a stupid amount, but pages don't shrink when scanned for real.
#2 - The scanning rotation is way too uniform. Most scans twist a bit, typically near the top when more of the page is in the scanner to straighten it out.
#3 - With #2 there should be some stretching/skewing that isn't uniform.
#4 - The noise is way too uniform as well. It looks like static. Typical scanned documents have noise that is much more variable. You also get other scanning artifacts like streaks for dirt on the scan head.
#5 - The page ends often aren't even and introduce artifacting as well.
#6 - Needs an option for chewed up staple corner and/or holepunch.

acchow#
Funny, my scanner has software that automatically corrects for most of these errors to make it look as non-scanned as possible.
simondotau#
> pages don't shrink when scanned for real.

But sometimes they do when printed for real, to keep margins of content within the printable area.

achow#
> The noise is way too uniform as well. It looks like static.

This was my first question whether the noise is absolutely random and inconsistent, otherwise it would be very easy to detect by "authorities" who is insisting on manual scans.

Moto74511 reply#
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.

Cub3#
I reckon you could sell this, a PDF printer driver that fakes the "scanned" look
dannygarcia1 reply#
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.
paulgb1 reply#
> 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.

krossitalk12 replies#
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.

Continue this thread — 12 replies

jimmydorry#
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".
ModernMech#
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.
forum_ghost#
wet ink exists for a reason.

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

Bedon2922 replies#
Very nice. On thing I would like to see a rotation range for multi page PDFs. A 10 page document won't all be identical rotation. One might be -0.2 and the next 0.3.
seedgou1 reply#
Good idea! A random distribution on rotation seems a more user-friendly way instead of setting 10 rotation values.
fnordpiglet#
Obviously you need to randomly fold an edge and wrinkle a page too. Goddamn paper feeders.
shard#
It could, if the 10 pages are fed through a automatic feeding scanner which gives the same skew to all scanned pages.
seedgou#
The site's logic is nearly identical to this gist: use ImageMagick to do the rotate, noise, etc.
teddyh#
How is a web page app better than a shell script you can run yourself? Of course, any old port in a storm – if you can’t run a shell script, this is better. But if you can run things yourself, you should. A shell script will stay on your file system and not disappear in a couple of years when the original author either gets bored with it or decides to make it proprietary.

Load more comments