@idrsolutions/buildvu
BuildVu Node.js Client is the Node.js API for IDRSolutions' BuildVu Microservice Example.
Last updated 5 months ago by idr-solutions .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @idrsolutions/buildvu 
SYNC missed versions from official npm registry.

BuildVu Node.js Client

Convert PDF to HTML5 or SVG with Node.js, using the BuildVu Node.js Client to interact with IDRsolutions' BuildVu Microservice Example.

The BuildVu Microservice Example is an open source project that allows you to convert PDF to HTML5 or SVG by running BuildVu as an online service.

IDRsolutions offer a free trial service for running BuildVu with Node.js, more infomation on this can be found here.


Installation

npm install @idrsolutions/buildvu

Usage

Basic: (Upload)

var buildvu = require('@idrsolutions/buildvu');

var endpoint = "http://localhost:8080/buildvu-microservice/";

buildvu.convert({
    endpoint: endpoint,
    parameters: {
        // Upload a local file to the server
        input: buildvu.UPLOAD,
        file: "path/to/file.pdf",
        token: "token-if-required"
    },
    
    failure: function(e) {
        console.log(e);
    },
    progress: function() { },
    success: function(e) {
        console.log('Converted ' + e.downloadUrl);
    }

});

Basic: (Download)

var buildvu = require('@idrsolutions/buildvu');

var endpoint = "http://localhost:8080/buildvu-microservice/";

buildvu.convert({
    endpoint: endpoint,
    parameters: {
        // Download a remote file on the server
        input: buildvu.DOWNLOAD,
        url: 'http://example/url/file.pdf'
    },

    failure: function(e) {
        console.log(e);
    },
    progress: function() { },
    success: function(e) {
        console.log('Converted ' + e.downloadUrl);
    }
    
});

The parameters object should contain the parameters that are sent to the API See the API for more details.

See example.js for examples.


Who do I talk to?

Found a bug, or have a suggestion / improvement? Let us know through the Issues page.

Got questions? You can contact us here.


Code of Conduct

Short version: Don't be an awful person.

Longer version: Everyone interacting in the BuildVu Node.js Client project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.


Copyright 2018 IDRsolutions

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Current Tags

  • 4.1.3                                ...           latest (5 months ago)

12 Versions

  • 4.1.3                                ...           5 months ago
  • 4.0.2                                ...           9 months ago
  • 4.0.1                                ...           9 months ago
  • 3.0.0                                ...           a year ago
  • 2.1.1                                ...           2 years ago
  • 2.1.0                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Downloads
Today 0
This Week 12
This Month 13
Last Day 0
Last Week 0
Last Month 4
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |