First, we need to open a shell to the PDF tools Docker container:
docker run --rm -it -v ${PWD}:/pdf gkmr/pdf-tools:latest /bin/sh
Then we need to run the following commands:
cd /pdf
wget https://raw.githubusercontent.com/Distrotech/ghostscript/distrotech-ghostscript-9.10/toolbin/extractFonts.ps
gs -q -dNODISPLAY ./extractFonts.ps -c "(/pdf/filename.pdf) extractFonts quit"
exit
Second, we need to open a shell to the font tools Docker container:
docker run --rm -it -v ${PWD}:/fonts sandinh/fonttools:latest /bin/sh
Then we need to run the following commands: