👩🏽💻 Turn any link to a pdf
This is an elegant and simple api that recieves any link and uses puppeteer to screenshot that link into png format and then uses imagemagick to convert to pdf the reason for this is because sometime when converting html to pdf it does not come out the desired way
- Make sure to have imagemagick installed
sudo apt install imagemagick
- Make sure you have nodejs installed
📌 First clone the repo:
git clone https://github.com/micaelillos/LinkToPdf.git
📌 Change Directory
cd LinkToPdf
📌 Next install dependecies
npm install
📌 Run project
npm run start
📌 To convert link to pdf enter this in a browser
Example:
Add support for cropping & multiple pages
- For help or questions - Get in touch - Contact me