The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

Archive for the ‘mankier’ Category

Installing Poppler on Windows via Chocolatey, which includes pdfimages for lossless extraction of images from PDF files

Posted by jpluimers on 2026/03/09

At the time of writing there was an almost 3 year old [Wayback/Archive] Chocolatey Software | Poppler 0.89.0 version so I filed the issue [Wayback/Archive] poppler 23.03 has been out for a few weeks, can you please update the build? · Issue #88 · chtof/chocolatey-packages mentioning [Wayback/Archive] Pull requests · oschwartz10612/poppler-windows

Poppler 23.03.0

Since that did not get really solved, I finally found out that after installing scoop, then scoop install poppler did work and installed version 23.08.0 (which I documented in [Wayback/Archive] Poppler version out of date · Issue #75 · chtof/chocolatey-packages installs from the most recent [Wayback/Archive] Releases · oschwartz10612/poppler-windows).

A very different approach is to install Poppler inside Windows Subsystem for Linux (WSL) as explained in [Wayback/Archive] Poppler On Windows. Python, PDFs, and Window’s Subsytem for… | by Matthew Earl Miller | Towards Data Science.

I needed Poppler (or actually the Windows equivalent of poppler-utils) of two reasons:

  1. I wanted to experiment with pdftotext as it has these very compelling command-line switches.
  2. I needed to export images for which pdfimages is the poppler tool to go.

pdftotext

Let’s start with qoutes from [Wayback/Archive] pdftotext: Portable Document Format (PDF) to text converter (version 3.03) | poppler-utils Commands | Man Pages | ManKier:

Read the rest of this entry »

Posted in *nix, *nix-tools, Chocolatey, man/manual pages, mankier, PDF, Power User, Windows | Tagged: , | Leave a Comment »

GitHub – kellyjonbrazil/jc: CLI tool and python library that converts the output of popular command-line tools and file-types to JSON or Dictionaries. This allows piping of output to tools like jq and simplifying automation scripts.

Posted by jpluimers on 2023/10/17

I already knew about jq and jo (output: the echo for JSON), but not yet about jc for JSON.

Like jq is for querying (the sed for JSON), jc tries to be the universal parser of common command-line tools into JSON:

[Wayback/Archive] kellyjonbrazil/jc: CLI tool and python library that converts the output of popular command-line tools and file-types to JSON or Dictionaries. This allows piping of output to tools like jq and simplifying automation scripts.

Via [Wayback/ArchiveKris on Twitter: ““Jc” verwandelt den Output von üblichen Linux Kommandozeilen Tools in JSON. “Jc” kann auch als Import in Python Programmen verwendet werden und mit subprocess kombiniert werden. Danke, ⁦@janwalzer⁩ und ⁦@the_mutax⁩ für den Tip. “

A few weeks later though, Kris discovered that command-line tools aren’t that portable in their output format: [Wayback/Archive] Kris on Twitter: “As much as I love the idea of @kellyjonbrazil’s jc, this is not a winnable game. sigh Probably still better than a self-cooked parser, but the slightest bit of extra makes it catch fire in multiple possible ways …”

Read the rest of this entry »

Posted in *nix, *nix-tools, bash, bash, Development, JavaScript/ECMAScript, jo, jq, JSON, man/manual pages, mankier, Power User, Python, Scripting, Software Development | Leave a Comment »