I'm using nodejs
and I'm processing PDFs. One thing I'd like to do is to outline all the fonts of the PDF (so that they are not selectable with the mouse cursor afterwards).
I tried the pdftk
's flatten
command (using a node wrapper), but I did not get what I wanted.
I may have a track in using inkscape
(command line), but I'm not even sure about how to do it. I really am looking for the easiest way to do that using nodejs
.
There might also be a track using ghostscript: https://stackoverflow.com/a/28798374/11348232. One notable thing to notice is that I don't use files on disk, but Buffer
objects, so it'd be painful to save the PDF locally then use the gs
command.
Thanks a lot.