Rand Stats

PDF::Extract

zef:librasteve

raku PDF::Extract

Simple binding of the pdftotext command line utility

Installation

  1. brew install poppler (MacOS) or sudo apt-get install poppler-utils (ubuntu)
  2. zef install PDF::Extract

To install poppler on other popular (geddit?) systems such as Nix or Windows, please see the installation instructions here and use your Nix package manager (e.g. sudo aptitude on Debian) or go here for Windoze binaries (this module not yet tested on Windows).

Synopsis

use PDF::Extract;

my $extract = Extract.new: file => '../resources/sample.pdf';

say $extract.text;
say $extract.html;
say $extract.xml;

say $extract.so;   #test for PDF headers
say $extract.info;
say $extract.info<CreationDate>;
...

### Copyright
copyright(c) 2023 Henley Cloud Consulting Ltd.