Skip to content

Instantly share code, notes, and snippets.

View CarlosSantos27's full-sized avatar

Carlos Santos CarlosSantos27

  • tradere
View GitHub Profile
@CarlosSantos27
CarlosSantos27 / jspdf.plugin.text-align.js
Created August 24, 2018 21:14 — forked from Purush0th/jspdf.plugin.text-align.js
Text alignment for jsPDF 💥
(function (api, $) {
'use strict';
api.writeText = function (x, y, text, options) {
options = options || {};
var defaults = {
align: 'left',
width: this.internal.pageSize.width
}