Inkscape.org
Creating New Extensions How to resize page to selection within an extension?
  1. #1
    Holam Gadol Holam Gadol @holamgadol

    I'm making an extension where I need to resize page to selection, among other tasks. Unfortunately, I haven't found a built-in function for this purpose. I tried to write my little extension for resizing, but it looks like resizing is far more complex than I thought before.

    My extension works well on simple drawings with multiple layers, but it messes with complex documents. I'm doing something wrong, I think,
    So, what is the proper way to resize page to selection within extension?

     

    My work in progress can be found here: https://gitlab.com/Gadol/resize_page_to_selection/-/tree/development

     

     

  2. #2
    inklinea inklinea @inklinea⛰️

    It may be possible to resize purely using an extension.

    However I use a command call to the verb 

    'FitCanvasToSelection;'
  3. #3
    Holam Gadol Holam Gadol @holamgadol

    @inklinea Thanks a lot! It works like a charm

Inkscape Inkscape.org Inkscape Forum Creating New Extensions How to resize page to selection within an extension?