Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
"sourceType": "module",
"project": "./tsconfig.test.json"
},
"rules": {
"no-dupe-class-members": "off",
Expand All @@ -14,4 +15,4 @@
"env": {
"jest": true
}
}
}
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,18 @@ const options = { format: 'png' };
await input(inputPath, options).output(outputPath);
```

**Get the pdftocairo version**
``` typescript
import { version } from 'node-pdftocairo';

const versionString = await version();
// versionString will be something like:
// pdftocairo version 0.86.1
// Copyright 2005-2020 The Poppler Developers - http://poppler.freedesktop.org
// Copyright 1996-2011 Glyph & Cog, LLC

```

### Options
Reference: [Ubuntu Manpage: pdftocairo](http://manpages.ubuntu.com/manpages/bionic/man1/pdftocairo.1.html)

Expand Down
2 changes: 1 addition & 1 deletion jest.config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"globals": {
"ts-jest": {
"tsConfig": "./tsconfig.test.json"
"tsconfig": "./tsconfig.test.json"
}
},
"transform": {
Expand Down
Loading