Skip to content

Commit

Permalink
version bumped
Browse files Browse the repository at this point in the history
  • Loading branch information
iapain committed Dec 5, 2012
1 parent 78a13f2 commit 6534b49
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 13 deletions.
2 changes: 2 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Deepak Thukral<iapain@iapa.in>

8 changes: 8 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Copyright (c) 2012 Fagbokforlaget V&B AS

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
REPORTER = list

test:
@NODE_ENV=test ./node_modules/.bin/mocha -u bdd --timeout 5s --reporter $(REPORTER)
@NODE_ENV=test ./node_modules/.bin/mocha -u bdd --timeout 10s --reporter $(REPORTER)

test-cov: lib-cov
@PDFTOHTML_COV=1 $(MAKE) test REPORTER=html-cov > test/coverage.html
Expand Down
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
## pdftohtmljs - pdf2htmlEx shell wrapper for Node.js

pdftohtmljs provides access to pdf2htmlEX via shell in node.js programs. Current version uses ShellJS for platform independent execution of shell commands.
pdftohtmljs provides access to [pdf2htmlEX](https://github.com/coolwanglu/pdf2htmlEX) via shell in node.js programs. Current version uses ShellJS for platform independent execution of shell commands.

### Installation

via npm:

```
Expand All @@ -13,23 +12,23 @@ $ npm install pdftohtmljs
### Usage
```
var pdftohtml = require('pdftohtmljs'),
transcoder = new pdftohtml('tests/pdfs/sample.pdf');
converter = new pdftohtml('test/pdfs/sample.pdf');
transcoder.preset('default');
converter.preset('default');
transcoder.success(function() {
converter.success(function() {
console.log("convertion done");
});
transcoder.error(function(error) {
converter.error(function(error) {
console.log("conversion error: " + error);
});
transcoder.progress(function(ret) {
converter.progress(function(ret) {
console.log ((ret.current*100.0)/ret.total + " %");
});
transcoder.convert();
converter.convert();
```

### Tests
Expand Down
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "pdftohtmljs",
"version": "0.0.1",
"version": "0.1.0",
"url": "https://github.com/fagbokforlaget/pdftohtmljs/issues",
"description": "PDF to HTML (pdf2htmlex) shell wrapper",
"main": "index.js",
"scripts": {
Expand All @@ -10,14 +11,17 @@
"shelljs": "*"
, "mocha": "*"
},
"repository": "",
"repository": {
"type": "git",
"url": "https://github.com/fagbokforlaget/pdftohtmljs.git"
},
"keywords": [
"pdf2htmlex",
"shelljs",
"pdf",
"html5",
"converter"
],
"author": "Deepak Thukral",
"license": "BSD"
"author": "Deepak Thukral <iapain@iapa.in> http://iapa.in",
"license": "MIT"
}
1 change: 1 addition & 0 deletions test/convert.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ var assert = require('assert'),
pdftohtml = require('../index.js');

describe('pdftohtmljs', function(){

describe('add_options', function(){
it('should add options', function(){
var transcoder = new pdftohtml(__dirname + '/pdfs/invalidfile.pdf');
Expand Down

0 comments on commit 6534b49

Please sign in to comment.