This is a Bitfocus Companion connection module for PDF Presenter. It lets a Stream Deck (or any other Companion surface) drive the app while it’s running: slides, sections, the output window, black/white screen, the laser pointer, slide transitions, and the watched-folder file list.
It talks straight to the app’s own OSC listener over UDP and listens for feedback on a local port. There’s nothing to install on the app end beyond turning OSC on.
This module was built with AI assistance and reviewed by a human. Check it over before you rely on it for a show. It’s not in the official Companion module store, so it installs as a developer module, which takes a few more steps. They’re below.
Setting it up
1. Install the module. It isn’t in the store, so you have to point Companion at it:
git clone https://github.com/stoatworks-labs/companion-module-pdf-presenter-lite
cd companion-module-pdf-presenter-lite
npm install
In Companion, go to Settings → Developer modules path and point it at the parent folder that contains this repo’s folder, not at the folder itself. Restart Companion, or use “Rescan for developer modules” if your version has it, and “PDF Presenter” turns up as a connection you can install.
2. Turn OSC on in the app. In PDF Presenter, click Start OSC in the titlebar. Once you’ve started it once, it remembers across restarts.
3. Add the connection, and set three fields:
| Field | Default | What it is |
|---|---|---|
| App host | 127.0.0.1 |
The machine running PDF Presenter. The default assumes Companion is on the same machine. |
| App listen port | 35551 |
Where the app listens. Matches the app’s own default. |
| Local feedback port | 35550 |
Where this module listens for the app’s replies. Matches the app’s own default. |
If Companion and the app are on different machines, change App host to the app’s actual
IP, and make sure the Feedback host in the app’s own OSC settings panel points back at the
Companion machine’s IP, not 127.0.0.1. Miss that second half and the actions work while every
variable stays empty, which is a confusing way for it to go wrong.
Actions
Slides
| Action | What it does |
|---|---|
| Next slide / Previous slide | Step through the deck |
| Go to slide number | Jump to an absolute slide |
| Go to first slide / Go to last slide | Ends of the deck |
Sections
| Action | What it does |
|---|---|
| Go to first slide of section | Jump to a named section |
| Go to first slide of next section | Skip forward a section |
| Go to first slide of previous section | Skip back a section |
The named-section action gives you a live dropdown of whatever the app last reported, plus a custom value that takes variables, for when you want it to change on the fly.
Output window
| Action | What it does |
|---|---|
| Start Output from first slide | Open the output window at the top of the deck |
| Start Output from current slide | Open it where you already are |
| Close Output | Shut the output window |
| Toggle black screen / Toggle white screen | Cover the output |
| Toggle laser pointer overlay | Show/hide the pointer |
| Set current slide as desktop wallpaper | Useful for a holding slide behind the output |
Transitions
| Action | What it does |
|---|---|
| Set slide transition (effect, direction and duration) | Set all three in one press |
| Set slide transition effect | Cut, fade, dip to black/white, push, wipe, cover, uncover, zoom |
| Set slide transition direction | Where the new slide comes from (push, wipe, cover and uncover only) |
| Set slide transition duration | 50 to 5000 ms; takes variables |
The effect and direction dropdowns are fixed lists copied from the app, not discovered from it. Dynamic direction brings the slide in from the left going forward and from the right going back, and needs PDF Presenter 1.7.0 or later. The app ignores a name it doesn’t recognise, so a typo can’t change the look of a live show.
Auto-advance
| Action | What it does |
|---|---|
| Pause auto-advance / Resume auto-advance | Hold and release a timed run |
Protocol control
| Action | What it does |
|---|---|
| Enable / Disable OSC actions | Turn remote control off from the surface |
| Enable / Disable OSC feedback | Turn the app’s replies off |
| Request feedback refresh | Ask the app to re-send everything |
| Set watched folder | Point the app at a different folder |
| Request watched-folder file list | Refresh the file dropdown |
| Open file from watched folder | Load a deck by name |
Feedbacks
Four, and only four:
- Slideshow state: edit / running / running-with-auto-advance-paused.
- Slide transition effect: lights when the chosen effect is the one selected.
- Slide transition direction: lights when the chosen direction is the one selected. The app keeps a direction set even under an effect that ignores it, so pair it with the effect feedback if that matters.
- OSC file access enabled.
I’ve left out a feedback for “laser pointer on” or “auto-advance enabled” on purpose. The app’s OSC protocol never broadcasts either as a value of its own (it only sends the combined edit/running/paused state), so a feedback for either would have to make up data the app doesn’t provide. If you need a button to look like it knows, drive it from the slideshow state instead.
Variables
| Variable | Contents |
|---|---|
presentationName |
Presentation file name |
slideCount |
Total slide count |
slideCountVisible |
Total slide count, excluding hidden slides |
state |
Presentation state (edit / running / paused) |
currentSlide |
Current slide number |
slidesRemaining |
Slides left in the deck |
sectionIndex |
Current section index |
sectionName |
Current section name |
sectionSlidesRemaining |
Slides remaining in the current section |
previousSectionName |
Previous section name — “Start of deck” if this is the first |
previousSectionFirstSlide |
First slide of the previous section |
nextSectionName |
Next section name — “End of deck” if this is the last |
nextSectionFirstSlide |
First slide of the next section |
fileAccessEnabled |
Whether OSC file-open access is enabled |
activeFolder |
Watched folder, relative to the home directory |
activeFolderFullPath |
Watched folder, full path |
activeFolderFileCount |
Number of files in the watched folder |
activeFolderFileNames |
JSON array of file names in the watched folder |
transition |
Slide transition, as a JSON object |
transitionEffect |
Slide transition effect |
transitionDirection |
Slide transition direction (push/wipe/cover/uncover only) |
transitionDuration |
Slide transition duration, in milliseconds |
The section variables are the handy ones for building a presenter’s surface: a button showing
$(<connection-label>:nextSectionName) tells the operator what’s coming up without them having to
read the deck. The prefix is whatever you called the connection in Companion.
Troubleshooting
| Symptom | Cause |
|---|---|
| Module doesn’t appear in Companion | The developer modules path points at the repo folder rather than its parent. |
| Buttons work, all variables empty | Feedback isn’t getting back. On separate machines, the app’s Feedback host must be the Companion machine’s IP, not 127.0.0.1. |
| Nothing happens at all | OSC isn’t started in the app — click Start OSC in its titlebar — or App host / App listen port is wrong. |
| Section dropdown is empty or stale | The list is whatever the app last reported. Fire Request feedback refresh. |
| File-open action does nothing | File access is disabled in the app; check the fileAccessEnabled variable. |
| No feedback for the laser pointer | Correct, and deliberate — the protocol doesn’t broadcast it. |
See also
- README: what it does, installing it, and the prior art I looked at for how to structure the module
- PDF Presenter: the app this controls, and its OSC protocol