Re:Ask HN: Small scripts, hacks and automations you're proud...
by mo_42 on Monday March 13, 2023 @02:49AM
(#35132018)
I use the following tiny script to make PDFs look like they have been scanned. There are still entities that require you to physically sign a document and scan it. So far, everyone accepted PDFs like these:
[ Parent
| on HN ]
Re:Ask HN: Small scripts, hacks and automations you're proud...
by melagonster on Monday March 13, 2023 @07:10AM
(#35134050)
this surprise me, I don't know pdf can work on this way haha.
Re:Ask HN: Small scripts, hacks and automations you're proud...
by lloydatkinson on Monday March 13, 2023 @07:53AM
(#35134411)
Do you have a before and after of a sample pdf? Sounds great.
How do you use it? I don't see any PDF file paths?
Re:Ask HN: Small scripts, hacks and automations you're proud...
by mo_42 on Monday March 13, 2023 @01:00PM
(#35138625)
The first argument is the input file and the second one the output:
./script.sh original.pdf scanned.pdf
Re:Ask HN: Small scripts, hacks and automations you're proud...
by kilroy123 on Monday March 13, 2023 @08:13AM
(#35134619)
So awesome! Just tried and it worked great.
Re:Ask HN: Small scripts, hacks and automations you're proud...
by spaboleo on Monday March 13, 2023 @07:00PM
(#35144377)
This is awesome!
It would be perfect if there an occasional artefact line crossing the entire page vertically could be added. You know, those lines caused by an old crusty ink jet print head. Also a visibly cast shadow by the allegedly scanned edge of the paper due to misalignment on the flat bed would add to the illusion.