Show HN: Make PDFs look scanned (CLI or in the browser via WASM)

github.com

96 points by overflowy 9 hours ago


I made this because the online "make my PDF look scanned" tools want you to upload your file to their servers, which feels sketchy at best. Also, I wasn't happy with the output they produce, I wanted something that looks realistic.

wan888888 - 8 hours ago

I'm having a similar use case from time to time, I just use imagemagick

magick -density 150 input.pdf \ -colorspace Gray \ -virtual-pixel White -background White \ -rotate 0.7 +repage \ -attenuate 0.45 +noise Gaussian \ -blur 0x0.4 \ -brightness-contrast -5x12 \ -compress jpeg -quality 78 scanned.pdf

kccqzy - 6 hours ago

I just display the PDF on my monitor and use my phone to take a photo of it. Scanner apps are good at eliminating moire patterns while accentuating the dust on my monitor. It looks highly realistic.

Phoenixhq - 19 minutes ago

It's pretty good, but there seem to be some similar products on the market that can convert locally without uploading.

mysterydip - 8 hours ago

I’m all for fun side projects, so don’t take this the wrong way. Does this have a practical use case? Like are people actually wanting to make their PDFs less legible? Usually I’m trying to do the opposite, clean up my scanned-in documents.

carsonye - 7 hours ago

Is there any good tool that does the opposite — turning scanned documents into clean PDFs? I’ve had that need recently.

janoelze - 5 hours ago

But… does it look scanned? https://i.imgur.com/ENKZV7s.png

echoangle - 8 hours ago

If you’re interested in another suggestion: maybe allow image output too since that seems to be one of the steps in your pipeline? Maybe for some people using the jpg or a png directly is better than the final pdf.

recroad - 2 hours ago

This has been working for me

https://lookscanned.io/en/scan

hk1337 - 2 hours ago

Basically, you’re converting it to an image-based PDF so they cannot just scrape the text off of it but would have to use OCR?

sublinear - 7 hours ago

In the example image, the edge gradient bevels give it away.

There might be extra stuff that can be done to remedy that with this tool, but I'm not sure I'd ever use this anyway.

ashton314 - 8 hours ago

This needs a flag to insert random blank pages

Cbagenal - 2 hours ago

cool idea, looks sooo realistic

costabrosky - 9 hours ago

Useful tool

blopp99 - 9 hours ago

Niceee

colesantiago - 7 hours ago

Thank you for making this a free tool.

There are too many PDF tools that are unnecessarily paywalled, or have a paid tier that don't make any sense.

We need more tools from paid ones that should be completely free and OSS.

- 9 hours ago
[deleted]
huflungdung - 5 hours ago

[dead]

booleandilemma - 5 hours ago

[dead]

Rajikshank - 5 hours ago

Great idea