@@ -3404,6 +3404,7 @@ function jsPDF(options) {
34043404 * @param {number|Matrix } [options.angle=0] - Rotate the text clockwise or counterclockwise. Expects the angle in degree.
34053405 * @param {number } [options.rotationDirection=1] - Direction of the rotation. 0 = clockwise, 1 = counterclockwise.
34063406 * @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.
34073408 * @param {number } [options.lineHeightFactor=1.15] - The lineheight of each line.
34083409 * @param {Object } [options.flags] - Flags for to8bitStream.
34093410 * @param {boolean } [options.flags.noBOM=true] - Don't add BOM to Unicode-text.
@@ -3440,7 +3441,7 @@ function jsPDF(options) {
34403441 */
34413442 options = options || { } ;
34423443 var scope = options . scope || this ;
3443- var payload , da , angle , align , charSpace , maxWidth , flags ;
3444+ var payload , da , angle , align , charSpace , maxWidth , flags , horizontalScale ;
34443445
34453446 // Pre-August-2012 the order of arguments was function(x, y, text, flags)
34463447 // in effort to make all calls have similar signature like
@@ -3707,6 +3708,11 @@ function jsPDF(options) {
37073708 this . setCharSpace ( this . getCharSpace ( ) || 0 ) ;
37083709 }
37093710
3711+ horizontalScale = options . horizontalScale ;
3712+ if ( typeof horizontalScale !== "undefined" ) {
3713+ xtra += hpf ( horizontalScale * 100 ) + " Tz\n" ;
3714+ }
3715+
37103716 //lang
37113717
37123718 var lang = options . lang ;
0 commit comments