I quite like this one, it's fast, as weasyprint would take too long and not produce the correct input for me :
google-chrome --headless --disable-gpu --print-to-pdf="out" "input.pdf"
Example on macOS :
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --headless --disable-gpu --print-to-pdf="out" "input.pdf"