Shrink textframe to amount of text?

Previous topic - Next topic

digirew

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.

utnik

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

AdmFubar

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
Using Scribus 1.5.8 & 1.6.2, openSUSE 15.5
Advanced hobbyist

digirew

Thanks,

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


Andrew

a.l.e

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