Do you have a PDF form you need to fill out? Perhaps it's Form I-864 but the assholes who created the form didn't make all the fields editable, so there is no way to complete it on the computer? But you live in 2023 and priting it out, only to fill it out by hand, and then to have to scan it in to submit it is insane, so you spend a few hours writing code to make it work?
Just use these scripts to convert your PDF into JPG, edit it in Photoshop or some software, and then convert the JPG files into a PDF.
If you're new to coding follow the directions below:
Please read: Terminal is a tool you use to make your computer execute commands (anything formatted this way below is a command you run in your terminal). There are many terminals to choose from:
v18 but not v20)git clone https://github.com/whyboris/PDF-to-JPG-to-PDFcd PDF-to-JPG-to-PDFnpm installNow you're ready for the last steps:
input.pdf (or update the first line of pdf2jpg.js to the name of your PDF)npm run tojpg and you have JPG images in the /jpg folderAfter editing your images in the /jpg folder, run npm run topdf and you'll have a PDF generated from your images.
To generate a PDF with only selected pages from another PDF, update split.js file and run npm run extract.
8 commits
JavaScript
100.0%
Do you have a PDF form you need to fill out? Perhaps it's Form I-864 but the assholes who created the form didn't make all the fields editable, so there is no way to complete it on the computer? But you live in 2023 and priting it out, only to fill it out by hand, and then to have to scan it in to submit it is insane, so you spend a few hours writing code to make it work?
Just use these scripts to convert your PDF into JPG, edit it in Photoshop or some software, and then convert the JPG files into a PDF.
If you're new to coding follow the directions below:
Please read: Terminal is a tool you use to make your computer execute commands (anything formatted this way below is a command you run in your terminal). There are many terminals to choose from:
v18 but not v20)git clone https://github.com/whyboris/PDF-to-JPG-to-PDFcd PDF-to-JPG-to-PDFnpm installNow you're ready for the last steps:
input.pdf (or update the first line of pdf2jpg.js to the name of your PDF)npm run tojpg and you have JPG images in the /jpg folderAfter editing your images in the /jpg folder, run npm run topdf and you'll have a PDF generated from your images.
To generate a PDF with only selected pages from another PDF, update split.js file and run npm run extract.
8 commits
JavaScript
100.0%