GithubHelp home page GithubHelp logo

cloudconvert-cli's Introduction

Command Line Interface for CloudConvert

This CLI for the CloudConvert API v2 allows easy and fast conversions of files using the terminal.

Installation

As this CLI is based on the cloudconvert-node module, node.js is required.

npm install -g cloudconvert-cli

And set your CloudConvert API v2 Key as enviroment variable:

export CLOUDCONVERT_API_KEY=your_key

Usage

To convert input.pdf to jpg:

$ cloudconvert convert -f jpg input.pdf
✔ Done!

Batch processing is supported:

$ cloudconvert convert -f jpg file1.pdf file2.pdf file3.pdf
$ cloudconvert convert -f jpg folder/*.*

You can set conversion specific parameters using the -p argument. For example, if you would like to get the first page of a PDF resized to the width of 250:

$ cloudconvert convert -f jpg -p.pages=1-1 -p.width=250 input.pdf

The best way to find out the possible parameters and values is using the Job Builder.

Optimize

$ cloudconvert optimize input.pdf
✔ Done!
ℹ Task `process`: File size reduced by 12%

Merge

$ cloudconvert merge file1.pdf file2.pdf

Capture Website

$ cloudconvert capture-website -f pdf https://www.google.com

Create Thumbnail

$ cloudconvert thumbnail -f png file1.pdf 

All Options

$ cloudconvert --help

cloudconvert <command>

Commands:
  cloudconvert convert <files..>      Convert files to an output format
  cloudconvert optimize <files..>     Optimize and compress files
  cloudconvert merge <files..>        Merge files to a single PDF
  cloudconvert capture-website <url>  Capture a website as PDF, PNG or JPG
  cloudconvert thumbnail <files..>    Create thumbnails

Options:
  --version        Show version number                                 [boolean]
  --apikey         Set the API key. You can get your API key here:
                   https://cloudconvert.com/dashboard/api/v2/keys
         [string] [required] [default: CLOUDCONVERT_API_KEY enviroment variable]
  --sandbox        Use the CloudConvert Sandbox API   [boolean] [default: false]
  --outputdir      Set the directory for storing the output files. defaults to
                   the working directory                                [string]
  --parameter, -p  Send custom parameters with the task payload. Use the dot
                   notation, for example: -p.engine=office
  --help           Show help                                           [boolean]


Resources

cloudconvert-cli's People

Contributors

josiasmontag avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cloudconvert-cli's Issues

NO ICNS SUPPORT

...All over the web pages for LCD laymen, it indicates that there is ICNS support. There is not.

please add it.

Thank you!

Slowly
IT Pro and tech geek
NOT lowest-common-denominator

Request failed with status code 403

Hello updated to macosx Mojave (used cloudconvert before without problems) updated script to latest version and have this error with any file

any idea what could be wrong, im using API V2 key

⠇ Downloading PRI_DLBT1810589EN02.pdf(node:2245) UnhandledPromiseRejectionWarning: Error: Request failed with status code 403 at createError (/usr/local/lib/node_modules/cloudconvert-cli/node_modules/axios/lib/core/createError.js:16:15) at settle (/usr/local/lib/node_modules/cloudconvert-cli/node_modules/axios/lib/core/settle.js:17:12)

thanks Jan

Error connecting key

C:\Windows\system32>export CLOUDCONVERT_API_KEY=iHfh6UVVWkbpV8z1f1pycY2yiyKsfb9ZBUVQ9d5vUP0cM67qmBA6DtVpXIglhXQe

"export" is not an internal or external command, executable program or batch file.

Help please i cant connect the key in command line

Error when batch converting

I'm running batch convert to pdf but always get following error:

 if (fn === null) throw new Error("Callback was already called.");---------------] 0%  Starting...
                             ^  ->  pdf  [--------------------------------------------------] 0%  Starting...
Starting...
Error: Callback was already called.
    at /usr/local/lib/node_modules/cloudconvert-cli/node_modules/async/lib/async.js:43:36
    at /usr/local/lib/node_modules/cloudconvert-cli/node_modules/async/lib/async.js:358:17
    at Process.<anonymous> (/usr/local/lib/node_modules/cloudconvert-cli/lib/cli.js:50:13)
    at emitOne (events.js:115:13)
    at Process.emit (events.js:210:7)
    at /usr/local/lib/node_modules/cloudconvert-cli/node_modules/cloudconvert/lib/api.js:193:41
    at /usr/local/lib/node_modules/cloudconvert-cli/node_modules/cloudconvert/lib/process.js:269:17
    at /usr/local/lib/node_modules/cloudconvert-cli/node_modules/cloudconvert/lib/process.js:138:17
    at Request._callback (/usr/local/lib/node_modules/cloudconvert-cli/node_modules/cloudconvert/lib/api.js:46:17)
    at Request.self.callback (/usr/local/lib/node_modules/cloudconvert-cli/node_modules/request/request.js:188:22)

Node version: v8.1.3

What could the issue be?

this.stream.clearLine is not a function

Running from command line everything works fine. But from a script it fails:

node_modules/cloudconvert-cli/lib/multibar.js:43
this.stream.clearLine();
^
TypeError: this.stream.clearLine is not a function at Multibar.terminate (node_modules/cloudconvert-cli/lib/multibar.js:43:21) at ProgressBar.bar.terminate (node_modules/cloudconvert-cli/lib/multibar.js:34:22) at ProgressBar.tick (node_modules/cloudconvert-cli/node_modules/progress/lib/node-progress.js:103:10) at Multibar.tick (node_modules/cloudconvert-cli/lib/multibar.js:57:17) at ProgressBar.bar.tick (node_modules/cloudconvert-cli/lib/multibar.js:29:18) at ProgressBar.update (node_modules/cloudconvert-cli/node_modules/progress/lib/node-progress.js:199:8) at Process.<anonymous> (node_modules/cloudconvert-cli/lib/cli.js:56:17) at Process.emit (events.js:189:13) at node_modules/cloudconvert-cli/node_modules/cloudconvert/lib/process.js:442:22 at node_modules/cloudconvert-cli/node_modules/cloudconvert/node_modules/async/dist/async.js:473:16

Nested directory tree

I would like to preserve the folder structure when I am converting files that are deeply nested. Any suggestion?

Unclear if the 2.3.5 fix is working right for this?

I have it set to use the 2.0.3 version in my package.json file and have pushed that to heroku, but it doesn't fix the issue for heroku or locally.

cloudconvert/cloudconvert-node#109

The above suggests there may be additional change(s) required than just upgrading the required version.

I'm in contact with support as well on this as well, but unclear how to resolve. My only usage for this is to take an input excel file and convert it into a CSV for more efficient processing (Ruby is a RAM hog for large excel files).

China users network problem

Hi, am a user from china, when converting docx to pdf success, download the result pdf file is quite slowly, do you guys have any plan adding a server node in HongKong or some where in Asia ?

VFVS.service

VFS for Git 1.0.21014.1 - 'GVFS.Service' Unquoted Service Path # Date: 2021-2-6 #'Notice' Author: Mohammed Alshehri # Vendor Homepage: https://vfsforgit.org/ # Software Link: https://github.com/microsoft/VFSForGit/releases/download/v1.0.21014.1/SetupGVFS.1.0.21014.1.exe # Version: 1.0.21014.1 # Tested on: Microsoft Windows 10 Education - 10.0.17763 N/A Build 17763 # Service info: C:\Users\m507>sc qc GVFS.Service [SC] QueryServiceConfig SUCCESS SERVICE_NAME: GVFS.Service TYPE : 10 WIN32_OWN_PROCESS START_TYPE : 2 AUTO_START ERROR_CONTROL : 1 NORMAL BINARY_PATH_NAME : C:\Program Files\GVFS\GVFS.Service.exe LOAD_ORDER_GROUP : TAG : 0 DISPLAY_NAME : GVFS.Service DEPENDENCIES : SERVICE_START_NAME : LocalSystem C:\Users\m507>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.