-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a new method to read a specific page number
- Loading branch information
Showing
7 changed files
with
90 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,54 @@ | ||
{ | ||
"name": "pdf-to-img", | ||
"version": "4.0.0", | ||
"author": "Kyle Hensel", | ||
"description": "📃📸 Converts PDFs to images in nodejs", | ||
"exports": "./dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"type": "module", | ||
"license": "MIT", | ||
"files": [ | ||
"dist" | ||
], | ||
"keywords": [ | ||
"pdf", | ||
"pdfjs", | ||
"pdf-to-img", | ||
"pdf-to-png", | ||
"vitest", | ||
"jest" | ||
], | ||
"repository": "https://github.com/k-yle/pdf-to-img", | ||
"scripts": { | ||
"build": "tsc && rm -rf dist && mv temp/src dist && rm -rf temp", | ||
"lint": "eslint --ignore-path .gitignore .", | ||
"test": "vitest --pool=forks", | ||
"trypublish": "npm publish --provenance || true" | ||
}, | ||
"bin": { | ||
"pdf2img": "./bin/cli.mjs" | ||
}, | ||
"engines": { | ||
"node": ">=18" | ||
}, | ||
"engineStrict": true, | ||
"dependencies": { | ||
"canvas": "2.11.2", | ||
"pdfjs-dist": "4.2.67" | ||
}, | ||
"devDependencies": { | ||
"@rushstack/eslint-patch": "^1.5.1", | ||
"@types/jest-image-snapshot": "^6.2.1", | ||
"@types/node": "^20.8.6", | ||
"@types/pdfjs-dist": "2.10.377", | ||
"@vitest/coverage-v8": "^1.6.0", | ||
"eslint": "^8.50.0", | ||
"eslint-config-kyle": "^14.12.3", | ||
"jest-image-snapshot": "^6.2.0", | ||
"typescript": "^5.2.2", | ||
"vitest": "^1.6.0" | ||
}, | ||
"prettier": { | ||
"trailingComma": "es5" | ||
} | ||
} | ||
{ | ||
"name": "pdf-to-img", | ||
"version": "4.1.0", | ||
"author": "Kyle Hensel", | ||
"description": "📃📸 Converts PDFs to images in nodejs", | ||
"exports": "./dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"type": "module", | ||
"license": "MIT", | ||
"files": [ | ||
"dist" | ||
], | ||
"keywords": [ | ||
"pdf", | ||
"pdfjs", | ||
"pdf-to-img", | ||
"pdf-to-png", | ||
"vitest", | ||
"jest" | ||
], | ||
"repository": "https://github.com/k-yle/pdf-to-img", | ||
"scripts": { | ||
"build": "tsc && rm -rf dist && mv temp/src dist && rm -rf temp", | ||
"lint": "eslint --ignore-path .gitignore .", | ||
"test": "vitest --pool=forks", | ||
"trypublish": "npm publish --provenance || true" | ||
}, | ||
"bin": { | ||
"pdf2img": "./bin/cli.mjs" | ||
}, | ||
"engines": { | ||
"node": ">=18" | ||
}, | ||
"engineStrict": true, | ||
"dependencies": { | ||
"canvas": "2.11.2", | ||
"pdfjs-dist": "4.2.67" | ||
}, | ||
"devDependencies": { | ||
"@rushstack/eslint-patch": "^1.5.1", | ||
"@types/jest-image-snapshot": "^6.2.1", | ||
"@types/node": "^20.8.6", | ||
"@types/pdfjs-dist": "2.10.377", | ||
"@vitest/coverage-v8": "^1.6.0", | ||
"eslint": "^8.50.0", | ||
"eslint-config-kyle": "^14.12.3", | ||
"jest-image-snapshot": "^6.2.0", | ||
"typescript": "^5.2.2", | ||
"vitest": "^1.6.0" | ||
}, | ||
"prettier": { | ||
"trailingComma": "es5" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+6.05 KB
...pshots__/jsdom-test-ts-multipage-pdf-can-read-a-specific-page-number-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters