Poppler is a free software utility library for rendering Portable Document Format (PDF) documents. Its development is supported by freedesktop.org.
Website: https://poppler.freedesktop.org/
Read more: https://en.wikipedia.org/wiki/Poppler_(software)
Step 1: install poppler
$ apt-cyg install poppler Installing poppler --2024-02-18 12:10:40-- http://cygwin.mirror.constant.com//x86_64/release/poppler/poppler-21.01.0-1.tar.xz Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83 Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 728484 (711K) [application/octet-stream] Saving to: ‘poppler-21.01.0-1.tar.xz’ poppler-21.01.0-1.t 100%[===================>] 711.41K 130KB/s in 5.4s 2024-02-18 12:10:46 (131 KB/s) - ‘poppler-21.01.0-1.tar.xz’ saved [728484/728484] poppler-21.01.0-1.tar.xz: OK Unpacking... Package poppler installed
Step 2: install dependencies
$ apt-cyg install libcairo2 $ apt-cyg install libpoppler106 $ apt-cyg install libfreetype6 $ apt-cyg install liblcms2_2 $ apt-cyg install libstdc++6 $ apt-cyg install libcurl4 $ apt-cyg install libfontconfig1 $ apt-cyg install libgcc1 $ apt-cyg install libjpeg8 $ apt-cyg install libnspr4 $ apt-cyg install libnss3 $ apt-cyg install libopenjp2_7 $ apt-cyg install libpng16 $ apt-cyg install libtiff6 $ apt-cyg install poppler-data $ apt-cyg install zlib0
Result:
$ apt-cyg install libcairo2 Installing libcairo2 --2024-02-18 12:17:11-- http://cygwin.mirror.constant.com//x86_64/release/cairo/libcairo2/libcairo2-1.17.4-1.tar.xz Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83 Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 618336 (604K) [application/octet-stream] Saving to: ‘libcairo2-1.17.4-1.tar.xz’ libcairo2-1.17.4-1. 100%[===================>] 603.84K 165KB/s in 4.0s 2024-02-18 12:17:16 (151 KB/s) - ‘libcairo2-1.17.4-1.tar.xz’ saved [618336/618336] libcairo2-1.17.4-1.tar.xz: OK Unpacking... Package libcairo2 installed $ apt-cyg install libpoppler106 Installing libpoppler106 --2024-02-18 12:17:44-- http://cygwin.mirror.constant.com//x86_64/release/poppler/libpoppler106/libpoppler106-21.01.0-1.tar.xz Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83 Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 803572 (785K) [application/octet-stream] Saving to: ‘libpoppler106-21.01.0-1.tar.xz’ libpoppler106-21.01 100%[===================>] 784.74K 228KB/s in 3.4s 2024-02-18 12:17:48 (228 KB/s) - ‘libpoppler106-21.01.0-1.tar.xz’ saved [803572/803572] libpoppler106-21.01.0-1.tar.xz: OK Unpacking... Package libpoppler106 installed $ apt-cyg install libfreetype6 Installing libfreetype6 --2024-02-18 12:18:00-- http://cygwin.mirror.constant.com//x86_64/release/freetype2/libfreetype6/libfreetype6-2.13.1-1.tar.xz Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83 Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 468616 (458K) [application/octet-stream] Saving to: ‘libfreetype6-2.13.1-1.tar.xz’ libfreetype6-2.13.1 100%[===================>] 457.63K 45.1KB/s in 8.5s 2024-02-18 12:18:09 (53.9 KB/s) - ‘libfreetype6-2.13.1-1.tar.xz’ saved [468616/468616] libfreetype6-2.13.1-1.tar.xz: OK Unpacking... Package libfreetype6 installed $ apt-cyg install liblcms2_2 Installing liblcms2_2 --2024-02-18 12:18:19-- http://cygwin.mirror.constant.com//x86_64/release/lcms2/liblcms2_2/liblcms2_2-2.15-1.tar.xz Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83 Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 130728 (128K) [application/octet-stream] Saving to: ‘liblcms2_2-2.15-1.tar.xz’ liblcms2_2-2.15-1.t 100%[===================>] 127.66K 139KB/s in 0.9s 2024-02-18 12:18:21 (139 KB/s) - ‘liblcms2_2-2.15-1.tar.xz’ saved [130728/130728] liblcms2_2-2.15-1.tar.xz: OK Unpacking... Package liblcms2_2 installed $ apt-cyg install libstdc++6 Package libstdc++6 is already installed, skipping $ apt-cyg install libcurl4 Package libcurl4 is already installed, skipping $ apt-cyg install libfontconfig1 Installing libfontconfig1 --2024-02-18 12:24:10-- http://cygwin.mirror.constant.com//x86_64/release/fontconfig/libfontconfig1/libfontconfig1-2.13.1-2.tar.xz Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83 Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 106368 (104K) [application/octet-stream] Saving to: ‘libfontconfig1-2.13.1-2.tar.xz’ libfontconfig1-2.13 100%[===================>] 103.88K 127KB/s in 0.8s 2024-02-18 12:24:12 (127 KB/s) - ‘libfontconfig1-2.13.1-2.tar.xz’ saved [106368/106368] libfontconfig1-2.13.1-2.tar.xz: OK Unpacking... Fontconfig error: Cannot load default config file Package libfontconfig1 installed $ apt-cyg install libgcc1 Package libgcc1 is already installed, skipping $ apt-cyg install libjpeg8 Package libjpeg8 is already installed, skipping $ apt-cyg install libnspr4 Installing libnspr4 --2024-02-18 12:24:38-- http://cygwin.mirror.constant.com//x86_64/release/nspr/libnspr4/libnspr4-4.21-1.tar.xz Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83 Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 106216 (104K) [application/octet-stream] Saving to: ‘libnspr4-4.21-1.tar.xz’ libnspr4-4.21-1.tar 100%[===================>] 103.73K 125KB/s in 0.8s 2024-02-18 12:24:40 (125 KB/s) - ‘libnspr4-4.21-1.tar.xz’ saved [106216/106216] libnspr4-4.21-1.tar.xz: OK Unpacking... Package libnspr4 installed $ apt-cyg install libnss3 Installing libnss3 --2024-02-18 12:24:47-- http://cygwin.mirror.constant.com//x86_64/release/nss/libnss3/libnss3-3.45-1.tar.xz Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83 Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1027240 (1003K) [application/octet-stream] Saving to: ‘libnss3-3.45-1.tar.xz’ libnss3-3.45-1.tar. 100%[===================>] 1003K 56.6KB/s in 15s 2024-02-18 12:25:02 (66.3 KB/s) - ‘libnss3-3.45-1.tar.xz’ saved [1027240/1027240] libnss3-3.45-1.tar.xz: OK Unpacking... Running /etc/postinstall/nss.sh Package libnss3 installed $ apt-cyg install libopenjp2_7 Package libopenjp2_7 is already installed, skipping $ apt-cyg install libpng16 Package libpng16 is already installed, skipping $ apt-cyg install libtiff6 Package libtiff6 is already installed, skipping $ apt-cyg install poppler-data Installing poppler-data --2024-02-18 12:25:39-- http://cygwin.mirror.constant.com//noarch/release/poppler-data/poppler-data-0.4.10-1.tar.xz Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83 Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1600620 (1.5M) [application/octet-stream] Saving to: ‘poppler-data-0.4.10-1.tar.xz’ poppler-data-0.4.10 100%[===================>] 1.53M 165KB/s in 9.7s 2024-02-18 12:25:49 (161 KB/s) - ‘poppler-data-0.4.10-1.tar.xz’ saved [1600620/1600620] poppler-data-0.4.10-1.tar.xz: OK Unpacking... Package poppler-data installed $ apt-cyg install zlib0 Package zlib0 is already installed, skipping
Done! check
$ pdfimages pdfimages version 21.01.0 Copyright 2005-2021 The Poppler Developers - http://poppler.freedesktop.org Copyright 1996-2011 Glyph & Cog, LLC Usage: pdfimages [options] <PDF-file> <image-root> -f <int> : first page to convert -l <int> : last page to convert -png : change the default output format to PNG -tiff : change the default output format to TIFF -j : write JPEG images as JPEG files -jp2 : write JPEG2000 images as JP2 files -jbig2 : write JBIG2 images as JBIG2 files -ccitt : write CCITT images as CCITT files -all : equivalent to -png -tiff -j -jp2 -jbig2 -ccitt -list : print list of images instead of saving -opw <string> : owner password (for encrypted files) -upw <string> : user password (for encrypted files) -p : include page numbers in output file names -q : don't print any messages or errors -v : print copyright and version info -h : print usage information -help : print usage information --help : print usage information -? : print usage information