Recent posts

#1
Beginner Talk / Re: How do I make an image occ...
Last post by Cliffordorn - Today at 03:50:28 PM
Here we are again, with no success. It shouldn't be the aspect ratio, however, since I can make the picture bigger or smaller in another program, then import it into Scribus and it will occupy the whole page.
#2
General Discussion / Re: Imagedata format in SLA fi...
Last post by a.l.e - Today at 03:17:05 PM
hi utnik,

now that i think about it, i also can't really find a use case where this would be necessary.

if one wants to create scripts that process the .sla and modify the images, it's much easier not to use embedded images at all...

maybe they're processing scribus files created from pdfs or from idml?

who knows, maybe one day we will find out what sunil is up to...
#3
Scripts and Plugins / Re: Sample scripts and plugin
Last post by a.l.e - Today at 03:12:09 PM
you probably need a -- before the .sla file name:

"c:\Program Files\Scribus 1.6.1\Scribus.exe" -g -py d:\bat\to-pdf.py -- d:/tmp/test/scribus-test/1.sla
#4
General Discussion / Re: Imagedata format in SLA fi...
Last post by utnik - Today at 12:35:18 PM
i still don't understand why the extraction of embedded images calls for parsing the .sla file...
#5
Scripts and Plugins / Re: Sample scripts and plugin
Last post by skhullar - Today at 12:03:12 PM
Baby step 1
Trying to run To_PDF defined in https://wiki.scribus.net/canvas/Command_line_scripts
but its not working (Windows)

using command line - "c:\Program Files\Scribus 1.6.1\Scribus.exe" -g -py d:\bat\to-pdf.py d:/tmp/test/scribus-test/1.sla

What am I missing here?

thanks

Sunil
#6
General Discussion / Re: How to show the file name ...
Last post by a.l.e - Today at 11:10:00 AM
1. learn python (depending on your existing programming skills, this could be rather easy or take some time...)

   there are tons of online tutorials for it.

2. understand what the scribus' scripter api allows to use (the "export all text" script is probably a good start)

3. find a script that does something similar to what you need and adapt it.

(ah, and i forgot to repeat it: read the the scribus help, the section "for developers")
#7
General Discussion / Re: How to show the file name ...
Last post by Geoat - Today at 11:01:28 AM
Oh, great !
But I am not fluent in python.
What I have to do ?
Can you explain me from beginning ?
#8
Scripts and Plugins / Re: Sample scripts and plugin
Last post by a.l.e - Today at 09:21:26 AM
this is my collection of scribus scripts:

https://github.com/aoloe/scribus-script-repository

the most recent ones contains best practices that i consider to be better : - )

when you open the scribus help, in the "for developers" section you have some help for creating scripts.

personally, i tend to use the web version i have created:

https://impagina.org/scribus-scripter-api/
#9
General Discussion / Re: How to show the file name ...
Last post by a.l.e - Today at 09:18:04 AM
yes, it's easy to do that with a python script that you run inside of scribus:

scribus.setText(scribus.getDocName(), 'Text1')
- this adds the document name with its path to the the text frame named 'Text1'
- if you only want the name without the path, you can use the python's pathlib library
- if the the text frame is on a master page, you will first need to activate that master page (scribus.editMasterPage())
#10
Scripts and Plugins / Sample scripts and plugin
Last post by skhullar - Today at 09:00:23 AM
Hi Team

Just started here. Need help.
Need some sample scripts and plugin to start understanding how they work
And where can we get documentation to create some of our own

Thanks

Sunil