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

super-pdfkit

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

super-pdfkit - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

8

index.js

@@ -58,4 +58,10 @@ 'use strict';

textCenter( txt, y = this.y ) {
return this.text( txt, this.page.margins.left, y, { align: 'center' } );
return this.text( txt, this.x, y, { align: 'center' } );
}
textLeft( txt, y = this.y ) {
return this.text( txt, this.x, y, { align: 'left' } );
}
textRight( txt, y = this.y ) {
return this.text( txt, this.x, y, { align: 'right' } );
}
end( endingCallback = undefined ) {

@@ -62,0 +68,0 @@ let endingLength = 0;

2

package.json
{
"name": "super-pdfkit",
"version": "0.0.1",
"version": "0.0.2",
"description": "Enhanced pdfkit with some useful methods (thx to: pdfkit and pdfkit-table authors)",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -32,2 +32,6 @@ # super-pdfkit

doc.textCenter( // TO ADD A LEFT ALIGNED TEXT
'LEFT ALIGNED TEXT', // the text
200 // the y position
);
doc.textCenter( // TO ADD A CENTERED TEXT

@@ -37,2 +41,6 @@ 'CENTERED TEXT', // the text

);
doc.textRight( // TO ADD A RIGHT ALIGNED TEXT
'RIGHT ALIGNED TEXT', // the text
200 // the y position
);

@@ -39,0 +47,0 @@ doc.imageCenter( // TO ADD A CENTERED IMAGE

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