-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sla2pdf #39
Comments
hi mara004 thanks for reaching me : - ) here some notes while i'm going through your repository:
this having been said, i can see where i can add a mention of your "library". the simplest way to do it, is probably to add a "light" version of your script in here and refer there to your script. personally, i see an interest in having here a |
Hi Ale, thanks for your notes. Here are my comments:
The concern was Scribus builds shipped by Linux distributions. For instance, Scribus as provided by Ubuntu 20.04 is still built against Python 2. Note that not the whole codebase is Python 2 comptaible, only those parts that run inside Scribus. Keeping it like that isn't difficult, anyway.
The CLI (
I don't think there's any point at involving JSON here? The way I usually invoke sla2pdf is just sla2pdf *.sla -o out/ If you've got a more complex command you can simply save it as a bash script. I also plan to add an option for explicit output paths to the CLI, beside the current output directory option.
Thanks for pointing me at this thread. So far, I haven't had any problem with
Well, you already have that "light" version. The whole point of my code is that it's not just a single script, but instead an easy to install/use and independently accessible Python module, thanks to the separation into a part that runs inside Scribus and a convenient subprocess wrapper around it. |
See also this announcement I wrote: pypdfium2-team/pypdfium2#162 |
Ah, I now think I understand you better. Your comment hints at this problem that we currently have a restricted set of options implemented explicitly as argparse parameters. In the future, it would be nicer if we could just take a dictionary-like data structure and allow the caller to set arbitrary attributes on the I'll work on that. |
What do you think of this suggestion? |
ok , i guess it's easier if i show you what i had in mind : - ) it should not take too long... |
Hello,
I would like to notify the Scribus community of a small SLA to PDF converter I've written. It's powered by Scribus scripts and can be used both via command line or Python API:
https://github.com/sla2pdf-team/sla2pdf
I believe it's kind of more sophisticated/convenient than the already existing examples.
Due to the subprocess wrapper, it can also be used as library in an independent Python interpreter.
Perhaps it would be useful to mention sla2pdf somewhere in this repository, or in the Scribus docs?
The text was updated successfully, but these errors were encountered: