This is a simple code for converting array of images to pdf(image urls,image dir,image paths)
const urlPDF = require('./App')
urlPDF(['https://timeandtidewatches.com/wp-content/uploads/2020/12/Mission-Impossible-Fallout-pc-games_b2article_artwork.jpg', 'https://i.redd.it/inh40ta5xww51.jpg', 'https://i0.wp.com/thequotes.me/wp-content/uploads/2017/07/wp-image-770695090.jpg?fit=1200%2C800&ssl=1', 'https://static1.colliderimages.com/wordpress/wp-content/uploads/2021/08/Mission-Impossible-Ghost-Protocol-Villain.jpg', 'https://i.pinimg.com/originals/88/30/ba/8830ba2ea15483d8e69d2a6b3fa7afeb.jpg', 'https://alternativemovieposters.com/wp-content/uploads/2020/05/andreypankov_mifallout.jpg', './test/input/'], './test/output/out.pdf')
$ npx url-pdf -o <path> <input image paths>
$ npm install -g url-pdf
$ url-pdf -o <path> <input image paths>
<input image paths>
is optional(by default it will take cwd)
💖 Donate
👤 Alestor Aldous
- Twitter: @alestor123
- Github: @alestor123
MIT
Copyright © 2022 Alestor Aldous.