Skip to content

Commit

Permalink
Yet more updates to plugins.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandlo committed Oct 21, 2024
1 parent 40badf7 commit 81e7123
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions docs/guide/plugins/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ app.uiAction({ action = "ACTION_RULER" })
to activate the ruler (for drawing line segments) or

```lua
app.uiAction({ action = "ACTION_TOOL_FILL", enabled = false})
app.uiAction({ action = "ACTION_TOOL_FILL", enabled = false })
```

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

```lua
{
"pages" = {
pages = {
{
"pageWidth" = number,
"pageHeight" = number,
"isAnnoated" = bool,
"pageTypeFormat" = string,
"pdfBackgroundPageNo" = integer (0, if there is no pdf background page),
"layers" = {
pageWidth = number,
pageHeight = number,
isAnnoated = bool,
pageTypeFormat = string,
pdfBackgroundPageNo = integer (0, if there is no pdf background page),
layers = {
[0] = {
"isVisible" = bool
isVisible = bool
},
[1] = {
"isVisible" = bool,
"isAnnotated" = bool
isVisible = bool,
isAnnotated = bool
},
...
},
"currentLayer" = integer
currentLayer = integer
},
...
}
"currentPage" = integer,
"pdfBackgroundFilename" = string (empty if there is none)
currentPage = integer,
pdfBackgroundFilename = string (empty if there is none)
}
```

Expand Down

0 comments on commit 81e7123

Please sign in to comment.