@@ -3404,6 +3404,7 @@ function jsPDF(options) {
3404
3404
* @param {number|Matrix } [options.angle=0] - Rotate the text clockwise or counterclockwise. Expects the angle in degree.
3405
3405
* @param {number } [options.rotationDirection=1] - Direction of the rotation. 0 = clockwise, 1 = counterclockwise.
3406
3406
* @param {number } [options.charSpace=0] - The space between each letter.
3407
+ * @param {number } [options.horizontalScale=1] - Horizontal scale of the text as a factor of the regular size.
3407
3408
* @param {number } [options.lineHeightFactor=1.15] - The lineheight of each line.
3408
3409
* @param {Object } [options.flags] - Flags for to8bitStream.
3409
3410
* @param {boolean } [options.flags.noBOM=true] - Don't add BOM to Unicode-text.
@@ -3440,7 +3441,7 @@ function jsPDF(options) {
3440
3441
*/
3441
3442
options = options || { } ;
3442
3443
var scope = options . scope || this ;
3443
- var payload , da , angle , align , charSpace , maxWidth , flags ;
3444
+ var payload , da , angle , align , charSpace , maxWidth , flags , horizontalScale ;
3444
3445
3445
3446
// Pre-August-2012 the order of arguments was function(x, y, text, flags)
3446
3447
// in effort to make all calls have similar signature like
@@ -3707,6 +3708,11 @@ function jsPDF(options) {
3707
3708
this . setCharSpace ( this . getCharSpace ( ) || 0 ) ;
3708
3709
}
3709
3710
3711
+ horizontalScale = options . horizontalScale ;
3712
+ if ( typeof horizontalScale !== "undefined" ) {
3713
+ xtra += hpf ( horizontalScale * 100 ) + " Tz\n" ;
3714
+ }
3715
+
3710
3716
//lang
3711
3717
3712
3718
var lang = options . lang ;
0 commit comments