Write a scrpt to download files, generate barcode and sort into zip archives by order number
Budget: $10 – $30 USD
I have some JSON with an order number and a project ID. The project ID is part of a download URL.
For each order number I want to download artwork from a URL, generate a PDF barcode and zip them together into a zip archive with the order number being the file name of the archive.
shell_exec isn't an option to use for this project, so there's two options for this:
1) do it entirely with PHP
2) create a shell script
If you do it with a shell script barcode is installed on VPS. I've been using it like this for example
ode -b 10035 -o 10035.ps
Then converting postscript to PDF
ps2pdf 10035.ps
Sample JSON attached.
For each order number I want to download artwork from a URL, generate a PDF barcode and zip them together into a zip archive with the order number being the file name of the archive.
shell_exec isn't an option to use for this project, so there's two options for this:
1) do it entirely with PHP
2) create a shell script
If you do it with a shell script barcode is installed on VPS. I've been using it like this for example
ode -b 10035 -o 10035.ps
Then converting postscript to PDF
ps2pdf 10035.ps
Sample JSON attached.