All templates
Desktop AutomationAdvanced
Share PowerPoint File as PDF
Robomotion•Updated 9 months ago

Overview
Opens a .pptx file, exports it to PDF, and saves it next to the original. Automates a common office pipeline end to end.
Share PowerPoint File as PDF
Handling Windows and desktop applications is an essential part of most automation scenarios. UI automation nodes and recording enable you to launch applications like Microsoft PowerPoint, navigate through their environment, and automate repetitive tasks on them.
What Share PowerPoint File as PDF can do
- Download Fixtures subflow, then build
msg.fixtures_dirandmsg.deck_pptx(a sample deck under$Home$/templates/desktop-automation/share-powerpoint-file-as-pdf/fixtures). - Three Input Dialogs collect the
.pptxpath (msg.selected_powerpoint), recipient email (msg.recipient_email) and sender email (msg.sender_email). - Derive Paths (
Core.Programming.Function,outputs: 2) — validates a.pptxextension; splits the path intomsg.directory,msg.file_name_no_ext, andmsg.pdf_path; invalid input short-circuits toCore.Flow.Stop. - Build and run a PowerShell SaveAs script via
Core.Process.StartProcess— opens the deck with PowerPoint COM, callsSaveAs(pdf, 32, $false)(ppSaveAsPDF), and captures stdout asmsg.export_output. - Send Email Via Outlook subflow dispatches the PDF, then a Message Box confirms
PowerPoint exported and email dispatched..
Behind the scenes
- Retries around transient failures are wired with
Core.Trigger.Catch+ a counter in a Function node and aCore.Programming.Sleepbetween attempts, short-circuiting toCore.Flow.Stopafter N retries. - The PowerShell COM path (
PowerPoint.Application→SaveAs(…, 32, $false)) avoids driving the Save-As dialog at all, so there is no filename field to populate — the.pdfextension lives inmsg.pdf_pathand is passed in directly.
More desktop automation templates
See all 11 →- Add Datetime to File NamesRenames every file in a directory by appending the current date to its name. A quick way to version artefacts, snapshots, or export batches.
- Copy FilesCopies every file from a source directory into a destination, with optional overwrite. Demonstrates how to enumerate files and drive file-system operations from a subflow.
- Delete Files of Specific Size RangeScans a directory and deletes files whose size falls inside a min/max range. Useful for pruning oversized logs or clearing tiny scratch files.
- Find and Delete Empty FilesWalks a directory, locates zero-byte files, and deletes them in a single pass. Handy for cleaning up broken export folders.
- GUI Testing CalculatorDrives the Windows Calculator through native UI automation to validate arithmetic. A concrete template for end-to-end GUI testing of desktop apps.
- Open a FolderLaunches the system file explorer pointed at a given path. Minimal template demonstrating the Application.Launch node.