jspdf-dynamo 1.0.1 → 1.0.4

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.
Files changed (47) hide show
  1. package/dist/index.cjs +21 -16
  2. package/dist/index.d.cts +16 -5
  3. package/dist/index.d.ts +16 -5
  4. package/dist/index.js +21 -16
  5. package/documentation/3. Variables/Introduction.txt +15 -12
  6. package/documentation/3. Variables/SystemMaintained.txt +44 -65
  7. package/documentation/4. Commands/AddBookmark.txt +3 -3
  8. package/documentation/4. Commands/AddImageFromFile.txt +3 -3
  9. package/documentation/4. Commands/AddImageFromUrl.txt +3 -3
  10. package/documentation/4. Commands/AddPage.txt +1 -1
  11. package/documentation/4. Commands/CheckPage.txt +2 -2
  12. package/documentation/4. Commands/Commands.txt +7 -0
  13. package/documentation/4. Commands/CopyVar.txt +1 -1
  14. package/documentation/4. Commands/Do.txt +2 -2
  15. package/documentation/4. Commands/DoRepeat.txt +2 -2
  16. package/documentation/4. Commands/DrawBox.txt +2 -2
  17. package/documentation/4. Commands/DrawDebugGrid.txt +2 -2
  18. package/documentation/4. Commands/DrawImage.txt +2 -2
  19. package/documentation/4. Commands/DrawLine.txt +2 -2
  20. package/documentation/4. Commands/DrawTextBox.txt +1 -1
  21. package/documentation/4. Commands/DrawTextWrapped.txt +40 -17
  22. package/documentation/4. Commands/ForEachPage.txt +3 -3
  23. package/documentation/4. Commands/GetEnvVar.txt +2 -2
  24. package/documentation/4. Commands/IfNotBlank.txt +3 -3
  25. package/documentation/4. Commands/IncVar.txt +7 -7
  26. package/documentation/4. Commands/Include.txt +8 -8
  27. package/documentation/4. Commands/IncludeUrl.txt +43 -1
  28. package/documentation/4. Commands/MultVar.txt +7 -7
  29. package/documentation/4. Commands/SavePdf.txt +6 -0
  30. package/documentation/4. Commands/SelectPage.txt +6 -0
  31. package/documentation/4. Commands/SetCurrentX.txt +4 -4
  32. package/documentation/4. Commands/SetCurrentY.txt +2 -2
  33. package/documentation/4. Commands/SetDocumentInfo.txt +3 -3
  34. package/documentation/4. Commands/SetFillColour.txt +8 -25
  35. package/documentation/4. Commands/SetFontName.txt +3 -1
  36. package/documentation/4. Commands/SetFontSize.txt +2 -0
  37. package/documentation/4. Commands/SetLineColour.txt +8 -26
  38. package/documentation/4. Commands/SetLineWidth.txt +1 -1
  39. package/documentation/4. Commands/SetLogLevel.txt +6 -0
  40. package/documentation/4. Commands/SetMargin.txt +1 -1
  41. package/documentation/4. Commands/SetTextColour.txt +43 -0
  42. package/documentation/4. Commands/SetVar.txt +7 -7
  43. package/documentation/4. Commands/WriteLog.txt +56 -0
  44. package/documentation/Documentation.pdf +1993 -1734
  45. package/documentation/documentation.txt +9 -10
  46. package/package.json +2 -2
  47. package/documentation/4. Commands/SetPageOrientation.txt +0 -42
@@ -81,14 +81,14 @@
81
81
  [End]
82
82
 
83
83
  [Footer]
84
- .SetVar top %_PageHeight%
85
- .incVar top -%_FontHeight%
86
84
  .setMargin t 7
87
85
  .setFontStyle Bold
88
86
  .setFontSize 18
89
87
  .SetTextColour red
90
88
  .ifGt %_PageNo% 1 .DrawTextBox 0 0 %_PageWidth% 8 centered centered *** Draft ***
91
- .Do SetDefaultText
89
+ .Do SetDefaultText
90
+ .SetVar top %_PageHeight%
91
+ .incVar top -%_FontHeight%
92
92
  .ifGt %_PageNo% 1 .DrawTextBox 0 %top% %_PageWidth% %_FontHeight% centered centered Page %_PageNo% of %LastPage%
93
93
  [End]
94
94
 
@@ -216,9 +216,7 @@
216
216
  .Include ./Documentation/3. Variables/Introduction.txt
217
217
  .Include ./Documentation/3. Variables/SystemMaintained.txt
218
218
 
219
- .SetVar ChapterName Commands
220
- .do ChapterHeading
221
-
219
+ .Include ./Documentation/4. Commands/Commands.txt
222
220
  .Include ./Documentation/4. Commands/AddBookmark.txt
