Mechanize-driven PDF webservice commandline client
This commandline tool uses Ruby's mechanize to automate access to a PDF-processing webservice that the author currently uses manually through a browser interface, handling PDF tasks such as size optimization. The author would prefer a fully local solution but depends on the webservice because it solves PDF tasks locally unavailable tools handle poorly.
What it addresses
Local PDF tooling falls short: ghostscript produces much worse results (including size optimization), so the author relies on a webservice via a manual browser workflow and wants to automate it from the commandline.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
Mechanize-driven PDF webservice commandline client
This commandline tool uses Ruby's mechanize to automate access to a PDF-processing webservice that the author currently uses manually through a browser interface, handling PDF tasks such as size optimization. The author would prefer a fully local solution but depends on the webservice because it solves PDF tasks locally unavailable tools handle poorly.
Problem: Local PDF tooling falls short: ghostscript produces much worse results (including size optimization), so the author relies on a webservice via a manual browser workflow and wants to automate it from the commandline.
Posted by @shevy-java · Original source ↗
Source text · @shevy-java · · Source ↗
the task for today will be to use mechanize (in ruby) to automatically tap into a webservice which I use manually right now via a browser interface. I want to do this all from the commandline next. (Ideally I'd not want to depend on this and do it locally, but it does various things with .pdf files which I have not yet been able to do myself.