jspdf-dynamo 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/index.cjs +199 -33
- package/dist/index.d.cts +14 -10
- package/dist/index.d.ts +14 -10
- package/dist/index.js +199 -33
- package/documentation/1. Introduction/Introduction.txt +1 -1
- package/documentation/3. Variables/Introduction.txt +13 -12
- package/documentation/3. Variables/SystemMaintained.txt +40 -0
- package/documentation/4. Commands/DrawBox.txt +6 -9
- package/documentation/4. Commands/DrawCircle.txt +71 -0
- package/documentation/4. Commands/DrawEllipse.txt +75 -0
- package/documentation/4. Commands/DrawTextWrapped.txt +1 -1
- package/documentation/4. Commands/IfBlank.txt +9 -14
- package/documentation/4. Commands/IfEq.txt +3 -2
- package/documentation/4. Commands/IfGt.txt +2 -1
- package/documentation/4. Commands/IfNe.txt +54 -0
- package/documentation/4. Commands/IfNotBlank.txt +9 -13
- package/documentation/4. Commands/LoadImageFromFile.txt +2 -2
- package/documentation/4. Commands/LoadImageFromUrl.txt +2 -2
- package/documentation/4. Commands/SetFillColour.txt +4 -2
- package/documentation/4. Commands/SetFontName.txt +80 -1
- package/documentation/4. Commands/SetFontSize.txt +43 -1
- package/documentation/4. Commands/SetFontStyle.txt +4 -5
- package/documentation/4. Commands/SetLineColour.txt +5 -2
- package/documentation/4. Commands/SetTextColour.txt +4 -2
- package/documentation/5. Other Definitions/pageSizes.txt +3 -3
- package/documentation/Documentation.pdf +0 -0
- package/documentation/documentation.txt +3 -0
- package/examples/1.Simple/simple.pdf +18 -186
- package/examples/2.Invoice/data.txt +21 -0
- package/examples/2.Invoice/gearz.png +0 -0
- package/examples/2.Invoice/invoice.pdf +0 -0
- package/examples/2.Invoice/invoice.spec.ts +62 -0
- package/examples/2.Invoice/parts.json +324 -0
- package/examples/2.Invoice/template.txt +136 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
.Do CommandHeading
|
|
3
3
|
.SetVar CommandLine1 Draw text at the given point on the page, relative to the page margins, wrapping to one or more new lines
|
|
4
4
|
.SetVar CommandLine1 %CommandLine1% as required, and handling overflowing of pages.
|
|
5
|
-
.Do
|
|
5
|
+
.Do CommandLine
|
|
6
6
|
|
|
7
7
|
.SetVar CommandSubHeading Syntax
|
|
8
8
|
.Do CommandSubHeading
|
|
@@ -14,10 +14,8 @@
|
|
|
14
14
|
.Do CommandSubHeading
|
|
15
15
|
.SetVar CommandLine1 VariableName
|
|
16
16
|
.SetVar CommandLine2 The name of the variable to check. This does not need to be surrounded
|
|
17
|
-
.
|
|
18
|
-
.SetVar CommandLine2
|
|
19
|
-
.Do CommandLine2
|
|
20
|
-
.SetVar CommandLine2 given in the variable name parameter.
|
|
17
|
+
.SetVar CommandLine2 %CommandLine2% by percentage signs unless the name of the actual variable to
|
|
18
|
+
.SetVar CommandLine2 %CommandLine2% check is given in the variable name parameter.
|
|
21
19
|
.Do CommandLine2
|
|
22
20
|
.SetVar CommandLine1 Command
|
|
23
21
|
.SetVar CommandLine2 The command to execute if the given variable is blank.
|
|
@@ -26,8 +24,7 @@
|
|
|
26
24
|
.SetVar CommandSubHeading Other
|
|
27
25
|
.Do CommandSubHeading
|
|
28
26
|
.SetVar CommandLine1 The variable _LastResult is set to '-1' if the variable is not blank, otherwise the result of the
|
|
29
|
-
.
|
|
30
|
-
.SetVar CommandLine1 last command processed by this command.
|
|
27
|
+
.SetVar CommandLine1 %CommandLine1% last command processed by this command.
|
|
31
28
|
.Do CommandLine
|
|
32
29
|
|
|
33
30
|
.SetVar CommandSubHeading Examples
|
|
@@ -35,22 +32,20 @@
|
|
|
35
32
|
.SetVar CommandLine1 Print a warning message if a variable called 'MyHeading' is blank (or not defined):
|
|
36
33
|
.Do CommandLine
|
|
37
34
|
.incCurrentY %halfLineGap%
|
|
38
|
-
.SetVar CommandLine1 .IfBlank
|
|
35
|
+
.SetVar CommandLine1 .IfBlank MyHeading .DrawText 0 %%%%_CurrentY%%%% *** No heading provided **
|
|
39
36
|
.Do CommandLine2
|
|
40
37
|
.incCurrentY %_FontHeight%
|
|
41
38
|
|
|
42
|
-
.SetVar CommandLine1 Process the groups 'CloseSection' and 'NewSection' if the variable called 'more'
|
|
43
|
-
.
|
|
44
|
-
.SetVar CommandLine1 (or not defined):
|
|
39
|
+
.SetVar CommandLine1 Process the groups 'CloseSection' and 'NewSection' if the variable called 'more'
|
|
40
|
+
.SetVar CommandLine1 %CommandLine1% is blank (or not defined):
|
|
45
41
|
.Do CommandLine
|
|
46
42
|
.incCurrentY %halfLineGap%
|
|
47
43
|
.SetVar CommandLine1 .IfBlank MORE .Do CloseSection NewSection
|
|
48
44
|
.Do CommandLine2
|
|
49
45
|
.incCurrentY %_FontHeight%
|
|
50
46
|
|
|
51
|
-
.SetVar CommandLine1 Process the groups 'CloseSection' and 'NewSection' if the variable whose name
|
|
52
|
-
.
|
|
53
|
-
.SetVar CommandLine1 in the variable named 'varname' is blank (or not defined):
|
|
47
|
+
.SetVar CommandLine1 Process the groups 'CloseSection' and 'NewSection' if the variable whose name
|
|
48
|
+
.SetVar CommandLine1 %CommandLine1% is stored in the variable named 'varname' is blank (or not defined):
|
|
54
49
|
.Do CommandLine
|
|
55
50
|
.incCurrentY %halfLineGap%
|
|
56
51
|
.SetVar CommandLine1 .IfBlank %%%%VarName%%%% .Do CloseSection NewSection
|
|
@@ -58,6 +53,6 @@
|
|
|
58
53
|
|
|
59
54
|
.SetVar CommandSubHeading See Also
|
|
60
55
|
.Do CommandSubHeading
|
|
61
|
-
.SetVar CommandLine1 IfGt, IfNotBlank
|
|
56
|
+
.SetVar CommandLine1 IfEq, IfGt, IfNe, IfNotBlank
|
|
62
57
|
.Do CommandLine2
|
|
63
58
|
.incCurrentY %_FontHeight%
|
|
@@ -19,13 +19,14 @@
|
|
|
19
19
|
.SetVar CommandLine2 variables using substitution.
|
|
20
20
|
.Do CommandLine2
|
|
21
21
|
.SetVar CommandLine1 Command
|
|
22
|
-
.SetVar CommandLine2 The command to execute if the first value is
|
|
22
|
+
.SetVar CommandLine2 The command to execute if the first value is equal to the second.
|
|
23
23
|
.Do CommandLine2
|
|
24
24
|
|
|
25
25
|
.SetVar CommandSubHeading Other
|
|
26
26
|
.Do CommandSubHeading
|
|
27
27
|
.SetVar text The variable _LastResult is set to '0' if the first variable is not equal to the second, otherwise
|
|
28
28
|
.SetVar text %text% _LastResult is set to the result of the last command processed by this command.
|
|
29
|
+
.SetVar text %text% (Which could also be zero, depending on the result of the last command processed.)
|
|
29
30
|
.DrawTextWrapped 0 %_CurrentY% %_PageWidth% CommandCheckPage %text%
|
|
30
31
|
.incCurrentY %HalfFontHeight%
|
|
31
32
|
.SetVar text Comparison of string values is case sensitive.
|
|
@@ -48,6 +49,6 @@
|
|
|
48
49
|
|
|
49
50
|
.SetVar CommandSubHeading See Also
|
|
50
51
|
.Do CommandSubHeading
|
|
51
|
-
.SetVar CommandLine1 IfBlank, IfGt, IfNotBlank
|
|
52
|
+
.SetVar CommandLine1 IfBlank, IfGt, IfNe, IfNotBlank
|
|
52
53
|
.Do CommandLine2
|
|
53
54
|
.incCurrentY %_FontHeight%
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
.Do CommandSubHeading
|
|
27
27
|
.SetVar text The variable _LastResult is set to '0' if the first variable is less than or equal to the second, otherwise
|
|
28
28
|
.SetVar text %text% _LastResult is set to the result of the last command processed by this command.
|
|
29
|
+
.SetVar text %text% (Which could also be zero, depending on the result of the last command processed.)
|
|
29
30
|
.DrawTextWrapped 0 %_CurrentY% %_PageWidth% CommandCheckPage %text%
|
|
30
31
|
.incCurrentY %halfLineGap%
|
|
31
32
|
.SetVar text No action is taken if the two variables have the same value or if the second value is greater than the first.
|
|
@@ -53,6 +54,6 @@
|
|
|
53
54
|
|
|
54
55
|
.SetVar CommandSubHeading See Also
|
|
55
56
|
.Do CommandSubHeading
|
|
56
|
-
.SetVar CommandLine1 IfBlank, IfEq, IfNotBlank
|
|
57
|
+
.SetVar CommandLine1 IfBlank, IfEq, IfNe, IfNotBlank
|
|
57
58
|
.Do CommandLine2
|
|
58
59
|
.incCurrentY %_FontHeight%
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
.SetVar CommandName IfNe
|
|
2
|
+
.Do CommandHeading
|
|
3
|
+
.SetVar text Compares two variables and if the first one is not equal to the second then process a given command. This can be used
|
|
4
|
+
.SetVar text %text% to process one or more groups of commands using the 'do' command or perform some other action, such
|
|
5
|
+
.SetVar text %text% as setting the value of a variable. If either of the variables are not numbers then a string comparison is made.
|
|
6
|
+
.DrawTextWrapped 0 %_CurrentY% %_PageWidth% CommandCheckPage %text%
|
|
7
|
+
|
|
8
|
+
.SetVar CommandSubHeading Syntax
|
|
9
|
+
.Do CommandSubHeading
|
|
10
|
+
.SetVar CommandLine1 .IfNe Value1 Value2 Command
|
|
11
|
+
.Do CommandLine2
|
|
12
|
+
|
|
13
|
+
.SetVar CommandSubHeading Parameters
|
|
14
|
+
.Do CommandSubHeading
|
|
15
|
+
.SetVar CommandLine1 Value1,
|
|
16
|
+
.SetVar CommandLine2 The values to compare. These can either be constants or values of
|
|
17
|
+
.Do CommandLine2
|
|
18
|
+
.SetVar CommandLine1 Value2
|
|
19
|
+
.SetVar CommandLine2 variables using substitution.
|
|
20
|
+
.Do CommandLine2
|
|
21
|
+
.SetVar CommandLine1 Command
|
|
22
|
+
.SetVar CommandLine2 The command to execute if the first value is not equal to the second.
|
|
23
|
+
.Do CommandLine2
|
|
24
|
+
|
|
25
|
+
.SetVar CommandSubHeading Other
|
|
26
|
+
.Do CommandSubHeading
|
|
27
|
+
.SetVar text The variable _LastResult is set to '0' if the first variable is equal to the second, otherwise
|
|
28
|
+
.SetVar text %text% _LastResult is set to the result of the last command processed by this command.
|
|
29
|
+
.SetVar text %text% (Which could also be zero, depending on the result of the last command processed.)
|
|
30
|
+
.DrawTextWrapped 0 %_CurrentY% %_PageWidth% CommandCheckPage %text%
|
|
31
|
+
.incCurrentY %HalfFontHeight%
|
|
32
|
+
.SetVar text Comparison of string values is case sensitive.
|
|
33
|
+
.DrawTextWrapped 0 %_CurrentY% %_PageWidth% CommandCheckPage %text%
|
|
34
|
+
|
|
35
|
+
.SetVar CommandSubHeading Examples
|
|
36
|
+
.Do CommandSubHeading
|
|
37
|
+
.SetVar text Set the value of variable 'finished' to 'false' when the values of variables 'counter' and 'maxCounter' are not equal.
|
|
38
|
+
.DrawTextWrapped 0 %_CurrentY% %_PageWidth% CommandCheckPage %text%
|
|
39
|
+
.Do CommandLine2
|
|
40
|
+
.SetVar CommandLine1 .IfNE %%%%counter%%%% %%%%maxCounter%%%% .SetVar finished false
|
|
41
|
+
.Do CommandLine2
|
|
42
|
+
|
|
43
|
+
.incCurrentY %_FontHeight%
|
|
44
|
+
.SetVar LongText Process the groups 'OutputLine' and 'AddToTotal' if the value of the variable 'finished' is not 'true'.
|
|
45
|
+
.DrawTextWrapped 0 %_CurrentY% %_PageWidth% CommandCheckPage %LongText%
|
|
46
|
+
.incCurrentY %halfLineGap%
|
|
47
|
+
.SetVar CommandLine1 .IfNe %%%%finished%%%% true .Do OutputLine AddToTotal
|
|
48
|
+
.Do CommandLine2
|
|
49
|
+
|
|
50
|
+
.SetVar CommandSubHeading See Also
|
|
51
|
+
.Do CommandSubHeading
|
|
52
|
+
.SetVar CommandLine1 IfBlank, IfEq, IfGt, IfNotBlank
|
|
53
|
+
.Do CommandLine2
|
|
54
|
+
.incCurrentY %_FontHeight%
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.SetVar CommandName IfNotBlank
|
|
2
2
|
.Do CommandHeading
|
|
3
|
-
.
|
|
4
|
-
.SetVar CommandLine1 used to process one or more groups of commands using the 'do' command.
|
|
3
|
+
.SetVar CommandLine1 Tests a given variable and if it is not blank then process a given command. This can be
|
|
4
|
+
.SetVar CommandLine1 %CommandLine1% used to process one or more groups of commands using the 'do' command.
|
|
5
5
|
.Do CommandLine
|
|
6
6
|
|
|
7
7
|
.SetVar CommandSubHeading Syntax
|
|
@@ -12,11 +12,9 @@
|
|
|
12
12
|
.SetVar CommandSubHeading Parameters
|
|
13
13
|
.Do CommandSubHeading
|
|
14
14
|
.SetVar CommandLine1 VariableName
|
|
15
|
-
.SetVar CommandLine2 The name of the variable to check. This does not need to be surrounded
|
|
16
|
-
.
|
|
17
|
-
.SetVar CommandLine2
|
|
18
|
-
.Do CommandLine2
|
|
19
|
-
.SetVar CommandLine2 given in the variable name parameter.
|
|
15
|
+
.SetVar CommandLine2 The name of the variable to check. This does not need to be surrounded by
|
|
16
|
+
.SetVar CommandLine2 %CommandLine2% percentage signs unless the name of the actual variable to
|
|
17
|
+
.SetVar CommandLine2 %CommandLine2% check is given in the variable name parameter.
|
|
20
18
|
.Do CommandLine2
|
|
21
19
|
.SetVar CommandLine1 Command
|
|
22
20
|
.SetVar CommandLine2 The command to execute if the given variable is not blank.
|
|
@@ -25,8 +23,7 @@
|
|
|
25
23
|
.SetVar CommandSubHeading Other
|
|
26
24
|
.Do CommandSubHeading
|
|
27
25
|
.SetVar CommandLine1 The variable _LastResult is set to '-1' if the variable is blank, otherwise the result of the
|
|
28
|
-
.
|
|
29
|
-
.SetVar CommandLine1 last command processed by this command.
|
|
26
|
+
.SetVar CommandLine1 %CommandLine1% last command processed by this command.
|
|
30
27
|
.Do CommandLine
|
|
31
28
|
|
|
32
29
|
.SetVar CommandSubHeading Examples
|
|
@@ -45,9 +42,8 @@
|
|
|
45
42
|
.Do CommandLine2
|
|
46
43
|
.incCurrentY %_FontHeight%
|
|
47
44
|
|
|
48
|
-
.SetVar CommandLine1 Process the groups 'continued' and 'AddPage' if the variable whose name is stored
|
|
49
|
-
.
|
|
50
|
-
.SetVar CommandLine1 variable named 'varname' is not blank:
|
|
45
|
+
.SetVar CommandLine1 Process the groups 'continued' and 'AddPage' if the variable whose name is stored
|
|
46
|
+
.SetVar CommandLine1 %CommandLine1% in the variable named 'varname' is not blank:
|
|
51
47
|
.Do CommandLine
|
|
52
48
|
.incCurrentY %halfLineGap%
|
|
53
49
|
.SetVar CommandLine1 .IfNotBlank %%%%VarName%%%% .Do continued AddPage
|
|
@@ -55,6 +51,6 @@
|
|
|
55
51
|
|
|
56
52
|
.SetVar CommandSubHeading See Also
|
|
57
53
|
.Do CommandSubHeading
|
|
58
|
-
.SetVar CommandLine1
|
|
54
|
+
.SetVar CommandLine1 IfBlank, IfEq, IfGt, IfNe
|
|
59
55
|
.Do CommandLine2
|
|
60
56
|
.incCurrentY %_FontHeight%
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
.SetVar CommandLine1 If successful then several other variables are also set:
|
|
25
25
|
.Do CommandLine
|
|
26
26
|
.incCurrentY %halfLineGap%
|
|
27
|
-
.SetVar CommandLine1c _ImageHeight is set to the height of the image
|
|
27
|
+
.SetVar CommandLine1c _ImageHeight is set to the height of the image.
|
|
28
28
|
.Do CommandLine2
|
|
29
29
|
.SetVar CommandLine1c _ImageHeightPx is set to the height of the image pixels.
|
|
30
30
|
.Do CommandLine2
|
|
31
|
-
.SetVar CommandLine1c _ImageWidth is set to the width of the image
|
|
31
|
+
.SetVar CommandLine1c _ImageWidth is set to the width of the image.
|
|
32
32
|
.Do CommandLine2
|
|
33
33
|
.SetVar CommandLine1c _ImageWidthPx is set to the width of the image pixels.
|
|
34
34
|
.Do CommandLine2
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
.SetVar CommandLine1 If successful then several other variables are also set:
|
|
25
25
|
.Do CommandLine
|
|
26
26
|
.incCurrentY %halfLineGap%
|
|
27
|
-
.SetVar CommandLine1c _ImageHeight is set to the height of the image
|
|
27
|
+
.SetVar CommandLine1c _ImageHeight is set to the height of the image.
|
|
28
28
|
.Do CommandLine2
|
|
29
29
|
.SetVar CommandLine1c _ImageHeightPx is set to the height of the image pixels.
|
|
30
30
|
.Do CommandLine2
|
|
31
|
-
.SetVar CommandLine1c _ImageWidth is set to the width of the image
|
|
31
|
+
.SetVar CommandLine1c _ImageWidth is set to the width of the image.
|
|
32
32
|
.Do CommandLine2
|
|
33
33
|
.SetVar CommandLine1c _ImageWidthPx is set to the width of the image pixels.
|
|
34
34
|
.Do CommandLine2
|
|
@@ -10,12 +10,14 @@
|
|
|
10
10
|
.SetVar CommandSubHeading Parameters
|
|
11
11
|
.Do CommandSubHeading
|
|
12
12
|
.SetVar CommandLine1 Colour
|
|
13
|
-
.SetVar CommandLine2 Either a CSS named colour or a hexadecimal RGB colour.
|
|
13
|
+
.SetVar CommandLine2 Either a CSS named colour or a hexadecimal RGB colour. This is a required parameter.
|
|
14
14
|
.Do CommandLine2
|
|
15
15
|
|
|
16
16
|
.SetVar CommandSubHeading Other
|
|
17
17
|
.Do CommandSubHeading
|
|
18
|
-
.SetVar CommandLine1 The variable _LastResult is set to '
|
|
18
|
+
.SetVar CommandLine1 The variable _LastResult is set to '0' by this command if the colour parameter is not
|
|
19
|
+
.SetVar CommandLine1 %CommandLine1% provided, otherwise it is set to '1'. The variable _FillColour is set
|
|
20
|
+
.SetVar CommandLine1 %CommandLine1% to the colour parameter.
|
|
19
21
|
.Do CommandLine
|
|
20
22
|
|
|
21
23
|
.SetVar CommandSubHeading Examples
|
|
@@ -1,6 +1,85 @@
|
|
|
1
1
|
.SetVar CommandName SetFontName
|
|
2
2
|
.Do CommandHeading
|
|
3
|
-
.SetVar CommandLine1
|
|
3
|
+
.SetVar CommandLine1 Select the font to be used for rendering text. Subsequent output of text
|
|
4
|
+
.SetVar CommandLine1 %CommandLine1% will continue to use this font until changed by another SetFontName command.
|
|
5
|
+
.Do CommandLine
|
|
6
|
+
|
|
7
|
+
.SetVar CommandSubHeading Syntax
|
|
8
|
+
.Do CommandSubHeading
|
|
9
|
+
.SetVar CommandLine1 .SetFontName font
|
|
10
|
+
.Do CommandLine2
|
|
11
|
+
|
|
12
|
+
.SetVar CommandSubHeading Parameters
|
|
13
|
+
.Do CommandSubHeading
|
|
14
|
+
.SetVar CommandLine1 font
|
|
15
|
+
.SetVar CommandLine2 The name of the font to use. This parameter is required. The default fonts that care available are:
|
|
16
|
+
.Do CommandLine2
|
|
17
|
+
.incCurrentY %halfLineGap%
|
|
18
|
+
.Do CommandCheckPage
|
|
19
|
+
.SetVar top %_CurrentY%
|
|
20
|
+
.SetVar CommandLine2 -
|
|
21
|
+
.Do CommandLine2
|
|
22
|
+
.setCurrentY %top%
|
|
23
|
+
.SetVar CommandLine3 Courier
|
|
24
|
+
.SetFontName Courier
|
|
25
|
+
.Do CommandLine2
|
|
26
|
+
|
|
27
|
+
.Do CommandCheckPage
|
|
28
|
+
.SetFontName Helvetica
|
|
29
|
+
.SetVar CommandLine2 -
|
|
30
|
+
.SetVar CommandLine3 Helvetica
|
|
31
|
+
.Do CommandLine2
|
|
32
|
+
|
|
33
|
+
.Do CommandCheckPage
|
|
34
|
+
.SetVar top %_CurrentY%
|
|
35
|
+
.SetVar CommandLine2 -
|
|
36
|
+
.SetVar CommandLine3 Symbol
|
|
37
|
+
.Do CommandLine2
|
|
38
|
+
.SetFontName Symbol
|
|
39
|
+
.setCurrentY %top%
|
|
40
|
+
.DrawText 50 %top% (Symbol)
|
|
41
|
+
|
|
42
|
+
.Do CommandCheckPage
|
|
43
|
+
.SetFontName Helvetica
|
|
44
|
+
.SetVar top %_CurrentY%
|
|
45
|
+
.SetVar CommandLine2 -
|
|
46
|
+
.Do CommandLine2
|
|
47
|
+
.SetVar CommandLine3 Times
|
|
48
|
+
.SetFontName Times
|
|
49
|
+
.setCurrentY %top%
|
|
50
|
+
.Do CommandLine2
|
|
51
|
+
|
|
52
|
+
.Do CommandCheckPage
|
|
53
|
+
.SetFontName Helvetica
|
|
54
|
+
.SetVar top %_CurrentY%
|
|
55
|
+
.SetVar CommandLine2 -
|
|
56
|
+
.SetVar CommandLine3 ZapfDingbats
|
|
57
|
+
.Do CommandLine2
|
|
58
|
+
.SetFontName ZapfDingbats
|
|
59
|
+
.DrawText 60 %top% (ZapfDingbats)
|
|
60
|
+
|
|
61
|
+
.SetFontName Helvetica
|
|
62
|
+
|
|
63
|
+
.SetVar CommandSubHeading Other
|
|
64
|
+
.Do CommandSubHeading
|
|
65
|
+
.SetVar CommandLine1 The font name is not case sensitive so can be either upper, lower or mixed case.
|
|
66
|
+
.Do CommandLine
|
|
67
|
+
.incCurrentY %halfLineGap%
|
|
68
|
+
.SetVar CommandLine1 If a valid font name is provided the variable _LastResult is set to '1' otherwise the current
|
|
69
|
+
.SetVar CommandLine1 %CommandLine1% font is unchanged and _LastResult is set to '0'.
|
|
70
|
+
.Do CommandLine
|
|
71
|
+
|
|
72
|
+
.SetVar CommandSubHeading Example
|
|
73
|
+
.Do CommandSubHeading
|
|
74
|
+
.SetVar CommandLine1 Set subsequent text to be in fixed width courier:
|
|
75
|
+
.Do CommandLine
|
|
76
|
+
.incCurrentY %halfLineGap%
|
|
77
|
+
.SetVar CommandLine1 .SetFontName courier
|
|
78
|
+
.Do CommandLine2
|
|
79
|
+
|
|
80
|
+
.SetVar CommandSubHeading See Also
|
|
81
|
+
.Do CommandSubHeading
|
|
82
|
+
.SetVar CommandLine1 DrawTextBox, DrawText, SetFontSize, SetFontStyle, SetTextColour
|
|
4
83
|
.Do CommandLine
|
|
5
84
|
|
|
6
85
|
.incCurrentY %_FontHeight%
|
|
@@ -1,6 +1,48 @@
|
|
|
1
1
|
.SetVar CommandName SetFontSize
|
|
2
2
|
.Do CommandHeading
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
.SetVar CommandLine1 Sets the size of text in points. Subsequent rendering of text will be this size
|
|
5
|
+
.SetVar CommandLine1 %CommandLine1% until changed by another SetFontSize command.
|
|
6
|
+
.Do CommandLine
|
|
7
|
+
|
|
8
|
+
.SetVar CommandSubHeading Syntax
|
|
9
|
+
.Do CommandSubHeading
|
|
10
|
+
.SetVar CommandLine1 .SetFontSize fontSize
|
|
11
|
+
.Do CommandLine2
|
|
12
|
+
|
|
13
|
+
.SetVar CommandSubHeading Parameters
|
|
14
|
+
.Do CommandSubHeading
|
|
15
|
+
.SetVar CommandLine1 fontSize
|
|
16
|
+
.SetVar CommandLine2 The size of the font in points. This parameter is required.
|
|
17
|
+
.Do CommandLine2
|
|
18
|
+
|
|
19
|
+
.SetVar CommandSubHeading Other
|
|
20
|
+
.Do CommandSubHeading
|
|
21
|
+
.SetVar CommandLine1 If a valid font size is provided the variable _LastResult is set to '1' otherwise the current
|
|
22
|
+
.SetVar CommandLine1 %CommandLine1% font size is unchanged and _LastResult is set to '0'.
|
|
23
|
+
.Do CommandLine
|
|
24
|
+
.incCurrentY %halfLineGap%
|
|
25
|
+
.SetVar CommandLine1 The variable _FontPointSize is set to the value provided on this command.
|
|
26
|
+
.Do CommandLine
|
|
27
|
+
.incCurrentY %halfLineGap%
|
|
28
|
+
.SetVar CommandLine1 The variable _FontHeight is set to the height of the current font multiplied by the
|
|
29
|
+
.SetVar CommandLine1 %CommandLine1% 'line height factor' (which is 1.15) to allow for the space between
|
|
30
|
+
.SetVar CommandLine1 %CommandLine1% lines within a paragraph. (This is known as 'kerning'.) Note that this value
|
|
31
|
+
.SetVar CommandLine1 %CommandLine1% is in the unit of measure specified when the instance of JsPdfDynamo was created.
|
|
32
|
+
.Do CommandLine
|
|
33
|
+
.incCurrentY %halfLineGap%
|
|
34
|
+
|
|
35
|
+
.SetVar CommandSubHeading Example
|
|
36
|
+
.Do CommandSubHeading
|
|
37
|
+
.SetVar CommandLine1 Set the size of subsequent text to be 24 points:
|
|
38
|
+
.Do CommandLine
|
|
39
|
+
.incCurrentY %halfLineGap%
|
|
40
|
+
.SetVar CommandLine1 .SetFontSize 24
|
|
41
|
+
.Do CommandLine2
|
|
42
|
+
|
|
43
|
+
.SetVar CommandSubHeading See Also
|
|
44
|
+
.Do CommandSubHeading
|
|
45
|
+
.SetVar CommandLine1 DrawTextBox, DrawText, SetFontName, SetFontStyle, SetTextColour
|
|
4
46
|
.Do CommandLine
|
|
5
47
|
|
|
6
48
|
.incCurrentY %_FontHeight%
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
.SetVar CommandName SetFontStyle
|
|
2
2
|
.Do CommandHeading
|
|
3
|
-
.
|
|
4
|
-
.SetVar CommandLine1 Subsequent
|
|
5
|
-
.
|
|
6
|
-
.SetVar CommandLine1 SetFontStyle command.
|
|
3
|
+
.SetVar CommandLine1 Apply the typographical emphasis for the current font. For example, normal, bold
|
|
4
|
+
.SetVar CommandLine1 %CommandLine1% or italic. Subsequent rendering of text will continue to use this
|
|
5
|
+
.SetVar CommandLine1 %CommandLine1% emphasis until changed by another SetFontStyle command.
|
|
7
6
|
.Do CommandLine
|
|
8
7
|
|
|
9
8
|
.SetVar CommandSubHeading Syntax
|
|
@@ -67,7 +66,7 @@
|
|
|
67
66
|
|
|
68
67
|
.SetVar CommandSubHeading See Also
|
|
69
68
|
.Do CommandSubHeading
|
|
70
|
-
.SetVar CommandLine1 DrawTextBox, DrawText,
|
|
69
|
+
.SetVar CommandLine1 DrawTextBox, DrawText, SetFontName, SetFontSize, SetTextColour
|
|
71
70
|
.Do CommandLine
|
|
72
71
|
|
|
73
72
|
.incCurrentY %_FontHeight%
|
|
@@ -10,11 +10,14 @@
|
|
|
10
10
|
.SetVar CommandSubHeading Parameters
|
|
11
11
|
.Do CommandSubHeading
|
|
12
12
|
.SetVar CommandLine1 Colour
|
|
13
|
-
.SetVar CommandLine2 Either a CSS named colour or a hexadecimal RGB colour.
|
|
13
|
+
.SetVar CommandLine2 Either a CSS named colour or a hexadecimal RGB colour. This is a required parameter.
|
|
14
|
+
.Do CommandLine2
|
|
14
15
|
|
|
15
16
|
.SetVar CommandSubHeading Other
|
|
16
17
|
.Do CommandSubHeading
|
|
17
|
-
.SetVar CommandLine1 The variable _LastResult is set to '
|
|
18
|
+
.SetVar CommandLine1 The variable _LastResult is set to '0' by this command if the colour parameter is not
|
|
19
|
+
.SetVar CommandLine1 %CommandLine1% provided, otherwise it is set to '1'. The variable _LineColour is set
|
|
20
|
+
.SetVar CommandLine1 %CommandLine1% to the colour parameter.
|
|
18
21
|
.Do CommandLine
|
|
19
22
|
|
|
20
23
|
.SetVar CommandSubHeading Examples
|
|
@@ -10,12 +10,14 @@
|
|
|
10
10
|
.SetVar CommandSubHeading Parameters
|
|
11
11
|
.Do CommandSubHeading
|
|
12
12
|
.SetVar CommandLine1 Colour
|
|
13
|
-
.SetVar CommandLine2 Either a CSS named colour or a hexadecimal RGB colour.
|
|
13
|
+
.SetVar CommandLine2 Either a CSS named colour or a hexadecimal RGB colour. This is a required parameter.
|
|
14
14
|
.Do CommandLine2
|
|
15
15
|
|
|
16
16
|
.SetVar CommandSubHeading Other
|
|
17
17
|
.Do CommandSubHeading
|
|
18
|
-
.SetVar CommandLine1 The variable _LastResult is set to '
|
|
18
|
+
.SetVar CommandLine1 The variable _LastResult is set to '0' by this command if the colour parameter is not
|
|
19
|
+
.SetVar CommandLine1 %CommandLine1% provided, otherwise it is set to '1'. The variable _TextColour is set
|
|
20
|
+
.SetVar CommandLine1 %CommandLine1% to the colour parameter.
|
|
19
21
|
.Do CommandLine
|
|
20
22
|
|
|
21
23
|
.SetVar CommandSubHeading Examples
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
|
|
8
8
|
.SetVar CommandSubHeading ISO 216 & ISO 269 (Metric)
|
|
9
9
|
.Do CommandSubHeading
|
|
10
|
-
.SetVar CommandLine1c %CommandLine2% - a0
|
|
10
|
+
.SetVar CommandLine1c %CommandLine2% - a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10
|
|
11
11
|
.Do CommandLine2
|
|
12
|
-
.SetVar CommandLine1c %CommandLine2% - b0
|
|
12
|
+
.SetVar CommandLine1c %CommandLine2% - b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, b10
|
|
13
13
|
.Do CommandLine2
|
|
14
|
-
.SetVar CommandLine1c %CommandLine2% - c0
|
|
14
|
+
.SetVar CommandLine1c %CommandLine2% - c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10
|
|
15
15
|
.Do CommandLine2
|
|
16
16
|
|
|
17
17
|
.SetVar CommandSubHeading Other
|
|
Binary file
|
|
@@ -225,7 +225,9 @@
|
|
|
225
225
|
.Include ./Documentation/4. Commands/Do.txt
|
|
226
226
|
.Include ./Documentation/4. Commands/DoRepeat.txt
|
|
227
227
|
.Include ./Documentation/4. Commands/DrawBox.txt
|
|
228
|
+
.Include ./Documentation/4. Commands/DrawCircle.txt
|
|
228
229
|
.Include ./Documentation/4. Commands/DrawDebugGrid.txt
|
|
230
|
+
.Include ./Documentation/4. Commands/DrawEllipse.txt
|
|
229
231
|
.Include ./Documentation/4. Commands/DrawImage.txt
|
|
230
232
|
.Include ./Documentation/4. Commands/DrawLine.txt
|
|
231
233
|
.Include ./Documentation/4. Commands/DrawText.txt
|
|
@@ -235,6 +237,7 @@
|
|
|
235
237
|
.Include ./Documentation/4. Commands/IfBlank.txt
|
|
236
238
|
.Include ./Documentation/4. Commands/IfEq.txt
|
|
237
239
|
.Include ./Documentation/4. Commands/IfGt.txt
|
|
240
|
+
.Include ./Documentation/4. Commands/IfNe.txt
|
|
238
241
|
.Include ./Documentation/4. Commands/IfNotBlank.txt
|
|
239
242
|
.Include ./Documentation/4. Commands/incCurrentX.txt
|
|
240
243
|
.Include ./Documentation/4. Commands/incCurrentY.txt
|