Skip to content

Commit 9a55883

Browse files
authored
Merge pull request #366 from nocodb/print-scripts-docs
docs: add instructions for exporting script execution results to PDF
2 parents 4d084d6 + 5f6e900 commit 9a55883

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

content/docs/automation/scripts/actions-on-script.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,19 @@ To delete a Script
2626
- Use `...` actions button to the right of the script name in the Scripts list
2727
- Select `Delete`
2828

29+
### Print / Export to PDF
30+
31+
Export your script execution results to PDF.
32+
33+
**To export:**
34+
- Run your script to generate output
35+
- Click the **Print** button in the toolbar
36+
- Select page size (Letter, Legal, or A4) and orientation (Portrait or Landscape)
37+
- Click **Generate PDF**
38+
- Save as PDF or print from the browser dialog
39+
40+
**Note:** The Print button is disabled until you run the script at least once.
41+
2942

3043
## Additional Resources
3144

content/docs/automation/scripts/create-script.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ To create your first script, you can either
1616
1. All scripts are listed in the `Automations` section accessible from the left sidebar. You can also view the scripts in the `All Scripts` tab on the base homepage.
1717
2. Central area is the script **editor** where you can write and run your JavaScript code.
1818
3. The right sidebar is the **execution area** where you can see the output of your script, view logs, and manage script settings.
19-
4. Use the `settings` icon in the top-right corner to configure script settings. Use the `Run` button to execute your script.
19+
4. Use the `settings` icon in the top-right corner to configure script settings. Use the `Run` button to execute your script. Use the `Print` button to export script output to PDF.
2020
5. Access quick links to documentation, support, and settings from the bottom-right corner.
2121

2222
![All Scripts](/img/v2/scripts/layout.png)

0 commit comments

Comments
 (0)