Skip to content

Commit 81e7123

Browse files
committed
Yet more updates to plugins.md
1 parent 40badf7 commit 81e7123

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

docs/guide/plugins/plugins.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ app.uiAction({ action = "ACTION_RULER" })
118118
to activate the ruler (for drawing line segments) or
119119

120120
```lua
121-
app.uiAction({ action = "ACTION_TOOL_FILL", enabled = false})
121+
app.uiAction({ action = "ACTION_TOOL_FILL", enabled = false })
122122
```
123123

124124
to turn off filling of shapes.
@@ -129,29 +129,29 @@ The `app.getDocumentStructure` function yields a Lua table of the following shap
129129

130130
```lua
131131
{
132-
"pages" = {
132+
pages = {
133133
{
134-
"pageWidth" = number,
135-
"pageHeight" = number,
136-
"isAnnoated" = bool,
137-
"pageTypeFormat" = string,
138-
"pdfBackgroundPageNo" = integer (0, if there is no pdf background page),
139-
"layers" = {
134+
pageWidth = number,
135+
pageHeight = number,
136+
isAnnoated = bool,
137+
pageTypeFormat = string,
138+
pdfBackgroundPageNo = integer (0, if there is no pdf background page),
139+
layers = {
140140
[0] = {
141-
"isVisible" = bool
141+
isVisible = bool
142142
},
143143
[1] = {
144-
"isVisible" = bool,
145-
"isAnnotated" = bool
144+
isVisible = bool,
145+
isAnnotated = bool
146146
},
147147
...
148148
},
149-
"currentLayer" = integer
149+
currentLayer = integer
150150
},
151151
...
152152
}
153-
"currentPage" = integer,
154-
"pdfBackgroundFilename" = string (empty if there is none)
153+
currentPage = integer,
154+
pdfBackgroundFilename = string (empty if there is none)
155155
}
156156
```
157157

0 commit comments

Comments
 (0)