← All projects
Project record1 mention
Originally shared on Hacker News

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.

Last shared
01 / The problem

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.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. 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.