I would like to print a file (particularly a fillable pdf) to a pdf (to bake in the changable forms) from command-line.
So far, I've got this:
Get-Content input.pdf | Out-Printer -name "Microsoft Print to PDF"
There are two issues with this.
(1) I need to choose output file location and name. Is there a way to set the output file path and name in-line.
(2) Even when I selecet a directory and type in the file name and even though it shows the printing modal dialogue, it says it prints page n (I have waited up 60+ pages printed) and seams to never stop. However, the input.pdf is only a single-age document
that contains only text (using fonts FreeMono and FreeMonoBold of different size) and some basic table. It should be easily printable.