Inkscape.org
Beyond the Basics How to use command line action text-flow-into-frame?
  1. #1
    Moebius Moebius @Moebius

    I know how to flow text into a frame in the GUI (select the text and shape objects, then Alt-W), but can't figure out how to do if from the command line.

    If I'm missing the relevant documentation, please let me know!

    Here's what I've tried, based on the examples I've found:

    inkscape --actions="select-by-id:text5827-6,rect131;text-flow-into-frame;FileSave;FileClose" --batch-process filename.svg

    My thought was to select the text and shape object, then use the action "text-flow-into-frame", then save and close the file

    A second thought was to select the text object then try to flow the text into the shape object:

    inkscape --actions="select-by-id:text5827-6;text-flow-into-frame:rect131;FileSave;FileClose" --batch-process filename.svg

    Neither of these work, and I do get the following error:

    InkscapeApplication::parse_actions: could not find action for: FileSave
    InkscapeApplication::parse_actions: could not find action for: FileClose

    Any thoughts?  Thanks!

  2. #2
    inklinea inklinea @inklinea⛰️

    In the move to Inkscape 1.2, 'verbs' were converted to actions. 

    FileSave was not pulled over - so is missing from the 1.2 action list.

    However unless you specifically want to overwrite the existing svg file it may not matter.

    inkscape --batch-process --actions="select-by-id:text3380,rect80;text-flow-into-frame;export-do" ./TextTest.svg

    However, I am surprised that I need to use --batch-process, as this is an older requirement ( which silently opens and closes the gui ) and was only needed for verbs.

     

Inkscape Inkscape.org Inkscape Forum Beyond the Basics How to use command line action text-flow-into-frame?