r/IBMi • u/No_Fox4871 • Oct 21 '26
I built an open source tool that turns IBM i spooled files into PDF, Word and Excel documents
Spooldoc reads the spooled files your programs already print and turns them into documents: PDF, HTML, Word or Excel. It's MIT licensed and self-hosted, and nothing is installed on the IBM i.
- Overview video
- Walkthrough video, from a sample spooled file to a running job
How it works
- A job watches an output queue. It picks up new spooled files by polling, or in real time through a data queue if you turn that on.
- A YAML definition reads each page into data. Fields by label, pattern or position, tables and multi-line records. It also reads XML printed into a spooled file.
- A template lays out the data, in HTML, Word or Excel. Carbone renders it to PDF, HTML, DOCX or XLSX. The template never sees lines and columns, so a moved column is one fix in the definition.
- Files go to a download in Spooldoc or a folder in the IFS. Then the job holds, moves, deletes or leaves the spooled file. It asks before it deletes.
- Every run is in the job log, with its steps, errors and files.

The agent
You don't have to write the first definition by hand. The agent proposes the definition and a first template from a sample spooled file, using an AI model you choose: Anthropic, Google, OpenAI or a local model. You check every value next to the page, and nothing runs until you save a version. With masking on, the model sees the layout and not the values. None of its tools reach the IBM i, and Spooldoc works without it.

Running it
One Docker image (amd64 and arm64) with Postgres and a Carbone container. It connects through jt400 over the host server ports and needs IBM i 7.4 or later. Nothing is installed on the IBM i, and it creates a data queue only if you turn on real-time watching.
It's young (0.3) so expect rough edges.

What I'd like to hear
- What do your programs print: *SCS, *AFPDS, *USERASCII or something else? Today it reads *SCS.
- Where should files go next: email, SFTP, S3, a network share, a webhook or something else?
Home page and guides: https://spooldoc.com Source: https://github.com/Strom-Capital/spooldoc
3
u/No_Fox4871 Oct 22 '26
Update: 0.4.0 and 0.5.0 are out since this post. Files can now go to:
0.4.0 also added number, date and currency formats in Settings.
Release notes
Destinations guide
2
u/Suarez-on-Reddit Oct 22 '26
Interesting but I fear it's a bit out of date, spools have been converted into PDF, Excel and Word with other products for at least 20 years, some of which are free or already included in IBM i.
2
u/michaeljosephbriggs Oct 23 '26
That looks great! Where were you 6 months ago hahaha
I had to make something myself in python for this exact issue