1.0.3 • Published 2 years ago
cp-image-transfer-to-docx v1.0.3
Installation
Local installation
npm i cp-image-transfer-to-docx
Global installation
npm i -g cp-image-transfer-to-docx
Global installation will give you image_transfer command in cmd
How to use it
For Image Transfer to docx file
To transfer images from one specific folder to the word docx file. Where 1st page will be blank and rest of the pages will be filled with each images of source folder.Height and width of the image is optional, if not provided it will be 500 X 500. Also file name is optional, if not provided, it will create demo.docx file in given destination folder
image_transfer transfer --src="Image source folder path" --dest="destination folder where docx file will be generated" --width="width of the picture, this is optional, if not provided, default is 500" --height="height of the picture, this is optional, if not provided default is 500" --fileName="Name of docx file, this is optional, if not provided default will be demo.docx"
You can also use shortcuts for all arguments as mentioned below
Example:
image_transfer transfer -s="Image source folder path" -d="destination folder where docx file will be generated" -w="width of the picture, this is optional, if not provided, default is 500" -h="height of the picture, this is optional, if not provided default is 500" -f="Name of docx file, this is optional, if not provided default will be demo.docx"
Demo example:
image_transfer transfer -s="C:\Users\abc\Documents\myImages\images" -d="C:\Users\abc\Documents\mydoc\docs" -f="cp.docx"