Skip to content

Commit

Permalink
updated tests and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Trey Smith committed Feb 17, 2022
1 parent 054ed21 commit a475d95
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ If you want to use it with linux, you will need to install ghostscript via your
> sudo apt-get install ghostscript
~~~

### Mac OSX
You will need to install ghostscript on mac using brew
~~~
brew install ghostscript
~~~

---
## Examples
here some examples how to use:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pdf2png-ts",
"version": "0.0.12",
"version": "0.1.0",
"description": "Takes a PDF-document and converts and delivers a PNG (Typescript Support and simplified dependencies)",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion test/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const PDFConvert = require ("../dist/index.js").default;

// const buffer = readFileSync("multipage.pdf");

const pdfConverter = new PDFConvert("https://acplrollandcenterblob.blob.core.windows.net/cms-assets/436dd470-b1cf-11eb-936b-75a3a36a6a90.pdf");
const pdfConverter = new PDFConvert("https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf");

pdfConverter.getPageCount()
.then(pages => {
Expand Down
Empty file removed test/example.png
Empty file.

0 comments on commit a475d95

Please sign in to comment.