Proof of concept - sewing plotter pdf file to image converter
Save hundreds of (A4) paper sheets/time and pausch your files with help of a (DLP) projector.
Download nodejs script and example json config file.
Install ImageMagick and check if converter execute is known by your host system.
e.g. Ubuntu install example:
sudo apt-get install imagemagick ghostscript poppler-utils
Install node (12.x tested) and node modules
pdf to image
npm install pdf-image
and jimp for image manuipulation
npm install jimp
Each pdf file requires a config file. Three things must be defined:
- page margin for left, top right and bottom independetly
- page count in x and y direction
- matrix with page numbers starting with index 0
Options
- paper grid option should be true if a second file with original paper boarder lines is required (as size reference)
Put the sewing plotter pdf file in the same directory like the json file. Both must have the same file name.
Command line options req.: [path] [filename] [dpi]
nodejs generateImage.js /home/user/myplottery Chino_kids 150
- Sebastian Förster - Initial work - Counterfeiter
This project is licensed under the MIT License - see the LICENSE.md file for details
- check command line parameters and config file
- build a nice front end and discard json config file