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?
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/developmentIt may be possible to resize purely using an extension.
However I use a command call to the verb
@inklinea Thanks a lot! It works like a charm