r/scribus • u/Simple-Cook-3001 • 3d ago
Scribus PDF Engine written in python - create PDF's from Scribus without having to launch Scribus.
Hi all. We make personalised books for children, and until now, the workflow has been using scribusgenerator and launching scribus on the server to save the PDF. Its fairly slow, and clunky. I gave claude access to scribus source on github, and showed it the books we build, and i now can create pdf's from scribus files using python. Took a good 8 hour session working with Claude and its absolutely working perfectly. So, can now create PDF's using SLA files, without having to open scribus. I'm happy to share the code.... https://github.com/jasongodwin/sla2pdf
2
u/aoloe 2d ago
The idea is good but... I wonder if the tokens would have not been better spent in creating a solution that uses the "native" code for reading the .sla and exporting to .pdf.
Of course:
But that would need less changes for Claude to do and, in the case you will need to keep your solution outside of Scribus, it is likely that it will be easy to keep up with the changes in upstream Scribus.
And once you have a clean C++ solution, it should be trivial for Claude to create a translation of it in Python.
... I might give it a try... even if I don't have access to Claude.
1
u/supergatito2022 3d ago
well, where is the code?
1
u/Opussci-Long 3d ago
Can it work if the whole text content is to be changed, i.e. typesetting magazins?
1
u/pkdme 2d ago
I was thinking something like this for newspapers. Do you have any plans to make it opensource? I feel motivated that it works for you, I should try to burn some tokens on this for my workflow.