This project extracts images from a PDF and names them according to a table in the PDF. The images are saved using the number
field from the table entries.
brew install pkg-config
brew install pixman cairo pango libpng jpeg giflib librsvg
Node.js (>= 12.x) npm (>= 6.x)
-
Clone the repository:
git clone [email protected]:Chris-Agnew/pdf-image-extractor.git cd pdf-image-extractor
npm install
-
Place PDF file in root project directory
-
Update PDF Path in extractor.ts const pdfPath = './your-pdf-file-name.pdf'
4.Run Script
npx ts-node extractor.ts