223
221
  .Include ./Documentation/4. Commands/AddImageFromFile.txt
224
222
  .Include ./Documentation/4. Commands/AddImageFromUrl.txt
@@ -244,6 +242,8 @@
244
242
  .Include ./Documentation/4. Commands/IncludeUrl.txt
245
243
  .Include ./Documentation/4. Commands/IncVar.txt
246
244
  .Include ./Documentation/4. Commands/MultVar.txt
245
+ .Include ./Documentation/4. Commands/SavePdf.txt
246
+ .Include ./Documentation/4. Commands/SelectPage.txt
247
247
  .Include ./Documentation/4. Commands/setCurrentX.txt
248
248
  .Include ./Documentation/4. Commands/setCurrentY.txt
249
249
  .Include ./Documentation/4. Commands/SetDocumentInfo.txt
@@ -253,9 +253,11 @@
253
253
  .Include ./Documentation/4. Commands/SetFontStyle.txt
254
254
  .Include ./Documentation/4. Commands/SetLineColour.txt
255
255
  .Include ./Documentation/4. Commands/SetLineWidth.txt
256
+ .Include ./Documentation/4. Commands/SetLogLevel.txt
256
257
  .Include ./Documentation/4. Commands/SetMargin.txt
257
- .Include ./Documentation/4. Commands/SetPageOrientation.txt
258
+ .Include ./Documentation/4. Commands/SetTextColour.txt
258
259
  .Include ./Documentation/4. Commands/SetVar.txt
260
+ .Include ./Documentation/4. Commands/WriteLog.txt
259
261
 
260
262
  .SetVar ChapterName Other Definitions
261
263
  .do ChapterHeading
@@ -263,9 +265,6 @@
263
265
  .Include ./Documentation/5. Other Definitions/logger.txt
264
266
  .Include ./Documentation/5. Other Definitions/pageSizes.txt
265
267
 
266
- .Include ./Documentation/6. Other/PossibleEnhancements.txt
267
- .Include ./Documentation/6. Other/To Be Documented.txt
268
-
269
268
  .SetVar LastPage %_PageNo%
270
269
  .Do SetMargins SetDefaultText
271
270
  .SetMargin b %margins%
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jspdf-dynamo",
3
- "version": "1.0.1",
3
+ "version": "1.0.4",
4
4
  "description": "Generate data driven PDFs from dynamic templates",
5
5
  "main": "dist/index.js",
6
6
  "repository": {
@@ -33,7 +33,7 @@
33
33
  "author": "Stephen Corbett <corbett@corbtech.com.au> (https://corbtech.com.au)",
34
34
  "license": "MIT",
35
35
  "dependencies": {
36
- "jspdf": "^2.5.1"
36
+ "jspdf": "^2.5.2"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@arethetypeswrong/cli": "^0.15.4",
@@ -1,42 +0,0 @@
1
- .SetVar CommandName SetPageOrientation
2
- .Do CommandHeading
3
- .DrawText 0 %_CurrentY% Set the orientation for the current page. Usually this would be used after creating a new
4
- .SetVar CommandLine1 page. The default orientation is portrait and the setting is retained for the current and
5
- .Do CommandLine
6
- .SetVar CommandLine1 subsequent pages or until another SetPageOrientation is specified.
7
- .Do CommandLine
8
-
9
- .SetVar CommandSubHeading Syntax
10
- .Do CommandSubHeading
11
- .SetVar CommandLine1 .SetPageOrientation Orientation
12
- .Do CommandLine2
13
-
14
- .SetVar CommandSubHeading Parameters
15
- .Do CommandSubHeading
16
- .SetVar CommandLine1 Orientation
17
- .SetVar CommandLine2 Set the page orientation: P or Portrait (default), L or Landscape.
18
- .Do CommandLine2
19
-
20
- .SetVar CommandSubHeading Other
21
- .Do CommandSubHeading
22
- .SetVar CommandLine1 Variable _LastResult is set to '1'. The variables _PageWidth and _Page_Height are
23
- .Do CommandLine
24
- .SetVar CommandLine1 calculated based on the current page size and margins.
25
- .Do CommandLine
26
-
27
- .SetVar CommandSubHeading Examples
28
- .Do CommandSubHeading
29
- .SetVar CommandLine1 Set the orientation to landscape:
30
- .Do CommandLine
31
- .incCurrentY %halfLineGap%
32
- .SetVar CommandLine1 .SetPageOrientation L
33
- .Do CommandLine2
34
-
35
- .incCurrentY %_FontHeight%
36
- .SetVar CommandLine1 Set the orientation to portrait:
37
- .Do CommandLine
38
- .incCurrentY %halfLineGap%
39
- .SetVar CommandLine1 .SetPageOrientation Portrait
40
- .Do CommandLine2
41
-
42
- .incCurrentY %_FontHeight%