I have a web application (PHP / MySQL) running on a remote Debian Linux server. Essentially, I'm looking for recommendations on how I can have the server load a URL locally (PHP file) parse it correctly (including CSS) and print the output of the PHP file to a local printer.
I'm trying to avoid having to generate a PDF file locally and print that each time if possible.
Something involving shell_exec would work.
Is there any program that I could use from the command line that could load a URL (need to pass GET variables) and then print the result to a printer? I have the printer already set up in CUPS. Neither Links or Lynx see to understand CSS.