Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

html-pdf

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-pdf - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

2

lib/pdf.js

@@ -39,3 +39,3 @@ var fs = require('fs')

if (this.options.localUrlAccess) this.options.phantomArgs.push('--local-url-access=false')
if (!this.options.localUrlAccess) this.options.phantomArgs.push('--local-url-access=false')
assert(this.options.phantomPath, "html-pdf: Failed to load PhantomJS module. You have to set the path to the PhantomJS binary using 'options.phantomPath'")

@@ -42,0 +42,0 @@ assert(typeof this.html === 'string' && this.html.length, "html-pdf: Can't create a pdf without an html string")

{
"name": "html-pdf",
"version": "3.0.0",
"version": "3.0.1",
"description": "HTML to PDF converter that uses phantomjs",

@@ -5,0 +5,0 @@ "engines": {

@@ -122,3 +122,3 @@ # node-html-pdf

// Rendering options
"base": "file:///home/www/your-asset-path", // Base path that's used to load files (images, css, js) when they aren't referenced using a host
"base": "file:///home/www/your-asset-path/", // Base path that's used to load files (images, css, js) when they aren't referenced using a host

@@ -125,0 +125,0 @@ // Zooming option, can be used to scale images if `options.type` is not pdf

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