Skip to content

Commit 25eed3a

Browse files
committed
Initial c2d support
1 parent e3f8c2c commit 25eed3a

File tree

3 files changed

+789
-1
lines changed

3 files changed

+789
-1
lines changed

jspdf.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,8 @@ var jsPDF = (function(global) {
964964
return pages.length - 1;
965965
},
966966
'pages' : pages,
967+
'out' : out,
968+
'f2' : f2
967969
'getPageInfo' : function(pageNumberOneBased){
968970
var objId = (pageNumberOneBased - 1) * 2 + 3;
969971
return {objId:objId};
@@ -1059,7 +1061,15 @@ var jsPDF = (function(global) {
10591061
flags.noBOM = true;
10601062
if (!('autoencode' in flags))
10611063
flags.autoencode = true;
1062-
1064+
1065+
var strokeOption = '';
1066+
if (true === flags.stroke){
1067+
strokeOption = '1 Tr\n';
1068+
}
1069+
else{
1070+
strokeOption = '0 Tr\n';
1071+
}
1072+
10631073
if (typeof text === 'string') {
10641074
text = ESC(text);
10651075
} else if (text instanceof Array) {
@@ -1089,6 +1099,7 @@ var jsPDF = (function(global) {
10891099
'BT\n/' +
10901100
activeFontKey + ' ' + activeFontSize + ' Tf\n' + // font face, style, size
10911101
(activeFontSize * lineHeightProportion) + ' TL\n' + // line spacing
1102+
strokeOption +// stroke option
10921103
textColor +
10931104
'\n' + xtra + f2(x * k) + ' ' + f2((pageHeight - y) * k) + ' ' + mode + '\n(' +
10941105
text +

0 commit comments

Comments
 (0)