Readit News logoReadit News
Posted by u/seedgou 4 years ago
Show HN: Make your PDF look scanned in browserlookscanned.io...
Implement scanyourpdf.com in JavaScript. No backend servers needed.
ShakataGaNai · 4 years ago
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 · 4 years ago
Funny, my scanner has software that automatically corrects for most of these errors to make it look as non-scanned as possible.
simondotau · 4 years ago
> 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 · 4 years ago
> 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.

cercatrova · 4 years ago
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

Moto7451 · 4 years ago
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 · 4 years ago
I reckon you could sell this, a PDF printer driver that fakes the "scanned" look
dannygarcia · 4 years ago
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.
paulgb · 4 years ago
> 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.

ModernMech · 4 years ago
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.
jimmydorry · 4 years ago
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".
forum_ghost · 4 years ago
wet ink exists for a reason.

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

Bedon292 · 4 years ago
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.
seedgou · 4 years ago
Good idea! A random distribution on rotation seems a more user-friendly way instead of setting 10 rotation values.
fnordpiglet · 4 years ago
Obviously you need to randomly fold an edge and wrinkle a page too. Goddamn paper feeders.
shard · 4 years ago
It could, if the 10 pages are fed through a automatic feeding scanner which gives the same skew to all scanned pages.
Coryodaniel · 4 years ago
This is awesome. I’ve been using a gist[1] for years when dinosorgs need a wet signature

1. https://gist.github.com/andyrbell/25c8632e15d17c83a54602f6ac...

seedgou · 4 years ago
The site's logic is nearly identical to this gist: use ImageMagick to do the rotate, noise, etc.
teddyh · 4 years ago
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.
zw123456 · 4 years ago
True story:

A friend of mine got a letter from his neighbor's attorney bitching about his tree or something stupid. So he literally wiped his ass with it and then took a picture of it and emailed it back with the body of the email saying thanks, I was running out of TP.

can you add that feature ?

tyingq · 4 years ago
A somewhat related back-and-forth legal letter between two poo related companies: https://abovethelaw.com/uploads/2020/04/Poop.pdf
ada1981 · 4 years ago
This is a great PR move.

I’m sure this letter made the rounds; clowns on this big brand; and gets free exposure for the underdog. Worth the $500 to write the letter.

Will consider similar tactics in the future.

77pt77 · 4 years ago
How did that story end?
nervousvarun · 4 years ago
Not OP but almost certainly just fine (for the sender).

From personal experience 99% of what attorneys are paid to do is send threatening letters that have nothing to back them up.

DaltonCoffee · 4 years ago
Probably like most shitty litigation

Deleted Comment

moralestapia · 4 years ago
Great idea and props for shipping.

There's something extremely wrong with your implementation as it just takes too much to render every page.

I've done plenty of work in the past with both canvas and pdf.js (which is what you're using) and it shouldn't be that slow, at all. Perhaps you have a rogue loop that's calling a very expensive function on each pixel of every page, maybe?

Who knows, but for sure performance on that could be near real-time.

seedgou · 4 years ago
I didn't manipulate the data in pixel level. Maybe because I render PDF in 2x which causes 4x more pixels?
moralestapia · 4 years ago
That could be the case yes, still I feel it should be better, let me do a quick test as I have some spare time.
zikohh · 4 years ago
yeah even playing with the preview and using the sliders it's super slow apart from that it's amazing! Do some work on the perf pls.
redman25 · 4 years ago
I wrote a similar program using PDF.js that renders near real-time (https://parepdf.com). You should be able to queue it up without too much trouble. If you’re doing pixel level manipulation, you want to make sure you’re finishing within the browsers frame budget.
xyst · 4 years ago
Fun project. Thanks for sharing. Got a good laugh at this. Maybe add a “creased corner” feature and residual staple holes.
Cthulhu_ · 4 years ago
Would a residual ass print show up on scanned images? Asking for a friend.
matt_heimer · 4 years ago
Inserting fax headers and footers should be an option.
seedgou · 4 years ago
This is inspired by baicunko/scanyourpdf and previous HN link: https://news.ycombinator.com/item?id=23157408