Scribus Forums

Scribus => Scripts and Plugins => Topic started by: digirew on August 28, 2020, 10:05:56 pm

Title: Shrink textframe to amount of text?
Post by: digirew on August 28, 2020, 10:05:56 pm
Is there anyway to shrink a text frame to the amount of text that I have in the textframe?

I cant seem to find it in the help/docs.
Title: Re: Shrink textframe to amount of text?
Post by: utnik on August 29, 2020, 12:08:58 am
hi digirew

yes, there is a function to 'adjust frame height to text' (at least in scribus 1.5.?). you'll find it in the context menu and in 'item' → 'adjust', but there is still a bug: there has to be at least one descender in the last line of text, otherwise this line won't fit inside of the frame.

utnik
Title: Re: Shrink textframe to amount of text?
Post by: AdmFubar on August 31, 2020, 07:24:56 am
Actually today by accident I activated this feature. I think it was just through a click on the text frame as it suddenly snapped up to the end of the text on the page. Will have to investigate further on how I did it, will update soon as it is getting late here
Title: Re: Shrink textframe to amount of text?
Post by: digirew on September 14, 2020, 06:44:40 pm
Thanks,

However is it possible to do this via. script? and not the application (GUI) itself?


Andrew
Title: Re: Shrink textframe to amount of text?
Post by: a.l.e on September 14, 2020, 06:51:14 pm
yes you can do this with a script and there might be a script around that those it.

i could not find it in my collection, but you can have a look at this script

https://github.com/aoloe/scribus-script-collection/blob/master/text-vertical-align/text-vertical-align.py

and find out how to do it...

ciao
a.l.e