New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@jsreport/jsreport-pdf-utils

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsreport/jsreport-pdf-utils - npm Package Compare versions

Comparing version 3.8.0 to 3.9.0

24

lib/pdfProcessing.js

@@ -36,7 +36,6 @@ const PdfManipulator = require('./pdfManipulator')

}
console.time('parse')
await manipulator.parse({
hiddenPageFields: req.context.shared.pdfUtilsHiddenPageFields
})
console.timeEnd('parse')

@@ -60,6 +59,5 @@ let templateDef

}, req, res)
const r = await runRender(templateDef, { $pdf: { pages: manipulator.parsedPdf.pages } })
console.time('append')
await manipulator.append(r)
console.timeEnd('append')
await manipulator.append(await runRender(templateDef, { $pdf: { pages: manipulator.parsedPdf.pages } }))
reporter.profiler.emit({

@@ -96,5 +94,4 @@ type: 'operationEnd',

const mergeBuffer = await runRender(templateDef, { $pdf: { pages: manipulator.parsedPdf.pages } })
console.time('merge')
await manipulator.merge(mergeBuffer, operation.mergeToFront)
console.timeEnd('merge')
reporter.profiler.emit({

@@ -137,7 +134,7 @@ type: 'operationEnd',

reporter.logger.debug('pdf-utils postproces start', req)
console.time('postprocess')
await manipulator.postprocess({
hiddenPageFields: req.context.shared.pdfUtilsHiddenPageFields
})
console.timeEnd('postprocess')
reporter.logger.debug('pdf-utils postproces end', req)

@@ -152,8 +149,3 @@

try {
console.time('toBuffer')
return manipulator.toBuffer()
} finally {
console.timeEnd('toBuffer')
}
return manipulator.toBuffer()
}
{
"name": "@jsreport/jsreport-pdf-utils",
"version": "3.8.0",
"version": "3.9.0",
"description": "jsreport extension providing pdf operations like merge or concatenation",

@@ -36,3 +36,3 @@ "keywords": [

"@jsreport/node-signpdf": "1.4.2",
"@jsreport/pdfjs": "1.3.0",
"@jsreport/pdfjs": "1.4.0",
"cheerio": "1.0.0-rc.12",

@@ -43,3 +43,3 @@ "lodash.omit": "4.5.0",

"parse-color": "1.0.0",
"pdfjs-dist": "2.12.313"
"pdfjs-dist": "2.16.105"
},

@@ -50,7 +50,7 @@ "devDependencies": {

"@jsreport/jsreport-chrome-pdf": "3.3.0",
"@jsreport/jsreport-core": "3.10.0",
"@jsreport/jsreport-core": "3.11.0",
"@jsreport/jsreport-handlebars": "3.2.1",
"@jsreport/jsreport-jsrender": "3.0.0",
"@jsreport/jsreport-scripts": "3.4.0",
"@jsreport/studio-dev": "3.2.0",
"@jsreport/jsreport-scripts": "3.4.1",
"@jsreport/studio-dev": "3.2.1",
"handlebars": "4.7.7",

@@ -57,0 +57,0 @@ "mocha": "8.2.1",

@@ -10,5 +10,10 @@ # @jsreport/jsreport-pdf-utils

### 3.9.0
- improve the support for parsing and working with external pdfs
- support new option `appendAfterPageNumber` in jsreport-proxy `pdfUtils.append` to allowing appending new pages starting at specific index
### 3.8.0
- allow pdf-utils append/prepend operation at specific page #551
- allow pdf-utils append/prepend operation at specific page #551

@@ -15,0 +20,0 @@ ### 3.7.0

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc