Relative Content

Tag Archive for macospdfsedterminalautomation

Editing text in a pdf file from Mac Shortcuts App – by running a shell script

I’m trying to automate some forms using the apple shortcuts app and it’s built in option to run shell script. Basically I have a default pdf that I’ve created for a client that says “dear client”, and I want it to automatically change the name of in the pdf to the client’s name (which I input at the start of the shortcut). I’m using homebrew and trying to use packages like pdfgrep, qpdf, and sed. I also have purchased the mac version of PDFexpert, if I can use some of those commands to more easily edit the files.