Recent posts

Text and Typography / Re: automatically generated co...
Last post by rsharman - Today at 12:05:02 AM
Perhaps when you imported styles you didn't check "Replace Existing Style"?  The default is "Rename Imported Style" and that might be the problem you saw.
Text and Typography / Is it possible to save text fi...
Last post by rsharman - February 28, 2024, 11:53:52 PM
I'm using Scribus 1.6.1 on a Mac.  I'm trying to convert a document from Swift Publisher.  I've extracted the text and gone through several iterations of text filters and new styles.  When I went to re-import today and use filter4 all the "apply", "Paragraph style", "starting with" and so on things in the filter were there but the actual paragraph styles to use were all empty!  I have an earlier filter3 but a lot has changed since then.
1. Any idea why I somehow lost the paragraph styles to replace?
2. Is there any way of saving these filters?  This would help preventing losses, bad changes, and possibly would make them easier to generate.
Thanks, Richard
General Discussion / How to show the file name on a...
Last post by Geoat - February 28, 2024, 09:06:15 PM
My problem: I start a Scribus document that I call «Mybook_V0». After corrections, it will be called "Mybook_V1", "Mybook_V2", etc. in successive versions.
I would like this name to appear automatically in a text frame on a page. Is it possible, and if so, how?
Thank you for your explanations.
General Discussion / Re: Imagedata format in SLA fi...
Last post by a.l.e - February 28, 2024, 07:39:30 PM
hi sunil

i guess that utnik does not really answer your question.

but his reply contains a very good hint: have a look at how scribus reads or write the images and you will understand what you need to do to extract the image.

you can search through the code for the commands you see in the menues and you can then walk back to the relevant snippets.
General Discussion / Re: Imagedata format in SLA fi...
Last post by utnik - February 28, 2024, 05:36:11 PM
hi sunil

if you just need to extract your image from the .sla file, you can do it with a right click on the image. in the pop-up menu you uncheck 'image' → 'embed image'. then scribus will open a window to define the name and location for the extracted image.


General Discussion / Imagedata format in SLA file
Last post by skhullar - February 28, 2024, 02:38:41 PM

I know it's not recommended to parse SLA file as against creating a Py script. However our use case requires parsing. 

We are stuck at embedded Imagedata, which seems to be some kind of compressed base64 format. Need to know how to decode it and extract the image (without a script)


Installation and Setup / Re: Scribus 1.6.1 app image cr...
Last post by Lemuria - February 28, 2024, 09:26:10 AM
Happy to report that Scribus 1.6.1 is working for me now.

I use the XFCE environment, so I used the menu editor to add a launcher for Scribus. While my config is still borked, Scribus can now be launched properly since launching from menu doesn't involve loading my ZSH config.

Quote from: RodneyLee on February 27, 2024, 02:38:53 PMtry the flatpak, what OS are you using?
The flatpak works, but the AppImage does too now, so I'll just stick to the AppImage.

Thank you all for your help.
Scripts and Plugins / Re: Table Cell Padding
Last post by AdmFubar - February 28, 2024, 02:36:33 AM
Not certain about the API being able to change the text styles. (no first hand experience), but from looking over the api calls it looks doable. would be a matter of getting the desired cell selected and applying text styles, iterating through the cells as needed.
While the cels appear as text frames grouped together, I've noticed that the story editor isnt available to edit the text contained in them. This may be to keep from adding text beyond the size allotted in the cell. Might be a parameter to keep in mind when adding text to a cell from a script.
Scripts and Plugins / Re: Table Cell Padding
Last post by sbus-scripter - February 28, 2024, 12:32:10 AM
Thank you very much to a.l.e & AdmFubar for your inputs/suggestions/help.

So my understanding was incorrect with the padding parameter. I thought padding value is same units as the document, which is not the case here. As a.l.e suggested I used 20 padding value and I can surely see the change.

Another mistake I was doing was trying to verify the change with the UI because I thought Left in "column & text distances" properties is what I was setting which is different setting from what I was setting.

Is it possible to change the cells "column & text distances" properties from the API? this was my initial attempt. Table/cells have very limited api calls. I think they are grouped textframes so I'm assuming if I can get a handle of the cell from the API I should be able to make this changes using the textframe APIs.

Also can I change the cell text style from the API?

Sorry for the loaded question.

setCellLeftPadding(1, 1, 20)
Scripts and Plugins / Re: Table Cell Padding
Last post by AdmFubar - February 28, 2024, 12:09:36 AM
Quote from: a.l.e on February 27, 2024, 10:18:59 PMa few remarks from my side:

- (1, 1) is not the first cell in the table, but the second column and second row (so you need at least two columns and two rows to see something)
- as far as i can tell, there is no way to see (or set) the padding in the UI (the cell padding is for sure not the value in the "column & text distances" of the text properties).
Uhm yes it is. The cell padding can be adjusted via the UI. It isnt applied until there is actual text is placed in the cell. If all you have is the cursor in the cell it isnt moved in place till you insert some actual text.