calipers-pdf
Advanced tools
Comparing version 2.2.0 to 2.2.1
## Change Log | ||
**2.2.0** — _December 11, 2019_ — [Diff](https://github.com/calipersjs/calipers-pdf/compare/2.1.0...2.2.0) | ||
**2.2.1** — _July 20, 2021_ — [Diff](https://github.com/calipersjs/calipers-pdf/compare/v2.2.0...v2.2.1) | ||
* Upgrade poppler-simple to 0.10.1 | ||
**2.2.0** — _December 11, 2019_ — [Diff](https://github.com/calipersjs/calipers-pdf/compare/v2.1.0...v2.2.0) | ||
* Upgrade poppler-simple to 0.8.0 | ||
**2.1.0** — _December 17, 2018_ — [Diff](https://github.com/calipersjs/calipers-pdf/compare/2.0.0...2.1.0) | ||
**2.1.0** — _December 17, 2018_ — [Diff](https://github.com/calipersjs/calipers-pdf/compare/2.0.0...v2.1.0) | ||
* Includes the boolean `isEncrypted` property in the returned object of `measure()` |
{ | ||
"name": "calipers-pdf", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "PDF plugin for calipers.", | ||
@@ -38,3 +38,3 @@ "main": "lib/index.js", | ||
"bluebird": "^3.7.2", | ||
"poppler-simple": "^0.8.0" | ||
"poppler-simple": "^0.10.1" | ||
}, | ||
@@ -41,0 +41,0 @@ "peerDependencies": { |
@@ -1,5 +0,6 @@ | ||
#calipers-pdf | ||
# calipers-pdf | ||
[![npm version](https://badge.fury.io/js/calipers-pdf.svg)](http://badge.fury.io/js/calipers-pdf) [![Build Status](https://travis-ci.org/calipersjs/calipers-pdf.svg?branch=master)](https://travis-ci.org/calipersjs/calipers-pdf) | ||
[![npm version](https://badge.fury.io/js/calipers-pdf.svg)](http://badge.fury.io/js/calipers-pdf) ![Build Status](https://github.com/calipersjs/calipers-pdf/actions/workflows/main.yml/badge.svg?branch=master) | ||
PDF Plugin for [Calipers](https://github.com/calipersjs/calipers). It can be | ||
@@ -26,6 +27,6 @@ used to measure the page dimensions of a PDF and to check whether or not a PDF | ||
To use, install calipers and calipers-pdf via yarn: | ||
To use, install calipers and calipers-pdf via npm: | ||
``` | ||
yarn add calipers calipers-pdf | ||
npm install calipers calipers-pdf | ||
``` | ||
@@ -32,0 +33,0 @@ |
@@ -49,10 +49,10 @@ 'use strict'; | ||
return pdf.measure(pdfPath) | ||
.bind({}) | ||
.then((result) => { | ||
for (let i = 0; i < result.pages.length; i++) { | ||
result.pages[i].width = Math.round(result.pages[i].width); | ||
result.pages[i].height = Math.round(result.pages[i].height); | ||
} | ||
expect(result).to.eql(expectedOutput); | ||
}); | ||
.bind({}) | ||
.then((result) => { | ||
for (let i = 0; i < result.pages.length; i++) { | ||
result.pages[i].width = Math.round(result.pages[i].width); | ||
result.pages[i].height = Math.round(result.pages[i].height); | ||
} | ||
expect(result).to.eql(expectedOutput); | ||
}); | ||
}); | ||
@@ -74,5 +74,5 @@ }); | ||
return pdf.measure(pdfPath) | ||
.then((result) => { | ||
expect(result.encrypted).to.be.true; | ||
}); | ||
.then((result) => { | ||
expect(result.encrypted).to.be.true; | ||
}); | ||
}); | ||
@@ -79,0 +79,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
861952
105
+ Addedpoppler-simple@0.10.3(transitive)
- Removedpoppler-simple@0.8.1(transitive)
Updatedpoppler-simple@^0.10.1